Back

CRM Real time plug-in returns the error, “Could not find the entity id to restrict the query.”

Published: Jan 27, 2022
Post Author Written by David Youngquist

Trying to create a map with a CRM real time data source.  When the changed is made in CRM, it is successfully creating a system job in CRM, however the system job fails with the following 3 errors in it.  

Error fetchXml does not contain the required restriction parameter.
Could not find the entity id to restrict the query.
Web service exception : Could not find the entity id to restrict the query.


This means that the restriction on the CRM real time data source has been removed.  When you create the real time CRM data source, it includes a reference to the entity’s unique identifier. The restriction will be on the GUID and will look something like this, “Account.Account = ‘00000000-0000-0000-0000-000000000000’.”

When the real-time query runs it replace the guid with the real value of the changed record.  If you removed this guid restriction the integration will fail, the solution is to either add back the restriction or delete the real time  data source and create it again so that the restriction gets automatically added.  

CRM default restrction

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.