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
263 stars 182 forks source link

Filters with like condition throw 'Object reference not set to an instance of an object.' #608

Open sly83 opened 8 months ago

sly83 commented 8 months ago

Describe the bug I have a couple of unit tests in which I'm using a fetch xml with like conditions. It seems there are some issues with like operator when used in complex filters and in linked entities. I got null reference, and I'm unable to track the issue, because the exception doesn't have any details in it. This query works fine on the real CRM database. Also, if I execute the same fetch xml without like filters, it works fine.

I'm using FakeXrmEasy.9, v.1.58.1

To Reproduce The following code is the fetch xml that is executed.

`

`