Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Plugin not firing during data import?

Posted on by 1,465

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

  • J Matlon Profile Picture
    J Matlon 1,465 on at
    RE: Plugin not firing during data import?

    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.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Plugin not firing during data import?

    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

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Plugin not firing during data import?

    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.

  • Suggested answer
    Felippe Profile Picture
    Felippe 796 on at
    RE: Plugin not firing during data import?

    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.

    With this you can handle each record that you are trying to update and genarate log.


    If this solves, please Mark as a VERIFIED ANSWER

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Plugin not firing during data import?

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans