function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
damo2929damo2929 

Problems using ischanged()

I have written a work flow that is detecting when the account name changes which is trying to update a custom field "account know as" but every time I run the rule I get an error.

 

Error: Invalid Data.
Review all error messages below to correct your data.
Error: An account with this name already exists.
but it does not already exist as am running in an empty sandbox.
Rule Criteria: formula is
 ISCHANGED( Name )
if I set it to a static critria the rule works fine
any ideas why this fails?
jhurstjhurst

I set up the WF and it worked for me.  From the error you listed below, it sounds like you have some other logic (Apex Trigger or Validation Rule?) which verifies that the Account Name is not duplicated.

 

I would check:

 

1. Account Apex Trigger

2. Account Validation Rules

3. The WF Actions that you are trying

 

To see what specifically is throwing that error.

 

Hope this helps.

 

Jay