Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

plugin succeeds while profiling but with profiling off it fails

Posted on by Microsoft Employee

The step is registered on pre-operation (20) and I have no post-operation steps.  It's on salesorder update when the shipto_addressid changes.  It copies a field value from the address to the order.  It actually can do two things.  If the address contains the value then write it to the Target else NULL it in the Target.

It wasn't happening so I profiled the step and, voila, the field fills or empties exactly as expected.  Turn off the profiling and it goes back to making no changes.

I actually step through the play back and it works beautifully. The debug only sees the pre-operation activity so, I'm guessing something about the modifications to the context are disappearing..

There are no errors in the system jobs.  There are no errors generated on the screen.

Anyone have any ideas?

  • RE: plugin succeeds while profiling but with profiling off it fails

    Hi,

    I'm glad to know that the issue is now fixed, please let us know if there is anything else that we can help you with.

    Wish you a great day ahead and a lovely week.

    Best Regards.

    Thank you for using Microsoft Dynamics 365 Communities,

    community.dynamics.com/.../dynamicscrmsupportblog

    Dynamics CRM Support Engineer - Customer Engagement

    Microsoft

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: plugin succeeds while profiling but with profiling off it fails

    I don't know what the story was.  The only advice I found on line was about unloading/reloading the plugin profiler; recompiling etc.

    Somewhere in there the issue disappeared.

  • Suggested answer
    RE: plugin succeeds while profiling but with profiling off it fails

    Hello,

    Could you please validate if the calling user that you had used to register the plugin step has permission to perform those actions on the records. Because when you are profiling a plugin it provides the User with full permission, which in some cases can allow him to perform operations that in normal circumstances he doesn't have permission to do it.

    If this not solve the issue I would like to advise you to open a support request with Microsoft please, because the issue you have identified needs to be investigated in more detail.

    Best Regards.

    Thank you for using Microsoft Dynamics 365 Communities,

    community.dynamics.com/.../dynamicscrmsupportblog

    Dynamics CRM Support Engineer - Customer Engagement

    Microsoft

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans