locked
Error when saving a data map in crm 4.0 build 18 RRS feed

  • Question

  • I get a generic error when I attempt to create and save  a  new data map.  I enabled logging and get the following log generated when the error occurs.  I can open, modify and save existing data maps with no issues.  Can anyone give me any help with this one.

    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Exception |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | CrmException..ctor
     at CrmException..ctor(String message, Int32 errorCode)
     at ImportMapService.GetIdFromXml(XmlNode node, String nodeName, Boolean replaceIds, ExecutionContext context)
     at ImportMapService.GetImportMapObject(XmlDocument doc, Boolean replaceIds, ExecutionContext context)
     at ImportMapService.CreateOrUpdateImportMapFromApp(String mapXml, Guid[] colMappingIdsToDelete, ExecutionContext context)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at InternalOperationPlugin.Execute(IPluginExecutionContext context)
     at PluginStep.Execute(PipelineExecutionContext context)
     at Pipeline.Execute(PipelineExecutionContext context)
     at MessageProcessor.Execute(PipelineExecutionContext context)
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
     at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at InProcessCrmService.Execute(Object request)
     at PlatformCommand.ExecuteInternal()
     at CreateOrUpdateImportMapFromAppCommand.Execute()
     at ImportWebService.CreateOrUpdateImportMapFromApp(String mapXml, Guid[] colMappingIdsToDelete)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at WebServiceHandler.Invoke()
     at WebServiceHandler.CoreProcessRequest()
     at SyncSessionlessHandler.ProcessRequest(HttpContext context)
     at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     at ApplicationStepManager.ResumeSteps(Exception error)
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
     at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: Attribute <Id> could not be found in Map node: asdf, ErrorCode: -2147220991
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Platform |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | MiniDump.CreateDumpInternal
    >Exception while loading mini-dump settings:
    System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
       at Microsoft.Crm.MiniDump.MiniDumpSettings.Create()
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Platform |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'CreateOrUpdateImportMapFromApp' for 'importmap'.
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Platform.Sdk |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | InProcessCrmService.Execute
    >non-plugin non- CrmException detected - report will be sent to Watson:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
       at Microsoft.Crm.MiniDump.MiniDumpSettings.Create()
       at Microsoft.Crm.MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception)
       at Microsoft.Crm.MiniDump.CreateDump(MiniDumpReasons reason, Exception exception)
       at Microsoft.Crm.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
       at Microsoft.Crm.CrmException..ctor(String message, Int32 errorCode)
       at Microsoft.Crm.ObjectModel.ImportMapService.GetIdFromXml(XmlNode node, String nodeName, Boolean replaceIds, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.ImportMapService.GetImportMapObject(XmlDocument doc, Boolean replaceIds, ExecutionContext context)
       at Microsoft.Crm.ObjectModel.ImportMapService.CreateOrUpdateImportMapFromApp(String mapXml, Guid[] colMappingIdsToDelete, ExecutionContext context)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Platform |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | MiniDump.CreateDumpInternal
    >Exception while loading mini-dump settings:
    System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
       at Microsoft.Crm.MiniDump.MiniDumpSettings.Create()
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Platform |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | MiniDump.CreateDumpInternal
    >Exception while loading mini-dump settings:
    System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
       at Microsoft.Crm.MiniDump.MiniDumpSettings.Create()
    [2011-10-20 10:49:23.1] Process: w3wp |Organization:d5cabf26-b21a-4ec7-8891-a020f2220db3 |Thread:    7 |Category: Application |User: ff3f5530-f881-401e-b429-1baf892f921b |Level: Error | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Unable to cast object of type 'System.Int32' to type 'System.String'.

    Error Message: Unable to cast object of type 'System.Int32' to type 'System.String'.

    Source File: Not available

    Line Number: Not available

    Request URL: http://sbs-crm/SBS/AppWebServices/ImportWebService.asmx

    Stack Trace Info: [InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.]
       at Microsoft.Crm.MiniDump.MiniDumpSettings.Create()
       at Microsoft.Crm.MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception)
       at Microsoft.Crm.MiniDump.CreateDump(MiniDumpReasons reason, Exception exception)
       at Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request)
       at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal()
       at Microsoft.Crm.Application.Platform.ServiceCommands.CreateOrUpdateImportMapFromAppCommand.Execute()
       at Microsoft.Crm.Application.WebServices.ImportWebService.CreateOrUpdateImportMapFromApp(String mapXml, Guid[] colMappingIdsToDelete)

     

    Thursday, October 20, 2011 9:29 PM