2 respostas

Hello Shrey,I think you're facing two different problems. One is related to the deployment of the flow and the other is in which data your test class is relying on.Test Classes are not supposed to see real data from the organization unless your set your test class to do it so. Are your test class set with the @isTest(SeeAllData=true) annotation? If so, you're relying on real data from your org which means unless you created the data in the destination sandbox/production before the deployment of your test class it's going to fail because it won't find data.As a best practice you should avoid this annotation and create all data you need within your test class.Please take a look in the following links:https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_data_access.htmhttps://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methodshttps://trailhead.salesforce.com/en/modules/apex_testingHope to have helped!Regards.Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.