Hi @Sisif0 ,
Welcome to Microsoft Q&A platform and thankyou for posting your query.
As I understand your question, you are trying to compare the rowcount of two tables in If block and trying to perform action accordingly in true and false blocks. Please let me know if my understanding is incorrect.
Here, you are storing the output of lookup (rowcount of table) in variable which is not capable of holding integer value. Also, greater function only works with either integer or decimal.
You don't need to introduce set variable activities here. You can directly compare the two lookup output in the If condition activity using the expression :
@greater(activity('Lookup_Source_NoRows').output.count,activity('Lookup_Target_NoRows').output.count)
Here is how your pipeline would look like: You can keep both the lookups in parallel as there is no dependency of one on another to wait.
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators