- Posts: 9
- Thank you received: 1
Check File Raises an Error
- dmitriyvanyukov
- Topic Author
- Offline
- New Member
-
Less
More
2 years 4 months ago #20948
by dmitriyvanyukov
Check File Raises an Error was created by dmitriyvanyukov
Good time of the day.
Ran into an issue in Advanced ETL, where an error is raised on evaluating whether the file exists. This is the setup:
We check if a file with a specific file date exists. Process the file if it does. Alert via email otherwise.
When the file does not exist we correctly raise an alert and workflow continues on, but we also produce an error in execution.
This error gets bubbled up to the job scheduler and we end up reporting a job failure. This is not something that we want from this task. Is there a way for us not to produce a failure when the file is missing? We don't want an error to be raised, when it's normal for this process to be missing one, or both of the files.
Thank you!
Dmitriy
Ran into an issue in Advanced ETL, where an error is raised on evaluating whether the file exists. This is the setup:
We check if a file with a specific file date exists. Process the file if it does. Alert via email otherwise.
When the file does not exist we correctly raise an alert and workflow continues on, but we also produce an error in execution.
This error gets bubbled up to the job scheduler and we end up reporting a job failure. This is not something that we want from this task. Is there a way for us not to produce a failure when the file is missing? We don't want an error to be raised, when it's normal for this process to be missing one, or both of the files.
Thank you!
Dmitriy
Please Log in or Create an account to join the conversation.
2 years 4 months ago #20951
by admin
Mike
ETL Architect
Replied by admin on topic Check File Raises an Error
Nothing wrong with that.
Every action has two states success or failure
File exists = Success
File does not exist = Failure
Every action has two states success or failure
File exists = Success
File does not exist = Failure
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
2 years 4 months ago #20952
by admin
Mike
ETL Architect
Replied by admin on topic Check File Raises an Error
I think the package execution is failing for a different reason.
Have you checked the package execution log?
Have you checked the package execution log?
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
- dmitriyvanyukov
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
2 years 4 months ago #20954
by dmitriyvanyukov
Replied by dmitriyvanyukov on topic Check File Raises an Error
Please Log in or Create an account to join the conversation.
- dmitriyvanyukov
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
2 years 4 months ago #20955
by dmitriyvanyukov
Replied by dmitriyvanyukov on topic Check File Raises an Error
Mike,
Yeah, maybe. I did not think about it from standpoint of overall design and architecture. Just seems odd. What is the use of an "IF" statement, if it doesn't let you have an alternate workflow?
Is there any other way to achieve the desired result without raising a failure?
Thanks!
Dmitriy
Yeah, maybe. I did not think about it from standpoint of overall design and architecture. Just seems odd. What is the use of an "IF" statement, if it doesn't let you have an alternate workflow?
Is there any other way to achieve the desired result without raising a failure?
Thanks!
Dmitriy
Please Log in or Create an account to join the conversation.
2 years 4 months ago #20956
by admin
Mike
ETL Architect
Replied by admin on topic Check File Raises an Error
This does appear to be the reason why it's failing. The screenshot is attached.
Well thank you for posting the screenshots
Guess what? Somewhere before the lines we can see on the screen right now there is a line that tells which object is failing but we cannot see that line on the screenshot you posted.
Same issue with the original screenshot. The execution continues after line 8 till line 16. somewhere after line 16, it fails.
But we cannot see that line.
How do you expect us to help you?
Well thank you for posting the screenshots
Guess what? Somewhere before the lines we can see on the screen right now there is a line that tells which object is failing but we cannot see that line on the screenshot you posted.
Same issue with the original screenshot. The execution continues after line 8 till line 16. somewhere after line 16, it fails.
But we cannot see that line.
How do you expect us to help you?
Mike
ETL Architect
Please Log in or Create an account to join the conversation.