Skip to main content

@Chris Peterson

I'm having issues deploying classes that implement the Finalizer interface. All my tests are passing when I run them in my sandbox but when I try to validate a deployment to another sandbox via changesets or sfdx using force:mdapi:deploy (preferred) some of the tests fail. Additionally, when I am trying to validate the changes it will rerun the validation process multiple times.

 

For example, I build a package containing my classes with sfdx force:source:convert then I try to validate it against another sandbox by running sfdx force:mdapi:deploy -c ...etc. I'll see the command complete in my terminal and in the sandbox but once I refresh the deployment status page in the sandbox it's restarted the validation as if it never completed. It will do this 2-5 times before finishing with failed tests even though the tests pass when the classes are deployed to the new sandbox and ran in the developer console or from vs code. 

 

Ever seen anything like this before? I haven't and don't really know where to go from here.

21 comments
  1. Jun 11, 2021, 8:42 PM
    @Jonathan Flatt Our assessment is that, it should not happen in production either (fix was deployed to production on 06/02). The old case (40572686) is closed. Can you please file a new case at the earliest with error details, steps to reproduce, and your orgId? Can you please give us permission to login and also to export sandom? Please share the case # with me so I can expedite the investigation and fix (if a bug exists).
0/9000