locked
Getting error when saving a record in crm application - INVALID_WRPC_TOKENDetail RRS feed

  • Question

  • I am getting an error and unable to save the record.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: INVALID_WRPC_TOKENDetail: 
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
    <ErrorCode>-2140991221</ErrorCode>
    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>INVALID_WRPC_TOKEN</Message>
    <Timestamp>2016-04-22T00:57:06.8132725Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Note: I have seen some posts saying that we need to turnoff the security check at registry level.  But this is not a recommended approach.

    How to resolve this issue. 

    Thanks in Advance.

    Monday, April 25, 2016 3:54 AM

All replies

  • Can you give more information about when this occurs ? For example:

    • Is this just a standard save operation, or do you have any custom code ? If so, is it client-side code, or a synchronous plugin ?
    • Does this happen for all entities and users, or just in specific circumstances ?

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, April 25, 2016 7:54 AM
    Moderator
  • I Observed for custom entity.

    Contains some plugin pre-validations. 

    Same code works when it is running in intranet.

    Getting token error it is access from home network using secure remote login.

    Tuesday, April 26, 2016 3:57 AM