Skip to main content

Notifications

Announcements

No record found.

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

Unable to parse Organization Service Fault

Posted on by 125

Hi,

I have wrote a plugin on the creation of Account in Dynamics 365b trial version.

The plugin works at the server end.But I cant able to debug the plugin using Plugin Profiler in PRT.

When I debug the profiler,and if I attach the download log file then it shows:

Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault.
Parameter name: serializedReport
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)
at PluginProfiler.Library.ProfilerUtility.DeserializeProfilerReport(String assemblyFilePath, String logFilePath, Boolean isCrmDataStream)
at PluginProfiler.Library.ProfilerExecutionUtility.RetrieveReport(String logFilePath, Boolean isCrmDataStream)
at Microsoft.Crm.Tools.PluginRegistration.CommonControls.Helper.ParseReportOrShowError(Window window, FileBrowserView profilePathControl, Boolean requireReportParse, ProfilerPluginReport& report)
Inner Exception: System.InvalidOperationException: File does not contain a valid serialized OrganizationServiceFault.
at PluginProfiler.Library.ProfilerUtility.ConvertFaultToStream(String serializedFault)
at PluginProfiler.Library.ProfilerUtility.ExtractReport(String serializedReport)

I have also tried Fiddler to decrpyt the HTTPS traffic.Kindly help me to debug the plugin in CRM Online

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Unable to parse Organization Service Fault

    If your issue is resolved take a minute and close the thread clicking "Yes" under question "Did this answer your question?" at the top of the reply that answered your question.

  • Suggested answer
    CRM Profile Picture
    CRM 125 on at
    RE: Unable to parse Organization Service Fault

    Thank you sir.the problem gets resolved.Now I am able to debug the plugin in CRM Online.

  • Suggested answer
    RE: Unable to parse Organization Service Fault

    Hello,

    As Andrew mentioned, as a best practice use Persist to Entity Option while profiling and it should resolve above error. You can go through this article to know more about it - rajeevpentyala.com/.../

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Unable to parse Organization Service Fault

    Hello,

    I would recommend to use "Persist to Entity" approach - www.youtube.com/watch

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans