Search This Blog

Thursday, September 20, 2012

Error Registering Plugin with CRM Online created via Office365

I was putting together a demo this week and provisioned a new instance of CRM Online.  For those of you haven't done this yet, the process is now done via Office 365 and there are in a few minor differences.

We began to load up some of our pre-built solutions which seemed to go OK.  We needed to register a plugin that we developed for auto-numbers.  The plug-in registration tool (which we used many time before) came up with an errors.  The first one was "Unable to retrieve organisations from the discovery service".  Upon further reading (and looking at the new customization endpoints in CRM online) we learned that you now need to change the discovery URL from https://dev.crm.dynamics.com to https://disco.crm.dynamics.com

No problem, done.  We were still getting errors, further investigation showed "Unhandled Exception: System.InvalidOperationException: There is an error in XML document (5, 5)." and a whole bunch more information on the error.

After some research, we learned that there were some updates in the latest rollups and the SDK that corresponded with some of the Office365/CRM Online changes.  We ended up recompiling the plugin registration tool using the most up to date CRM SDK and we were then able to retrieve the organizations.  We did run into an error connecting to the organization, but retried 1-2 more times and it did connect (hmmm). 

Lesson learned, keep your tools up to date with CRM instances!