How to access a session error value directly without knowing the full step path?
R
Robin. varughese
started a topic
8 months ago
Semarchy xDI version: 2024.1.6
In the above image, if error occurs in a process/child process, instead of hard coding the step path to fetch the value highlighted in yellow can we fetch the error directly using core session id or any other means?
The goal is to simply fetch the stack trace error in the parent process and publish the same in a parameter to be later used for file or table operations.
Best Answer
S
Samia ENNAJI
said
7 months ago
Hello Robin,
If you want to retrieve the error message and the name of the action that fails in a process, you can use the attached getError tool.
Here is a description of this tool:
How to use it ? ---------------- 1-Drag & Drop this template at the top (main) level of a process 2-To store the errors in a table, Drag & Drop a SCHEMA --> a table will be created and errors will be inserted 3-To send an email, Solution A : Drag & Drop a MAILING_LIST --> This mailing list must be in a metadata with a SMTP server --> An email will be sent with the SMTP server in HTML mode Solution B : Drag & Drop a TARGET_MESSAGE --> An email will be sent with the SMTP server defined for the message in HTML mode 4-To generate a file, Drag & Drop a FILE_FOLDER -- > A CSV file will be generated
What will be done ? --------------------- Depending on the metadata links dropped on getError, the template will
- send an email in a HTML list, one error per row - insert a record per error - generate a csv file with one row per error - generate a message in Semarchy Analytics - generate a message in Semarchy Runtime Console
If you want the session to end with an error if any of the actions fail, you can check the 'raise an error after logging previous errors' option on the getError tool:
Here is an example with my test process, I added the tool at the end of my process, dragged in a metadata folder, and checked the 'raise an error after logging previous errors ' option.
After execution of my test process, a file with the error and information about the failed action has been generated in the specified folder.
Please do not hesitate to come back to us with any additional questions.
If you want to retrieve the error message and the name of the action that fails in a process, you can use the attached getError tool.
Here is a description of this tool:
How to use it ? ---------------- 1-Drag & Drop this template at the top (main) level of a process 2-To store the errors in a table, Drag & Drop a SCHEMA --> a table will be created and errors will be inserted 3-To send an email, Solution A : Drag & Drop a MAILING_LIST --> This mailing list must be in a metadata with a SMTP server --> An email will be sent with the SMTP server in HTML mode Solution B : Drag & Drop a TARGET_MESSAGE --> An email will be sent with the SMTP server defined for the message in HTML mode 4-To generate a file, Drag & Drop a FILE_FOLDER -- > A CSV file will be generated
What will be done ? --------------------- Depending on the metadata links dropped on getError, the template will
- send an email in a HTML list, one error per row - insert a record per error - generate a csv file with one row per error - generate a message in Semarchy Analytics - generate a message in Semarchy Runtime Console
If you want the session to end with an error if any of the actions fail, you can check the 'raise an error after logging previous errors' option on the getError tool:
Here is an example with my test process, I added the tool at the end of my process, dragged in a metadata folder, and checked the 'raise an error after logging previous errors ' option.
After execution of my test process, a file with the error and information about the failed action has been generated in the specified folder.
Please do not hesitate to come back to us with any additional questions.
Robin. varughese
Semarchy xDI version: 2024.1.6
In the above image, if error occurs in a process/child process, instead of hard coding the step path to fetch the value highlighted in yellow can we fetch the error directly using core session id or any other means?
The goal is to simply fetch the stack trace error in the parent process and publish the same in a parameter to be later used for file or table operations.
Hello Robin,
Here is a description of this tool:
How to use it ?
----------------
1-Drag & Drop this template at the top (main) level of a process
2-To store the errors in a table, Drag & Drop a SCHEMA
--> a table will be created and errors will be inserted
3-To send an email,
Solution A : Drag & Drop a MAILING_LIST
--> This mailing list must be in a metadata with a SMTP server
--> An email will be sent with the SMTP server in HTML mode
Solution B : Drag & Drop a TARGET_MESSAGE
--> An email will be sent with the SMTP server defined for the message in HTML mode
4-To generate a file, Drag & Drop a FILE_FOLDER
-- > A CSV file will be generated
What will be done ?
---------------------
Depending on the metadata links dropped on getError, the template will
- send an email in a HTML list, one error per row
- insert a record per error
- generate a csv file with one row per error
- generate a message in Semarchy Analytics
- generate a message in Semarchy Runtime Console
If you want the session to end with an error if any of the actions fail, you can check the 'raise an error after logging previous errors' option on the getError tool:
Here is an example with my test process, I added the tool at the end of my process, dragged in a metadata folder, and checked the 'raise an error after logging previous errors ' option.
After execution of my test process, a file with the error and information about the failed action has been generated in the specified folder.
Please do not hesitate to come back to us with any additional questions.
Best regards,
Samia ENNAJI
Samia ENNAJI
Hello Robin,
Here is a description of this tool:
How to use it ?
----------------
1-Drag & Drop this template at the top (main) level of a process
2-To store the errors in a table, Drag & Drop a SCHEMA
--> a table will be created and errors will be inserted
3-To send an email,
Solution A : Drag & Drop a MAILING_LIST
--> This mailing list must be in a metadata with a SMTP server
--> An email will be sent with the SMTP server in HTML mode
Solution B : Drag & Drop a TARGET_MESSAGE
--> An email will be sent with the SMTP server defined for the message in HTML mode
4-To generate a file, Drag & Drop a FILE_FOLDER
-- > A CSV file will be generated
What will be done ?
---------------------
Depending on the metadata links dropped on getError, the template will
- send an email in a HTML list, one error per row
- insert a record per error
- generate a csv file with one row per error
- generate a message in Semarchy Analytics
- generate a message in Semarchy Runtime Console
If you want the session to end with an error if any of the actions fail, you can check the 'raise an error after logging previous errors' option on the getError tool:
Here is an example with my test process, I added the tool at the end of my process, dragged in a metadata folder, and checked the 'raise an error after logging previous errors ' option.
After execution of my test process, a file with the error and information about the failed action has been generated in the specified folder.
Please do not hesitate to come back to us with any additional questions.
Best regards,
Samia ENNAJI
-
File external resolver with encrypted value
-
Timeout on Mapping/Webservice call
-
UNIQUE TEMP TABLE NAMES
-
Previous step name from a sub-process of execute delivery
-
Dropping multiple tables at once in XDI
-
Freeze Designer and corrupted workspace
-
FileWait/Move/Copy: FileInclude with space
-
Loop excel files
-
Change SVN user in the Designer
-
How to Specify the JVM used by the Designer?
See all 66 topics