简体   繁体   中英

Azure Data Factory - How to skip empty sheet

I have an excel file with 3 sheets, in one situation the third sheet is empty, in that situation I need to skip that dataflow. Every dataflow is for specific Work sheet

流水线图像

You can use the lookup activity to read the data from the sheet and using the if condition activity, validate the count and process the activities under true or false scenarios.

  1. Get the count from the lookup activity.

在此处输入图像描述

  1. In the if condition activity, check if the count of lookup and if it satisfies greater than zero condition add your data flow activity in true activities, else nothing in false activities.

expression:

@greater(int(activity('Lookup2').output.count),0)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM