Giter Site home page Giter Site logo

Comments (10)

bwmodular avatar bwmodular commented on June 2, 2024 2

Ah, here we are. By default the XrmToolBox EBG sets this to false:
image
giving this reason:
image

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.

bwmodular avatar bwmodular commented on June 2, 2024 1

Hi Jordi,
the examples in the repo work for me too.
The stack trace gives very little away:
image
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.

jordimontana82 avatar jordimontana82 commented on June 2, 2024 1

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.

jordimontana82 avatar jordimontana82 commented on June 2, 2024

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!

imagen

from fake-xrm-easy.

jordimontana82 avatar jordimontana82 commented on June 2, 2024

Excellent! Thanks Ben!

from fake-xrm-easy.

bwmodular avatar bwmodular commented on June 2, 2024

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.
image

I'll start a new project next and also try it another pre-existing plugin testing project...

from fake-xrm-easy.

bwmodular avatar bwmodular commented on June 2, 2024

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.

bwmodular avatar bwmodular commented on June 2, 2024

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:
image

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.

bwmodular avatar bwmodular commented on June 2, 2024

Aha. Getting a little bit closer, I think.

Debugging a local copy of FakeXrmEasy shows me the line which is failing:
image

and in the immediate window I can see that the EntityTypeCode of the Account (and other early bound classes) is null:
image

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.

jordimontana82 avatar jordimontana82 commented on June 2, 2024

Related to #496

from fake-xrm-easy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.