How do I add a filter that picks up data that "Contains Total" OR "Is Null" / No Data Found.
I have 2 inputs, one will sometimes be blank, but will sometimes contain a row Total that I need to use. Currently no NULL data is coming in, it is just not bringing any data in because the worksheet is blank and therefore it is causing my basic "Filter" icon for "Filter for if Contains Total" to error out my workflow. It says "No Applicable Data Found."
Solved! Go to Solution.
@NBPSE
You are getting the error as no data is passing through, try the following, add Text Input with the headers only and then union the data, in this way there will always be a field that the filter can be configured.
I did not try if it will work, as you might get error at the union if no data will flow from the file, but at least you can try if it will work.
This did not work when I tried it
This will work, just do not forget to remove Count later on
Are you able to upload this workflow? I am not sure how this is creating data.
@NBPSE
I cannot do that, just add the parts that are missing at your WF compared to the snippet that I uploaded.
Just to clarify it, it is not my private license therefore will not be able to share any WFs, can share snippets and add explanations. I do believe that you have a WF in place, I added 3 tools, Text Input, Count and append, you should be able to manage it.
I was wrecking my brain on this a few years back when needing to send an automated email, if a file was read empty.
There is a super simple trick using the same logic as @OTrieger suggested.
But one major difference:
I did the following and it worked flawlessly:
I used this before and it works perfectly. It helped sending me emails to alert my customer to let them know that their source file came in empty that night.
This was a fix that worked for me, thank you so much!
I received a message from you @NBPSE, but when I went to this discussion it just vanishes.
If I understood correctly, you want to do a join afterwards and want to get rid of the NO DATA row, if there indeed is data.
All you have to do here is to add a filter to look for a value NO DATA in the column
This filter tool will split your flow into two branches
So, either way that last filter will show you either NO DATA or will show the actual data itself and you are golden from there onwards
Either of the branches may need some sort of action - send email, write a file, etc...
Just because there was no data doesn't mean nothing happens - you can still write an empty file with hardcoded text in it, etc...