Comments (10)
Ah, here we are. By default the XrmToolBox EBG sets this to false:
giving this reason:
Setting it to True fixes the problem.
Given that our environments tend to be cloned from one another, I don't think there's a risk generating EntityTypeCode, so happy to leave this set to true. Glad to get to the bottom of this.
I wonder whether (sometime in v2) it might be worth trapping this error, and alerting users that this is a likely cause of the problem...?
from fake-xrm-easy.
Hi Jordi,
the examples in the repo work for me too.
The stack trace gives very little away:
That's all there is!
I will try creating a new test project from scratch and see if I get the same results...
I'll also see if registering a different plugin or against a different entity has the same results...
Thanks
Ben
from fake-xrm-easy.
Hi Ben ,
Thanks a mill for reporting this! Yes, I think the plugin registration step should, at the very least, check if there is no EntityTypeCode and if so, fallback to use the EntityLogicalName, maybe. Or else just use the logical name.
from fake-xrm-easy.
Hi Ben,
I've tried with one of the test plugins in the repo, using entity name, and registration steps similar to yours and I didn't get that exception. Could you please post the stack trace to check?
Thanks!
from fake-xrm-easy.
Excellent! Thanks Ben!
from fake-xrm-easy.
I made the smallest test I could and it still fails with the same error.
This is with a different plugin (but same assembly) than before.
I'll start a new project next and also try it another pre-existing plugin testing project...
from fake-xrm-easy.
I'm getting the same error in another recent solution which has pretty much the same architecture, same versions of SDK, etc.
I think that means I can create a copy of this solution, remove all superfluous projects, one by one, see if it still fails, and remove anything else, stripping it down to the bare minimum and see if I can identify the problem.
from fake-xrm-easy.
I've taken a copy of the solution, and removed all projects apart from the plugins project, early bound and unit testing project. I've removed all code except a single plugin which does nothing and single unit test which just initialises the fake context and registers the plugin in the pipeline simulation. I've removed any unused NuGet packages.
This is all that's left:
Same problem.
I suppose the next thing to try is to create a new solution from scratch, unless you have any other ideas...
from fake-xrm-easy.
Aha. Getting a little bit closer, I think.
Debugging a local copy of FakeXrmEasy shows me the line which is failing:
and in the immediate window I can see that the EntityTypeCode of the Account (and other early bound classes) is null:
I've no idea why this should be, but it does at least give me something to work on - this is a standard XrmToolBox generated EarlyBound class....
from fake-xrm-easy.
Related to #496
from fake-xrm-easy.
Related Issues (20)
- Fakecontext isn't updating after target change plugin executed HOT 1
- Query on associatedentitytypecode should work with both Entity Name and ObjectTypeCode HOT 5
- ConditionOperator.LessThan is throwing error "Specified Cast is not valid" for DateTimeField HOT 3
- RetrieveEntityDataSource is returning null value HOT 3
- Announcing public preview of FakeXrmEasy v2.x! HOT 1
- The specified service type is not supported when using Microsoft.Xrm.Sdk.PluginTelemetry. HOT 2
- Complex filter works in main entity, but not in nested entity.
- Is the Microsoft.PowerPlatform.Dataverse.Client supported? HOT 1
- ThisMonth in Query Expression fails on last day after midday
- ExecutePluginWith<T>(...) has no parameter for MessageName - need to use obselete method ExecutePluginWithTargetAndPreEntityImages<T>(...) HOT 2
- In Code Activity Logical Name does not exist HOT 1
- `type argument 'FakeXrmEasyUpdatePluginCrash.MyPlugin' violates the constraint of type parameter 'T'.` HOT 3
- Couldnt find reflected type for sdkmessageprocessingstepimage HOT 2
- ServiceClient not working with CrmServiceContext from Early Bound Generated Class HOT 2
- Object reference not set to an instance of an object.
- Filters with like condition throw 'Object reference not set to an instance of an object.'
- Add Support for ExecuteTransactionRequest
- Should support Operators where early bound types for a multi option set (i.e. multiple choice) is generated as an IEnumberable<TEnum> as opposed to an OptionSetValueCollection
- FetchXml StateCode Specified Cast is not Valid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fake-xrm-easy.