Error when using MS CRM importer in web test

Aug 24, 2009 at 4:52 PM

 

Hi,

I am trying to augument the toolkit by adding some web tests around importing of data. When I run the test I get an error message on the last request to do

with the WRPC token. I have generated the C# code for the web test but still cannot get it to import data.

 

Anyone any ideas on the error message below?

 

<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <soap:Fault>
  <faultcode>soap:Server</faultcode>
  <faultstring>Microsoft.Crm.CrmException: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=aHcPTodLEd6g+AAVXfrGDdiAXgN9Z4J5evuRTDbz4ulZ7vrVqTOuGjljAqIpCqot at Microsoft.Crm.Application.Security.WRPCContext.ValidateTokenState() at Microsoft.Crm.Application.Platform.CommunicationListeners.CommunicationListener.HandlePreEvent(PlatformCommand command) at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal() at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute() at Microsoft.Crm.Application.Platform.ImportFile.SubmitImportFromAppWizard(Guid importId, Guid importFileId, String importName, String recordType, Guid importMap, Boolean useSystemMap, Boolean isForUpdate, Guid assignTo, Boolean enableDuplicateDetection, Boolean sendNotification, String emailAddress) at Microsoft.Crm.Application.WebServices.ImportWebService.SubmitImport(Guid importFileId, Guid importId, String recordType, Guid importMap, Boolean useSystemMap, Boolean isForUpdate, Guid assignTo, Boolean enableDuplicateDetection, String importName, Boolean sendNotification, String emailAddress) ---> INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=aHcPTodLEd6g+AAVXfrGDdiAXgN9Z4J5evuRTDbz4ulZ7vrVqTOuGjljAqIpCqot</faultstring>
  <faultactor>http://dcrmdevv4:5555/dcrmdevv4/AppWebServices/ImportWebService.asmx</faultactor>
- <error xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <code>0x8063110B</code>
  <displaytitle>Access Denied</displaytitle>
  <displaytext>Invalid Operation</displaytext>
  <description>INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=aHcPTodLEd6g+AAVXfrGDdiAXgN9Z4J5evuRTDbz4ulZ7vrVqTOuGjljAqIpCqot</description>
  <file>Not available</file>
  <line>Not available</line>
  <details>INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=aHcPTodLEd6g+AAVXfrGDdiAXgN9Z4J5evuRTDbz4ulZ7vrVqTOuGjljAqIpCqot</details>
  <requesturl>http://dcrmdevv4:5555/dcrmdevv4/AppWebServices/ImportWebService.asmx</requesturl>
  <pathAndQuery>/dcrmdevv4/AppWebServices/ImportWebService.asmx</pathAndQuery>
  <source>SOAP</source>
  <stacktrace>[CrmException: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=aHcPTodLEd6g+AAVXfrGDdiAXgN9Z4J5evuRTDbz4ulZ7vrVqTOuGjljAqIpCqot] at Microsoft.Crm.Application.Security.WRPCContext.ValidateTokenState() at Microsoft.Crm.Application.Platform.CommunicationListeners.CommunicationListener.HandlePreEvent(PlatformCommand command) at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal() at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute() at Microsoft.Crm.Application.Platform.ImportFile.SubmitImportFromAppWizard(Guid importId, Guid importFileId, String importName, String recordType, Guid importMap, Boolean useSystemMap, Boolean isForUpdate, Guid assignTo, Boolean enableDuplicateDetection, Boolean sendNotification, String emailAddress) at Microsoft.Crm.Application.WebServices.ImportWebService.SubmitImport(Guid importFileId, Guid importId, String recordType, Guid importMap, Boolean useSystemMap, Boolean isForUpdate, Guid assignTo, Boolean enableDuplicateDetection, String importName, Boolean sendNotification, String emailAddress)</stacktrace>
  </error>
  </soap:Fault>
  </soap:Body>
  </soap:Envelope>