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
Rajesh..Rajesh.. 

eroor message in deployment process

User-added image

Error Message
OGS_IMEA_Dashboard/Sales_Dashboard_IMEA_v2_0
Cannot find a user that matches any of the following usernames: 0kvaeainida_hasan@optum.com.test.devogs, nida_hasan@optum.com.test, nida_hasan@optum.com.test.devogs; remove the user from the component being deployed or create a matching user in the destination organization.

Please help me to solve this error.
 
Best Answer chosen by Rajesh..
Mahesh DMahesh D
Hi Rajesh

Remove the "run as specific user" completely from the dashboard prior to deployment (set the options to "Run as logged-in user"). Deploy, then change it back to whatever you need.

It tries to find an user by username (in XML of the dashboard definition the reference is stored by username, not by User Id or email). And obviously fails because in production you don't have same sandbox suffix. Same happens when you try to deploy a report/dashboard that's scheduled to be sent to some users or when email alert (from workflows) is being deployed...

Easiest fix is to remove these settings, deploy the "core" of dashboard and amend it manually in the target org.
Alternatively you can temporarily change the username in your target org to be same as the sandbox username (it shouldn't cause login conflicts because the endpoint will still be either login.salesforce.com or test.salesforce.com)... but I believe you'll hit the lockdown of allowed domain names in your production.

Also follow the below links:

http://salesforce.stackexchange.com/questions/12195/dashboard-deployment-errors

https://success.salesforce.com/answers?id=90630000000gwabAAA


Please do let me know if it helps you.

Regards,
Mahesh

All Answers

Mahesh DMahesh D
Dashboard which you are deploying is running with a user and that user is not available in destination org.

Please change the user related to above Dashboard and deploy it.

Regards,
Mahesh
Rajesh..Rajesh..
@mahesh where can i change the user in sandbox are production?
Mahesh DMahesh D
Hi Rajesh

Remove the "run as specific user" completely from the dashboard prior to deployment (set the options to "Run as logged-in user"). Deploy, then change it back to whatever you need.

It tries to find an user by username (in XML of the dashboard definition the reference is stored by username, not by User Id or email). And obviously fails because in production you don't have same sandbox suffix. Same happens when you try to deploy a report/dashboard that's scheduled to be sent to some users or when email alert (from workflows) is being deployed...

Easiest fix is to remove these settings, deploy the "core" of dashboard and amend it manually in the target org.
Alternatively you can temporarily change the username in your target org to be same as the sandbox username (it shouldn't cause login conflicts because the endpoint will still be either login.salesforce.com or test.salesforce.com)... but I believe you'll hit the lockdown of allowed domain names in your production.

Also follow the below links:

http://salesforce.stackexchange.com/questions/12195/dashboard-deployment-errors

https://success.salesforce.com/answers?id=90630000000gwabAAA


Please do let me know if it helps you.

Regards,
Mahesh
This was selected as the best answer
Rajesh..Rajesh..
@mahesh Thanks mahesh its solved...:)