0

I am trying to deploy Case Settings to Sandbox via Metadata API and I am getting the following error:

The Email Address Name is not valid

I verified that the email and the user associated with the email specified in the Case.Settings XML file actually exists in the system

<defaultCaseOwner>xyz@abc.com</defaultCaseOwner>
<defaultCaseOwnerType>User</defaultCaseOwnerType>
<defaultCaseUser>xyz@abc.com</defaultCaseUser>
1

It's not an email address (because email addresses are not unique). Instead, it is the user's user name, which will be different from production, usually in the form of username@domain.org.sandboxname. Make sure that the username matches the value for defaultCaseOwner and defaultCaseUser.

| improve this answer | |
  • xyz@abc.com is username in Production, the same user exists in the Sandbox with username xyz@abc.com.qa. I tried all combinations while deployment. Nothing working out. – smhvrtyj Jan 8 '18 at 21:50
  • @smhvrtyj That's odd. It works well in my developer org. The documentation doesn't go into further detail about this, though. – sfdcfox Jan 8 '18 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.