web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

IPluginExecutionContext Depth is 2 in Create Plugin during Import of records in CRM 2015 (and earlier)

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

We had one of our plugins on Create of Opportunity however during the import of the Opportunity record it was not working properly. We had the Depth check in our plugin code to check for infinite loop as the same plugin was being used for Update also.

After some debugging we realized that Depth value is 2 instead of 1 during import.

To test this, we created a sample plugin for create of Test entity record and then imported the Test entity records.

As expected the import failed and we got our custom exception in it.

Hope this helps..


Filed under: CRM 2011, CRM 2013, CRM 2015, CRM 2016, Microsoft Dynamics CRM Tagged: CRM, CRM 2011, CRM 2013, CRM 2015, CRM 2016, Microsoft Dynamics CRM

This was originally posted here.

Comments

*This post is locked for comments