0

When I'm trying to deploy my class from one sandbox to another via Copado I'm getting "Type name already in use: {myClassName}" error. Error is throwing in Test class. It points class and inner class names rows. I guess it is not an issue with Copado. Any suggestions?

public class MyClass { //row where error is throwing in test class 
    //some code goes here

    public class MyInnerClass {//row where error is throwing in test class
        //some code goes here
    }
}
2
  • you are probably deploying a .cls file with public class MyClass into an org as a New file but that org already has a different .cls file that is defined with public class MyName
    – cropredy
    Oct 13 at 23:01
  • @cropredy No I've checked and it is a new one. In your case, it had to overwrite then Oct 14 at 4:52

Your Answer

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

Browse other questions tagged or ask your own question.