Advertisements
Home > CRM > CRM (on-prem) – Entity reference cannot have Id and Key Attributes empty error

CRM (on-prem) – Entity reference cannot have Id and Key Attributes empty error

We encountered below exception from a custom workflow activity in our Dynamics CRM on-prem 8.2.3 application.

WF_Error1

Reason and Fix:

  • Error message states that the ‘Output’ argument defined in custom workflow activity was returning ‘Null’.
  • I have below output argument of type ‘Lookup’ defined in my custom workflow activity but it always having value.

WF_Error3

  • Error was misleading in our case, as our debug concluded that the Output argument was always having value.
  • After spending considerable time, we figured out that the issue was due to a change at CRM website level.
  • Our IT team enabled SSL and added https binding to our dynamics website which caused this issue.
  • We had to set the custom workflow assemblies Isolation mode to ‘Sandbox’ to get the workflow running.

WF_Error2

Note:

  • This issue occurred only on UAT server but not on DEV instance, which also had SSL enabled same time.
  • Issue could be due to security policies enabled between the CRM application server and platform server on UAT.

🙂

Advertisements
Categories: CRM Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: