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)

Error generated when updating user field.

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Wayne Walton Profile Picture
    13,730 on at

    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.

  • kewlman123 Profile Picture
    150 on at

    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?

  • Community Member Profile Picture
    on at

    ICS.PharMerica.Plugins.UpdateTimeEntryApprover: PreUpdate of systemuser

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

  • Verified answer
    ashlega Profile Picture
    34,477 on at

    >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.. 

  • kewlman123 Profile Picture
    150 on at

    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.

  • Wayne Walton Profile Picture
    13,730 on at

    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.

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