Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tDie not working as expected

Hi All ! 
I added the tDie components as showed on the image

File uploaded
  0683p000009MH4z.png

0683p000009MH54.png

Link to the image - in case you can't see it

I set the first tSystem to fail, in order to test this scenario with the tDie. and got the following

Starting job D000_MASTER at 17:05 17/01/2016.
[statistics] connecting to socket on port 3661
[statistics] connected
2016-01-17 17:05:28|qtFd0J|qtFd0J|qtFd0J|25183|GENERIC|G002_Database_Archive_Process|_6IPZ8O_0EeKP0cDxufZJJw|0.1|dev||begin||
mysqldump: Got error: 1049: Unknown database 'pd_test_felix_central_dd' when selecting the database
Backup of pd_test_felix_central_dd failed.
2016-01-17 17:05:28|qtFd0J|qtFd0J|qtFd0J|GENERIC|G002_Database_Archive_Process|dev|5|tDie|tDie_1|Backup of pd_test_felix_central_dd failed.|4
2016-01-17 17:05:28|qtFd0J|qtFd0J|qtFd0J|25183|GENERIC|G002_Database_Archive_Process|_6IPZ8O_0EeKP0cDxufZJJw|0.1|dev||end|failure|196
cp: no se puede efectuar `stat' sobre «/home/prodir/sources/deduplicate/validate/.»: No existe el archivo o el directorio
cp: no se puede efectuar `stat' sobre «/home/prodir/sources/deduplicate/source_data/.»: No existe el archivo o el directorio
rm: no se puede borrar «/home/prodir/sources/deduplicate/archive/zip/Archive.zip»: No existe el archivo o el directorio
2016-01-17 17:05:29|Kf3Pbi|Kf3Pbi|Kf3Pbi|25207|GENERIC|G003_File_Archive_Process|_1LPxsPCHEeKP0cDxufZJJw|0.1|prod||begin||
2016-01-17 17:05:33|Kf3Pbi|Kf3Pbi|Kf3Pbi|25207|GENERIC|G003_File_Archive_Process|_1LPxsPCHEeKP0cDxufZJJw|0.1|prod||end|success|4497
2016-01-17 17:05:28|mybyt0|mybyt0|mybyt0|25160|DEDUPLICATE|D000_MASTER|_XE4_0JFjEeWc4ewVlJbP6A|0.1|server||begin||
2016-01-17 17:05:33|mybyt0|mybyt0|mybyt0|25160|DEDUPLICATE|D000_MASTER|_XE4_0JFjEeWc4ewVlJbP6A|0.1|server||end|success|5578
2016-01-17 17:05:33|JtxsV0|mybyt0|mybyt0|25160|DEDUPLICATE|D901_Write_Exit_Status|_3IoGwPC7EeKIca8SEzSRFQ|0.1|local||begin||
2016-01-17 17:05:34|JtxsV0|mybyt0|mybyt0|25160|DEDUPLICATE|D901_Write_Exit_Status|_3IoGwPC7EeKIca8SEzSRFQ|0.1|local||end|success|361
[statistics] disconnected
Job D000_MASTER ended at 17:05 17/01/2016. [exit code=0]


As you can see the backup_deduplicate - tSystem_3 failed, and the tDie_1 run as well with error code 4, but then the rest of the job ran and finished with an exit code=0

why the tDie did not kill the job ?, is this a Talend bug, or am I not using correctly the component ?
Thank you in advance for your help.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

The call to cmd.exe or bash was a success, but you want to find out what happened to the command passed into the shell. Set the Error Output to a global variable, then after the tSystem completes you can us an IF link to check the return code of the command from the globalMap variable EXIT_VALUE.

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi,
[size=2][font="Calibri",sans-serif] Thank you for your post! We can't see the screenshot on our side. Could you attach it again on the forum, please?[/font][/size]


Best regards

Sabrina
Anonymous
Not applicable
Author

xdshi wrote:
Hi,
[size=2] Thank you for your post! We can't see the screenshot on our side. Could you attach it again on the forum, please?[/size]


Best regards

Sabrina

Hi Sabrina
I added the link to the image, in case you can't see it.
Kind Regards
Felix
Anonymous
Not applicable
Author

Hi,
Would you mind uploading your screenshots into forum by using "UPLOAD" button.
The link you provided is not available on our side.
Great thanks!
Best regards
Sabrina
Anonymous
Not applicable
Author

xdshi wrote:
Hi,
Would you mind uploading your screenshots into forum by using "UPLOAD" button.
The link you provided is not available on our side.
Great thanks!
Best regards
Sabrina

Hi Sabrina,
I uploaded the file following your instructions. Can you now see the image ?
Thank you !
Felix
Anonymous
Not applicable
Author

The call to cmd.exe or bash was a success, but you want to find out what happened to the command passed into the shell. Set the Error Output to a global variable, then after the tSystem completes you can us an IF link to check the return code of the command from the globalMap variable EXIT_VALUE.
Anonymous
Not applicable
Author

Hi 
I applied your suggestion and now it's working as expected !.
 


Thank you so much Jholman

Kind Regards
Felix