Advertisements

Archive

Posts Tagged ‘Custom workflow activity’

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