Raise an error if Data Store query returns nothing?

Hello,

I am reading values from a google sheet which must be translated using a simple data store table.
After that I set a variable to the mapped value.
But when the search goes wrong (and the data store does not return a value), I want to stop this iteration and mark as incomplete.
Where do I have to add the “Ignore” handler then?

Thanks,
Simon

You can force an error by using a Parse JSON module with random stuff typed into it.

Then, you can attach an error handler module to it (commit).

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hi @samliew ,
thanks for your help. It could use your suggestion to get my scenario working! :+1:
(No offense, but somehow I still feel that this is a dirty workaround - is there a reason why make does not provide the possibility to throw errors manually?)

Again, thanks a lot!
Simon

No, feel free to request for this feature.

1 Like