web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Updating the Name field of Account Record - Limitations?

(0) ShareShare
ReportReport
Posted on by 210

We are using a tool (SAP PI using Advantco's CRM Adapter) to update the Account record based on the values in our ERP system.  We are using an Upsert xml via SOAP.

We can successfully modify all fields with the exception of one.  The Name field when we attempt to modify on the Account record throws an error stating Expected Non-Empty GUID. - the AccountId is not empty - the ID is not empty.  The only thing modified was the text of the string field name.  I have tried removing AccountId from the attribute list - changing the ID to a FetchXML query.  All fail if we reference the name field.

<?xml version="1.0" encoding="UTF-8"?>
<DFCUDAccountRequest>
	<RequestName>Upsert</RequestName>
	<Parameters>
		<Entity>
			<LogicalName>account</LogicalName>
			<Id>23b1cc0a-6a9c-e711-80e7-0050569b0dd7</Id>
			<Attributes>
				<AccountId>23b1cc0a-6a9c-e711-80e7-0050569b0dd7</AccountId>
				<Name>DianeTest</Name>
				<AccountNumber>99988877</AccountNumber>
				<spirit_SAPAcctType>100000000</spirit_SAPAcctType>
			</Attributes>
		</Entity>
	</Parameters>
</DFCUDAccountRequest>


Are there some limitations on the Name field?  Our system of record has the ability to modify the name field (as there is an account number field that makes it unique) so we must keep the two systems in sync.

Can workflows update the name field?  Do we have to come up with an alternative field for the system of record to update and then a workflow fires to modify the name field?

Thank you for your time,

Diane

Suggestions?  Reasons we are hitting this error?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi Diane,

     you should have no problem updating the name. However, I am wondering if you have any plugins or workflows(with custom workflow activities) registered on the update of account entity (and, possibly, on update of the name field in particular). The error may be happening in those plugins/workflows.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    instead of using upsert could you please try with update only.

    Upsert is either updating a record(the behaviour you want) or creating a new one(the behaviour you don't want).

    If your tool does not find the record it will try to create it and maybe you have some required fields in order to create a new account which are maybe causing your problem.

  • DianeF1 Profile Picture
    210 on at

    I have disabled all plugin's and workflows and even business rules and the error still occurs not only on my interface but also forms against the account entity fail with the same error (Invalid Argument - Expected non-empty GUID) when trying to modify the name field.  What other things should we be looking at to try and find out what customization is causing the error.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans