You need to sign in to do that
Don't have an account?
Karthikeyan Chandran
Deployment Error Help.
Hi,
I am deploying a class(Birthday emailer) apex class from a sandbox to production, i getting the below error while i am deploying this apex class. i have deployed the same apex class (Birthday emailer) two months ago there was no error while i deployed.
The test class "Milestone1_Test_Clone" is from installed package not created by us. i don't know what is the root cause of this issue.
Can any one help me to fix this?
Thanks,
I am deploying a class(Birthday emailer) apex class from a sandbox to production, i getting the below error while i am deploying this apex class. i have deployed the same apex class (Birthday emailer) two months ago there was no error while i deployed.
Apex Test Failures | ||||
Class Name | Method Name | Error Message | ||
---|---|---|---|---|
Milestone1_Test_Clone | testMilestoneCloneActiveOwner | System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_USERNAME, Duplicate Username.<br>The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address). : [Username] Stack Trace: Class.Milestone1_Test_Utility.createSFUser: line 338, column 1 Class.Milestone1_Test_Clone.testMilestoneCloneActiveOwner: line 407, column 1 | ||
Milestone1_Test_Clone | testMilestoneCloneInactiveOwner | System.DmlException: Update failed. First exception on row 0 with id 00537000001izzOAAQ; first error: UNKNOWN_EXCEPTION, You cannot edit this field: [IsActive] Stack Trace: Class.Milestone1_Test_Clone.testMilestoneCloneInactiveOwner: line 360, column 1 | ||
Milestone1_Test_Clone | testProjectCloneInactiveOwner | System.DmlException: Update failed. First exception on row 0 with id 00537000001izzRAAQ; first error: UNKNOWN_EXCEPTION, You cannot edit this field: [IsActive] Stack Trace: Class.Milestone1_Test_Clone.testProjectCloneInactiveOwner: line 289, column 1 | ||
The test class "Milestone1_Test_Clone" is from installed package not created by us. i don't know what is the root cause of this issue.
Can any one help me to fix this?
Thanks,
All Answers
Stack Trace: Class.Milestone1_Test_Utility.createSFUser: line 338, column 1 Class.Milestone1_Test_Clone.testMilestoneCloneActiveOwner: line 407, column 1
Stack Trace: Class.Milestone1_Test_Clone.testMilestoneCloneInactiveOwner: line 360, column 1
Stack Trace: Class.Milestone1_Test_Clone.testProjectCloneInactiveOwner: line 289, column 1