Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

"Invalid Argument" - on ACCOUNT entity - when updating Account Name

Posted on by 50

Hi,

One of my customer is facing an issue when updating Account Name on Account Entity.

I checked for duplication rule and there is no rule found.

---------------------------------------

Message says:

"Invalid Argument" if you contact support, please provide the technical details

Activity ID: 01364807-8542-4338-ab52-a6c4d607e085

Timestamp: --value of the timestamp--

--------------------------------------

Please help with any thoughts or pointers if you have faced such issue in your experience with D365 or Microsoft Dynamics CRM.

Thanks,

Manoj

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Invalid Argument" - on ACCOUNT entity - when updating Account Name

    Hi ManojPL,

    Did you solve your issue? Is there a possibility to change the primary key field (account name) of existing account?

  • ManojPL Profile Picture
    ManojPL 50 on at
    RE: "Invalid Argument" - on ACCOUNT entity - when updating Account Name

    Hi Gopalan,

    Thanks for responding.

    This is OOTB. There is no code as such.

    However, I have pasted the trace messages below: Please advise and help if you can give me any pointer..Appreciate your help and time!

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Expected non-empty Guid.Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ActivityId>01364807-8542-4338-ab52-a6c4d607e085</ActivityId>

     <ErrorCode>-2147220989</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <Message>Expected non-empty Guid.</Message>

     <Timestamp>2017-06-23T21:09:59.3348785Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault i:nil="true" />

     <OriginalException i:nil="true" />

     <TraceText i:nil="true" />

    </OrganizationServiceFault>

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Expected non-empty Guid.Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ActivityId>914d8f68-3efa-45b3-b196-6108ccdfd4cf</ActivityId>

     <ErrorCode>-2147220989</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <Message>Expected non-empty Guid.</Message>

     <Timestamp>2017-06-23T21:24:24.2928066Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault i:nil="true" />

     <OriginalException i:nil="true" />

     <TraceText i:nil="true" />

    </OrganizationServiceFault>

    Microsoft Dynamics 365 Error Report Contents

    <CrmScriptErrorReport>

     <ReportVersion>1.0</ReportVersion>

     <ScriptErrorDetails>

      <Message>Script error</Message>

      <Line>0</Line>

      <URL>/o365/versionless/shellcoreming2am_74c50d2f.js?ver=-63303424</URL>

      <PageURL>/main.aspx#398292893</PageURL>

      <Function>nanonymous()</Function>

      <FunctionRaw>

    function anonymous() {

       [x-domain code]

    }

    </FunctionRaw>

      <CallStack>

       <Function>nanonymous()</Function>

      </CallStack>

     </ScriptErrorDetails>

     <ClientInformation>

      <BrowserUserAgent>Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; .NET4.0C; .NET4.0E; Tablet PC 2.0; rv:11.0) like Gecko</BrowserUserAgent>

      <BrowserLanguage>en-US</BrowserLanguage>

      <SystemLanguage>en-US</SystemLanguage>

      <UserLanguage>en-US</UserLanguage>

      <ScreenResolution>1368x912</ScreenResolution>

      <ClientName>Web</ClientName>

      <ClienState>Online</ClienState>

      <ClientTime>2017-06-23T15:27:07</ClientTime>

     </ClientInformation>

     <ServerInformation>

       <OrgLanguage>1033</OrgLanguage>

       <OrgCulture>1033</OrgCulture>

       <UserLanguage>1033</UserLanguage>

       <UserCulture>1033</UserCulture>

       <OrgID>{28A1B062-2961-4D54-A9A7-F4EF1EDC8F54}</OrgID>

       <UserID>{E108651B-7347-4EBB-B32C-B1FB5E840298}</UserID>

       <CRMVersion>8.2.1.207</CRMVersion>

     </ServerInformation>

    </CrmScriptErrorReport>

    Web Service Plug-in failed in SdkMessageProcessingStepId: 32750cb3-cfdc-db11-8341-0019b9204da9; EntityName: account; Stage: 30; MessageName: Update; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

      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: Microsoft.Crm.CrmArgumentException: Expected non-empty Guid.

      at Microsoft.Crm.Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)

      at Microsoft.Crm.Query.BusinessDataLocalizedLabelQueryClauseBuilder.GetLocalizedLabelCreateOrUpdateSql(QueryParameterManager parameterManager, EntityExpression entityExpression, Guid objectId, ExecutionContext executionContext)

      at Microsoft.Crm.Query.UpdateVisitor.Visit(EntityExpression entity)

      at Microsoft.Crm.Query.UpdatePlan.GetSql()

      at Microsoft.Crm.Query.QueryPlan.get_Command()

      at Microsoft.Crm.BusinessEntities.DenormalizedAttributeTrigger.Update(Guid id)

      at Microsoft.Crm.BusinessEntities.TriggersExtension.ExecuteTriggers(BusinessEntity entity, ArrayList triggers, OperationType operationType)

      at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoUpdate(IBusinessEntity entity, FilterExpression filter, ExecutionContext context)

    Inner Exception: System.ArgumentException: Expected non-empty Guid.

    Parameter name: objectId

    .

    MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: Expected non-empty Guid.

    Error Number: 0x80040203

    Error Message: Expected non-empty Guid.

    Error Details: Expected non-empty Guid.

    Source File: Not available

    Line Number: Not available

    Request URL:

    Stack Trace Info: [CrmException: Expected non-empty Guid.]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

      at Microsoft.Crm.Application.Platform.ServiceCommands.UpdateCommand.Execute()

      at Microsoft.Crm.Application.Platform.DataSource.Update(EntityProxy entity, Boolean performDuplicateCheck, Guid auditingTransactionId, IOrganizationContext context)

      at Microsoft.Crm.Application.Platform.EntityProxy.Update(Boolean performDuplicateCheck, Guid auditingTransactionId)

      at Microsoft.Crm.Application.Platform.EntityProxy.Update(Boolean performDuplicateCheck)

      at Microsoft.Crm.Application.Platform.EntityProxy.UpdateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.UpdateEntity(Entity entity, Boolean retrieve)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.SaveCommand.ExecuteCommand(String commandXml)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)

    Web Service Plug-in failed in SdkMessageProcessingStepId: 32750cb3-cfdc-db11-8341-0019b9204da9; EntityName: account; Stage: 30; MessageName: Update; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

     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: Microsoft.Crm.CrmArgumentException: Expected non-empty Guid.

      at Microsoft.Crm.Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)

      at Microsoft.Crm.Query.BusinessDataLocalizedLabelQueryClauseBuilder.GetLocalizedLabelCreateOrUpdateSql(QueryParameterManager parameterManager, EntityExpression entityExpression, Guid objectId, ExecutionContext executionContext)

      at Microsoft.Crm.Query.UpdateVisitor.Visit(EntityExpression entity)

      at Microsoft.Crm.Query.UpdatePlan.GetSql()

      at Microsoft.Crm.Query.QueryPlan.get_Command()

      at Microsoft.Crm.BusinessEntities.DenormalizedAttributeTrigger.Update(Guid id)

      at Microsoft.Crm.BusinessEntities.TriggersExtension.ExecuteTriggers(BusinessEntity entity, ArrayList triggers, OperationType operationType)

      at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoUpdate(IBusinessEntity entity, FilterExpression filter, ExecutionContext context)

    Inner Exception: System.ArgumentException: Expected non-empty Guid.

    Parameter name: objectId

  • Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: "Invalid Argument" - on ACCOUNT entity - when updating Account Name

    Hi

    Would you please provide the code.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans