Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

Posted on by 161

Hi team,

I am finding some strange behavior in plugin registration tool, when i am profiling the plugin i am able to get the result what i intended for , but when i am disabling the profiling i am getting error In CRM. below is the snap for your reference.

can any one of you suggest something on this?

Online CRM / V 8.2 

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occured in InCenterPayments Plugin : Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>22e655f9-93ef-432b-813b-17856c1f7ce7</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>An error occured in InCenterPayments Plugin : </Message>
<Timestamp>2018-05-07T07:02:36.4830441Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />

*This post is locked for comments

  • Arnaud Smadja Profile Picture
    Arnaud Smadja 15 on at
    RE: Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

    Hi,

    I have the same behavior with 9.1 onprem in sandbox.

    the plugin works fine only when profiler is on.

  • Kevin Grech Profile Picture
    Kevin Grech 380 on at
    RE: Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

    You might want to log the context depth. could be that the plugin is triggered multiple times in the sequence and in plugin profiler you'd catch the first run

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

    Hi Nagaraj M,

    Can you try following.

    • Uninstall Profiler.  
    • Unregister plugin.
    • re-register plugin again (This time dont install Profiler) 
    • Also make sure this issue is only with this plugin ( create simple plugin only for testing purpose)

    Thanks

    Justin Jose

  • Nagaraj M Profile Picture
    Nagaraj M 161 on at
    RE: Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

    I debug the code as well it's working as expected no exception even while debugging also.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Plugin is not working When I am disabling the profiling on Step In Plugin Registration tool?

    Hi Nagaraj,

    Did you actually debug the code whilst profiling or just tested with profiled enabled?

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans