We have a plugin on the PreUpdate of a Contact that checks an address against Postal guidelines.
When we performed a data import, the records were updated from the data import, however the plugins failed to run. The plugin fires correctly when updating a record from the form in CRM.
I'm not sure if the plugins failed to run, because they fired on Pre instead of Post, or if something else could be going on here.
Any ideas?
*This post is locked for comments
Thanks all. After some tracing, I found that the plugins were not properly deployed to the server which handled our Async processing. And therefore, they were properly running during data imports.
Hi Joe,
How do you confirmed that the plugin is not firing?
I am suspecting this might be the issue of your plugin depth may be returning from somewhere before execute actual logic.
Try to enable trace And write some logs-
www.powerobjects.com/.../dynamics-crm-2015-spring-update-1-plug-in-trace-log
Hi, PreOperation is valid stages to do update another entity. You must checked your code to know what's wrong with it. If in your plugin there is block try-catch, please do removed it.
Hi Joe,
I think that use PreUpdate plugin with data import is not the best option for you.
If your scenario allows, I suggest to do this data import with SSIS/Console application that will read your spreadsheet(csv / xls)
and persist the records on Dynamics periodically. Especially if you are working with a bunch of records on this imports.
Try enabling tracing/logging on your CRM Server or use TracingService inside your plugin to display messages if there are any issues during Plugin execution. Review the logs or traces and see if there are any issues that you might not have foreseen.
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156