We are deploying our metadata through ANT migration tool.there are flows which are calling apex class and some flows are getting called from process builder.we have test class for apex class and flows as well. During validation test classes are getting failed with error 'CANNOT_EXECUTE_FLOW_TRIGGER'.

Note that all test classes are getting passed via 'Run All Tests' in Source Org. However during deployment validation exact same test classes are getting failed.

What is the root cause of thisissue?

  • new tests or new flows in metadata to be deployed?
    – kurunve
    Commented Jun 3, 2017 at 18:04
  • are you deploying flow, process build and apex classes in single goal? It seems when apex class is getting executed, flow is not getting picked up Commented Jun 4, 2017 at 0:17

1 Answer 1


I would request you to deploy in the below order,

  1. Apex Class and Its Test Class
  2. Flows
  3. Process Builder

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .