Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault
An error occurred while debugging plug-in using Profiler in Dynamics 2015/2016/365Scenario: After installing the Plug-in Profiler in the registration tool, when I attempted to debug the Plug-in in CRM Registration Tool, it fails to debug and was throwing the following exception Error Displayed:
Unhandled Exception: System.ArgumentException: Unable to parse the OrganizationServiceFault
Background : Its a Simple On create Plug-in registered for Pre-operation of an account entity.
Fix:
- Close down you all your browsers including the CRM browser
- Re-Build your dll.
- Re open your Plug-in Registration Tool.
- Re Register your Plug-in and the appropriate steps in the Plug-in Registration Tool
- START PROFILING in Plug-in registration tool: Switch on Profiling for the Plug-in step. ENSURE that it's marked as "Profiled"
- Open CRM application, and repeat the activity to capture the error details again.
- Download and save the file.
“If you now open the two-error file and compare them (the original error file for which it was failing and the one newly generated after the above), you’ll see a significant difference in the information being captured. The new file now has the profiler related information which will assist in the DEBUG process”
In case the new error file is missing the section: "Download the details and load with Plug-in Profiler, as highlighted in the above image" Then you must perform the above steps again to ensure your step is marked as “profiled” in the plugin registration tool.
- Finally Invoke the Debug button from the Plugin registration tool and attach the Error file to the profile. It should hopefully work this time for you.
Good Luck!


