+ Start a Discussion
Guntin Guntin L GarciaGuntin Guntin L Garcia 

Deploy flow from winter 21: ​​​​​​​ Property 'filterLogic' not valid in version 49.0

Hi...

I've created a flow in a Sandbox with Winter'21. I could not deploy it to production. I got the following error:
 Property 'filterLogic' not valid in version 49.0
SwethaSwetha (Salesforce Developers) 
HI Guntin,
Can you change the API version of the flow to 50.0 in the metadata file of flow and try to deploy the same? This should  fix the issue for you.

Related: https://salesforce.stackexchange.com/questions/317274/property-componentinstances-not-valid-in-version-49-0-but-package-xml-is-versi

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
ADITYA KRISHNAADITYA KRISHNA
Confronted the same error while deploying process builder. Retrieved again with API version 50.0 & deployed successfully. 'FilterLogic' tags weren't present this time. 
Guntin Guntin L GarciaGuntin Guntin L Garcia
Hi... my error was that I tried to deploy it through source instead of mdapi. So, if you retrieve and deploy the flow through mdapi everything works. It makes sense... 
Rakesh ChattyRakesh Chatty

 

User-added image

Open Sfdx-Project.json file and update sourceApiVersion to latest as shown above.