locked
error on backend server : System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character. RRS feed

  • Question

  • Hi all,

    We keep getting this error in event viewer every 2 min.
    What is this?

    The Web Service plug-in failed in OrganizationId: 61dca130-989f-de11-b070-00155d150a07; SdkMessageProcessingStepId: d5cabb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: none; Stage: 30; MessageName: Execute; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

       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(IServiceProvider serviceProvider)

       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    Inner Exception: System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character.

       at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)

       at System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)

       at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)

       at System.Xml.XmlWellFormedWriter.WriteValue(String value)

       at Microsoft.Crm.BusinessEntities.ResultAttribute.SerializeToXml(XmlWriter resultXml)

       at Microsoft.Crm.BusinessEntities.ResultEntity.SerializeToResultSetXml(XmlWriter resultXml)

       at Microsoft.Crm.BusinessEntities.QueryProcessObject.CreateResultSetXmlFromResultEntities(List`1 resultEntities, EntityExpression entityExpression, Boolean moreRecords, Int32 totalRecordCount, Boolean totalRecordCountLimitExceeded, ExecutionContext context)

       at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveDataQueryAsResultXml(EntityExpression entityExpression, IDbCommand sqlQuery, String aggregateLimitExceededName, ExecutionContext context)

       at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveQueryAsResultXml(EntityExpression entityExpression, QueryStrategyType strategyType, ExecutionContext context)

    .

    Monday, November 9, 2015 11:52 AM

All replies

  • more logs:

    Exception generated at: 09-11-2015 12:59:00
    Error Type: System.ArgumentException
    Error Message: ' ', hexadecimal value 0x0B, is an invalid character.
    Error Stack Trace:
     at XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)  ilOffset = 0x0
     at XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)  ilOffset = 0x1D3
     at XmlEncodedRawTextWriter.WriteString(String text)  ilOffset = 0x43
     at XmlWellFormedWriter.WriteValue(String value)  ilOffset = 0x42
     at ResultAttribute.SerializeToXml(XmlWriter resultXml)  ilOffset = 0x40
     at ResultEntity.SerializeToResultSetXml(XmlWriter resultXml)  ilOffset = 0x26
     at QueryProcessObject.CreateResultSetXmlFromResultEntities(List`1 resultEntities, EntityExpression entityExpression, Boolean moreRecords, Int32 totalRecordCount, Boolean totalRecordCountLimitExceeded, ExecutionContext context)  ilOffset = 0x107
     at QueryProcessObject.RetrieveDataQueryAsResultXml(EntityExpression entityExpression, IDbCommand sqlQuery, String aggregateLimitExceededName, ExecutionContext context)  ilOffset = 0x166
     at QueryProcessObject.RetrieveQueryAsResultXml(EntityExpression entityExpression, QueryStrategyType strategyType, ExecutionContext context)  ilOffset = 0x82


    Stack Frame:

     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x6C
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x156
     at ExternalMessageDispatcher.ExecuteLegacyRequest(IInProcessOrganizationServiceFactory factory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, OptionalParameter[] optionalParameters, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Version endpointVersion)  ilOffset = 0x71
     at CrmServiceInternal.ExecuteRequest(String messageName, String requestName, Int32 primaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)  ilOffset = 0x39
     at CrmServiceInternal.Fetch(String namespaceName, String fetchXml, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)  ilOffset = 0x49
     at CrmService.Fetch(String fetchXml)  ilOffset = 0x36
     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


    Exception Data:
     1: Key type: System.String, value: PluginTrace

    Custom Message: Web Service Plug-in failed in SdkMessageProcessingStepId: d5cabb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: none; Stage: 30; MessageName: Execute; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       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(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    Inner Exception: System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character.
       at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
       at System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
       at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
       at System.Xml.XmlWellFormedWriter.WriteValue(String value)
       at Microsoft.Crm.BusinessEntities.ResultAttribute.SerializeToXml(XmlWriter resultXml)
       at Microsoft.Crm.BusinessEntities.ResultEntity.SerializeToResultSetXml(XmlWriter resultXml)
       at Microsoft.Crm.BusinessEntities.QueryProcessObject.CreateResultSetXmlFromResultEntities(List`1 resultEntities, EntityExpression entityExpression, Boolean moreRecords, Int32 totalRecordCount, Boolean totalRecordCountLimitExceeded, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveDataQueryAsResultXml(EntityExpression entityExpression, IDbCommand sqlQuery, String aggregateLimitExceededName, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.QueryProcessObject.RetrieveQueryAsResultXml(EntityExpression entityExpression, QueryStrategyType strategyType, ExecutionContext context)
    .

    Monday, November 9, 2015 12:01 PM
  • It has been thrown by internal plugin. Do you have any plugin written on execute message? what version of CRM you are using? try to apply CRM rollup.

    Thanks!

    Kalim

    Monday, November 9, 2015 1:20 PM
  • CRM doesn't like characters with ascii values less than 32, other than tab, CR and LF (0x09, 0x0A and 0x0D). I expect the problem is within the data, where a record has the 0x0B character in a text field.

    The problem is determining which entity and record. This plugin is not entity-specific, so I don't think you'll get that information from the logs. One thing you could do is enable SQL Profiler to try and identify what SQL queries are executing when the error occurs.

    As the error is recurring, a likely cause is an email record, where either the Email Router or Outlook client is trying to sync data


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

    Monday, November 9, 2015 4:50 PM
    Moderator