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)

Issue after migrating a organization from 2011 to 2013

(0) ShareShare
ReportReport
Posted on by

We are in the process of upgrading a customer from a CRM 2011 solution to CRM 2013.
I have gone through all code (CRM 4.0 style) and upgraded all code to the new way of coding as of 2011. 
Custom Code Validation Tool shows all as fine.

Importing the org to 2013 went well without any errors, but after import CRM 2013 only shows a blank page with a blue bar on top. Tried to create a new org and that worked well, but not the imported one.

I get an error message saying:

<CrmScriptErrorReport>

<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot read property 'argumentNull' of undefined</Message>
<Line>5</Line>
<URL>/_common/global.ashx?ver=317637513</URL>
<PageURL>/main.aspx</PageURL>
<Function>anonymousr:Cannotreadproperty'argumentNull'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotreadproperty'argumentNull'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1200</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2014-11-06T08:51:32</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1044</OrgLanguage>
<OrgCulture>1044</OrgCulture>
<UserLanguage>1044</UserLanguage>
<UserCulture>1044</UserCulture>
<OrgID>{FC02E854-755B-E411-825B-D4BED9AE4FA0}</OrgID>
<UserID>{EF4B3C53-B50D-E011-9844-0019B9E02408}</UserID>
<CRMVersion>6.1.1.132</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hello Jens,

    Judging by the error message, a migrated script is giving you issues. Are you calling function openentityform to open a new appointment form passing values for the fields as parameters in the call in any of your migrated scripts?

    Also, what Update Rollup is the migrated CRM 2013 deployment on?

  • Community Member Profile Picture
    on at

    CRM 2013 is SP1 UR1 and I migrated the org from CRM 2011 UR18

    How can a migrated script make problems before I open any forms?

    I only use onLoad , onChange and onSave JS scripts in forms.

    Most of my JS are behind the Account form, about 2 000 lines of code as the user wanted a lot of functionality in CRM 4.0 that was not available out of the box and had to be coded. Have removed a lot of it prior to migrating the org as much of the functionality is now a part of CRM out of the box.

    I have managed to go directrly to customization.

    Could perhaps try to comment out some of my functions, but find it strange that a function under a form should make the whole CRM UI display blank instead of showing grids.

    Also have managed to set user settings to try another default entity to show at logon. Same error.

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hello Jens,

    I'd try the following: deactivate all scripts and see if the issue still happens. The error message is definately hinting at script issues. Once we are sure that the issue does not happen with scripts de-activated, we can narrow down the scope until we find the offending script.

  • Community Member Profile Picture
    on at

    I tried removing all custom JS scripts and deactivate all processes. Still the same issue.

    Event log has one error, not sure if there are a link between the errors.

    "Monitoring runtime failed: Machine: CRM-01: Exception: SmokeTests failed with exception : System.UnauthorizedAccessException: Access to the path 'Report--05.11.2014 08 19 28--CRM-01.xml' is denied.

      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

      at System.IO.FileInfo.Delete()

      at Microsoft.Crm.SmokeTests.Execute.CreateViewerDataFile(Int32 maxResultFilesToKeep, Dictionary`2 serverResults, DateTime startTime, DateTime endTime, String description)

      at Microsoft.Crm.SmokeTests.Execute.ExecuteMonitoringTests(ServerRoles targetRoles, TestFrequency testFrequency, Boolean inService)

      at Microsoft.Crm.SmokeTests.Execute.Main(String[] args)

      at Microsoft.Crm.Monitoring.Service.MonitoringService.ExecuteTestsThreadProc(Object args)."

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hello Jens,

    The error pasted does not seem to be directly related. I would recommend to switch on CRM server side tracing and repro the issue (with scripts deactivated).

    Hopefully we can identify the cause with help of the platform logs.

  • Community Member Profile Picture
    on at

    Trace gives two errors when recreating the error

    1:

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7

    at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x5

    at WrpcContext.ValidateTokenState()  ilOffset = 0x105

    at WrpcTokenValidationListener.HandlePreEvent(PlatformCommand command)  ilOffset = 0x12

    at CommunicationListener.HandlePreEvent(PlatformCommand command)  ilOffset = 0x2F

    at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xE

    at UpdateCommand.Execute()  ilOffset = 0x7

    at LookupMruList.saveInternal(Int32 typeCode, String LookupMruXml, Dictionary`2 entityList, IOrganizationContext context)  ilOffset = 0x30

    at LookupMruList.SaveAll(String lookupMruXml, IOrganizationContext context)  ilOffset = 0x1CA

    at LookupMruWebService.UploadLookupMru(String lookupMruXml, Boolean retrieveAfterUpdated)  ilOffset = 0x11

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at WebServiceHandler.Invoke()  ilOffset = 0xC3

    at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

    at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

    at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x7

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    Crm Exception: Message: INVALID_WRPC_TOKEN, ErrorCode: -2140991221

    2:

    at ErrorInformation.LogError()  ilOffset = 0x17

    at ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError, IOrganizationContext context)  ilOffset = 0x1F5

    at ErrorInformation..ctor(Exception exception, Uri requestUrl, IOrganizationContext context)  ilOffset = 0x5

    at AppWebService.CreateSoapException(Exception innerException)  ilOffset = 0x3D

    at LookupMruWebService.UploadLookupMru(String lookupMruXml, Boolean retrieveAfterUpdated)  ilOffset = 0x11

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at WebServiceHandler.Invoke()  ilOffset = 0xC3

    at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

    at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

    at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x7

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: INVALID_WRPC_TOKEN

    Error Number: 0x8063110B

    Error Message: INVALID_WRPC_TOKEN

    Error Details: INVALID_WRPC_TOKEN

    Source File: Not available

    Line Number: Not available

    Request URL: 192.168.1.37/.../LookupMruWebService.asmx

    Stack Trace Info: [CrmException: INVALID_WRPC_TOKEN]

      at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()

      at Microsoft.Crm.Common.Application.Platform.CommunicationListeners.WrpcTokenValidationListener.HandlePreEvent(PlatformCommand command)

      at Microsoft.Crm.Application.Platform.CommunicationListeners.CommunicationListener.HandlePreEvent(PlatformCommand command)

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

      at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute()

      at Microsoft.Crm.Application.Utility.LookupMruList.saveInternal(Int32 typeCode, String LookupMruXml, Dictionary`2 entityList, IOrganizationContext context)

      at Microsoft.Crm.Application.Utility.LookupMruList.SaveAll(String lookupMruXml, IOrganizationContext context)

      at Microsoft.Crm.Core.Application.WebServices.LookupMruWebService.UploadLookupMru(String lookupMruXml, Boolean retrieveAfterUpdated)

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hmm, that error is unexpected. It relates to an token issue. Please implement the following.

    ***Warning*** The below suggested steps involve a Registry modification! Please make sure you back up the registry before doing this and also please be aware that this is done on one's own risk.

    Create a DWORD registry key named IgnoreTokenCheck under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM” and set the value to 1,
    Recycle the CrmAppPool application pool for the change to take effect (or) restart machine
    
    Steps to change the registry:-
    
    Open Registry Editor (Run -> regedit)
    Navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM” node
    Add a new Key “IgnoreTokenCheck” and set value to 1 
  • Community Member Profile Picture
    on at

    Tried IgnoreTokenCheck and that removed the error from the trace.

    Now I'm back to having the original error but without any errors in the trace

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Ok, thanks for the update. I would like to propose one more attempt to narrow this down:

    Please enable the debugging trace in Internet Explorer (via F12) and let me know if any error shows.

    If none, I'd suggest opening a support request with Microsoft so that we can have dedicated resources to solve the issue for you.

  • Community Member Profile Picture
    on at

    Managed to solve the issue by exporting/importing the 2011 solution again after having fixed a couple of issues in the old solution that I fixed after import to 2013 on the last try.

     

    * Fixed a couple of errors in the JS code (.text to getText() and .dataValue to getValue() )

    * Added name to the admin user, it was blank in the 2011 org

     

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