Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error generated when updating user field.

Posted on by 150

Looking at the following error...could someone give me an idea what may be causing this? The error is generated after changing the manager field for any user and trying to save the record.

 

Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.BadImageFormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2AEA9224Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>CallStack</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">   at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark&amp; stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource)
   at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore, SecurityContextSource securityContextSource)
   at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.LoadPluginAssembly(Byte[] assemblyContents, Byte[] assemblySymbols)
   at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.LoadPluginAssembly(Byte[] assemblyContents, Byte[] assemblySymbols)
   at Microsoft.Crm.Sandbox.SandboxAppDomain.LoadPluginAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String assemblyName, String trackingId, Int32 depth)
   at Microsoft.Crm.Sandbox.SandboxWorker.ValidateAndGetAppDomainHelper(SandboxCallInfo callInfo, SandboxExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, SandboxTracker tracker, SandboxRequestCounter&amp; workerCounter)
   at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter, Boolean returnTraceInfo)</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>System.BadImageFormatException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2AEA9224</Message>
  <Timestamp>2017-05-30T17:44:07.7803847Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[ICS.PharMerica.Plugins.UpdateTimeEntryApprover: ICS.PharMerica.Plugins.UpdateTimeEntryApprover]
[d77f2ab3-aba0-e311-9218-00155d001314: ICS.PharMerica.Plugins.UpdateTimeEntryApprover: PreUpdate of systemuser]


</TraceText>
</OrganizationServiceFault>

*This post is locked for comments

  • Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Error generated when updating user field.

    Hah, that is an odd answer.  If you have to turn off a plugin, there's something wrong with it, but at least you have a workaround.

  • kewlman123 Profile Picture
    kewlman123 150 on at
    RE: Error generated when updating user field.

    Thanks for the confirmation Alex, we actually had a vendor tell us that there is nothing wrong with the plug-in and to just disable it when the manager field needed to be updated.

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Error generated when updating user field.

    >One question, we had someone look at the error and they blame it on a condition...

    BadImageFormatException usually means a problem with the dll. For example, when trying to run a 64-bits assembly on a 32 bits machine.. that kind of does not make sense to me in the CRM context, but, still, it is very unlikely there is a problem with plugin logic (time card is missing etc) - it seems to be a problem with how that plugin was compiled/deployed. Maybe it's an older solution.. Or, maybe, CRM was upgraded from the earlier versions and the plugin got stuck there from the CRM4 era.. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error generated when updating user field.

    ICS.PharMerica.Plugins.UpdateTimeEntryApprover: PreUpdate of systemuser

    is throwing error. disable that plugins step is the quickest fix.

  • kewlman123 Profile Picture
    kewlman123 150 on at
    RE: Error generated when updating user field.

    Hi Wayne....thanks a bunch for the info.  One question, we had someone look at the error and they blame it on a condition...meaning that there is no "time card" for this particular user so the manager cannot be changed.  Would this error be dependent on conditions?

  • Suggested answer
    Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Error generated when updating user field.

    You have a custom plugin, "ICS.PharMerica.Plugins.UpdateTimeEntryApprover" that is throwing an error.  Find out where that plugin came from and have the ISV fix the issue.  Alternately, if you don't use it anymore, disable the plugin in Customizations and updating records should work again.

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans