Avoiding Infinite Loop when it's not? + Plugin TimeOuts
-
Friday, January 11, 2013 1:05 PM
Hi everyone,
We have a plugin that needs to process a big amount of records. This can be up to 100.000+ records and even way more (depends of the organization).
To avoid the 2 minute plugin execution time-out we created our PluginHandler system that will process 250 records per batch. When he is ready, it will create a new instance of the PluginHandler and so continues until he is ready.
But the problem we are facing at this point is the infinite loop protection of CRM. The 7th records he wants to create gives the infinite loop message and it throws an error.
Is there any way to avoid this unwanted situation. (Please no Workflow Activity..)
Thanks in advance,
Robin
- Edited by RobinDB Friday, January 11, 2013 1:09 PM
All Replies
-
Friday, January 11, 2013 1:25 PM
Hi,
One way is to change the limit using SQL Update. It may impact your server performance. Use it at your own risk:UPDATE DeploymentProperties SET IntColumn = 16 WHERE ColumnName = 'MessageProcessorMaximumDepth'
Or
consider changing your desing. Instead of a batch, you can trigger multiple plugins which process a bunch of records.
Earlier I have replied to similiar kind forum post. See whether this can solve your problem. Check my first reply
in the following post:
http://social.microsoft.com/Forums/en/crmdevelopment/thread/a503bd56-453a-43e7-a198-a39752160ded
Vikranth http://howto-mscrm.blogspot.com "Please Mark it as answer if it helps in resolving your query"
-
Friday, January 11, 2013 3:34 PMThe SQL update may be nice, but that is no solution for CRM online.
- Edited by RobinDB Friday, January 11, 2013 3:35 PM
-
Sunday, January 13, 2013 9:21 AM
Consider going with Custom workflow incase the reason you have not considered them as you are on CRM online. "Custom Workflows" are now supported in CRM online with UR 12.
http://msdn.microsoft.com/en-us/library/gg309589.aspx
Vikranth http://howto-mscrm.blogspot.com "Please Mark it as answer if it helps in resolving your query"