jordimontana82 / fake-xrm-easy

The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
https://dynamicsvalue.com/get-started/overview?source=git
Other
262 stars 182 forks source link

'entity_name' entity doesn't contain attribute with Name = 'attribute_name'. exception missing #463

Closed ilyasgu closed 4 years ago

ilyasgu commented 4 years ago

When adding a value to a non-existing attribute of an entity CRM run-time throws entity doesn't contain attribute exception. This is missing. Fake Xrm easy updated the entity and adds the attribute to the entity even the context.ProxyTypesAssembly is given.

How can we achieve this issue?

I use "FakeXrmEasy.365" version="1.55.0" targetFramework="net452"

jordimontana82 commented 4 years ago

This is likely because the .dll in the ProxyTypesAssembly wasn't generated/updated with the latest attribute. I'm closing this one but if you still have this issue we would need a sample unit test to reproduce.