I have a job that starts with Python code that calls an API for a report. If the report comes back "Data Not Available" I want to stop the job at that Python step and not continue.
What component is best to use for this logic?
I have a job that starts with Python code that calls an API for a report. If the report comes back "Data Not Available" I want to stop the job at that Python step and not continue.
What component is best to use for this logic?
Hi @kerri.gathright,
There are different ways to do conditional branching in a Matillion ETL orchestration job. For what you have described there are two which you could look at first:
Hope that makes sense and is helpful
Ian
I decided to use the Python script, super useful thank you!
I also added a start date parameter because I want that date to be the first one so I know I'm on the correct Thursday thereafter. I also added this start date in the job variables, however I think now I need to remove some of the other code or rearrange it because this new job variable is throwing an error. Suggestions?
Python:
Job variables: