cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

SQL Server No Rows Control Flow

bigdogz
New Contributor

Newbie with Snap Logic.
Iโ€™m attempting to build an integration that will run once a day.
The input is coming from a SQL Server database.
There will be days when there will be no data to process.
Iโ€™m looking for best practices for determining if there is no data and exiting the pipeline graciously.
I have a SQL Server Execute Snap followed by a Mapper Snap. The Pipeline current fails on the Mapper.
Is it best practice to run a โ€œpre-queryโ€ to determine if there are any rows to process and use the โ€œExitโ€ snap to kill the pipeline? This seems wasteful.
Or use a Data Validator Snap? Not sure how to check the row count.
Or is there another pattern I havenโ€™t found yet?
Thanks for you input.

1 ACCEPTED SOLUTION

viktor_n
Contributor II

Hi @bigdogz

You can use the checkbox โ€œIgonore Empty Resultโ€.

Answer330

View solution in original post

3 REPLIES 3

viktor_n
Contributor II

Hi @bigdogz

You can use the checkbox โ€œIgonore Empty Resultโ€.

Answer330

I clearly did not understand how the โ€œIgnore empty resultโ€ setting workd, but this did fix the problem. Thank you.

dmiller
Admin Admin
Admin

You can try a Router Snap as shown in Performing an Action when there is no data .


Diane Miller
Community Manager