web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to determine what plugin or process is causing a failure

(0) ShareShare
ReportReport
Posted on by 210

We have an issue with the name field on the account.  When modified "something" is failing and we receive a popup with the message Invalid Argument.

What I know

  • Failure only on updates
  • Failure only if updating the Name field - all other fields when updated process as expected
  • Failure if updating from a form or from an interface (which means to me that form javascript is not the culpret).

My assumption is that the failure is coming from a plugin or a workflow.  Any others?  WOuldn't it be nice if the failure actual said where it was generated

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Expected non-empty Guid.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220989</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>Expected non-empty Guid.</Message>
  <Timestamp>2017-10-16T13:38:46.9734166Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

To find the culprit I plan on disabling all plugin's and workflows on the Account entity. Any guidance on how to quickly find what is throwing the error?

Diane

*This post is locked for comments

I have the same question (0)
  • Zach Mast Profile Picture
    70 on at

    I agree that this looks like a plugin error.  Organization service faults happen when a call is made to the org service such as Retrieve or Update, in this case it looks like the plugin is passing Guid.Empty to the service instead of an actual guid value.  Since this only happens on update, I would review plugins registered on update of contact where firstname/lastname are included in the plugin filter.

  • Chadi Tannous Profile Picture
    1,039 on at

    you can enable plugin trace log and see all the info from the log

    www.powerobjects.com/.../debugging-your-plug-ins-with-the-plug-in-trace-log

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    If you don't have Visual Studio, you can try this way: msdn.microsoft.com/.../gg328574.aspx

    If you have VS, it will be easier to determine exactly what is causing the problem: rajeevpentyala.com/.../debugging-plug-ins-in-crm

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans