locked
WRPC INVALID TOKEN RRS feed

  • Question

  • I am facing the following issue while executing the script in jmeter...INVALID WRPC TOKEN. Can I get solution for this ? I am struggling a lot

    ?xml version="1.0" encoding="utf-8"?>soap:ServerMicrosoft.Crm.CrmException: INVALID_WRPC_TOKEN at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState() at Microsoft.Crm.Application.Security.WrpcContext.ValidateToken() at Microsoft.Crm.Core.Application.WebServices.AppWebService..ctor(Boolean wrpcCheck) ---> INVALID_WRPC_TOKENhttps://salesacc.nhcms.net/AppWebServices/InlineEditWebService.asmx0x8063110BUnhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: INVALID_WRPC_TOKENDetail: <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"> <ErrorCode>-2140991221</ErrorCode> <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> <Message>INVALID_WRPC_TOKEN</Message> <Timestamp>2014-08-07T06:47:49.1517722Z</Timestamp> <InnerFault i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault> Access DeniedThis form is no longer available. As a security precaution, Microsoft Dynamics CRM does not automatically resubmit your information for you. To continue, close and reopen the form, enter your information again, and then save the form.This form is no longer available. As a security precaution, Microsoft Dynamics CRM does not automatically resubmit your information for you. To continue, close and reopen the form, enter your information again, and then save the form.INVALID_WRPC_TOKENNot availableNot available<details>INVALID_WRPC_TOKEN</details>https://salesacc.nhcms.net/AppWebServices/InlineEditWebService.asmx/AppWebServices/InlineEditWebService.asmx<source></source>SOAP[CrmException: INVALID_WRPC_TOKEN] at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState() at Microsoft.Crm.Application.Security.WrpcContext.ValidateToken() at Microsoft.Crm.Core.Application.WebServices.AppWebService..ctor(Boolean wrpcCheck)

    Thursday, August 7, 2014 6:53 AM

All replies

  • I guess that WRPC Token is a dynamic mandatory parameter which needs to be extracted from the previous response and added to following request. The process of dynamic values extraction and re-using is called correlation. Inspect the first response and look for anything like WRPC_TOKEN. Then use JMeter pre-processors like Regular Expression Extractor to re-use it in further requests. See http://community.blazemeter.com/knowledgebase/articles/65150-using-regex-regular-expression-extractor-with-jm for example.

    Also you can disable token check by setting IgnoreTokenCheck=1 by setting value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM registry. See http://rajeevpentyala.wordpress.com/2011/09/22/unexpected-error-while-bulk-edit/ for more details. 


    • Edited by Dmitri T Tuesday, August 12, 2014 11:35 AM
    Tuesday, August 12, 2014 11:34 AM