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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
danblo
Contributor
Contributor

tS3get - log errors

I have a job that reads a database to retrieve a list of file_names, what I later download from s3 using tS3get (iterate over the output from the database).  Some files are missing and I need to log them.  I tried using on error trigger and dump them to a text file, but it won't let me create that trigger.  What's the aproach I should take? 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Could you please post your current job design screenshots into forum? Are you using "Onsubjoberror" or "Oncomponenterror" trigger?

Best regards

Sabrina

View solution in original post

6 Replies
Anonymous
Not applicable

Hello,

Could you please post your current job design screenshots into forum? Are you using "Onsubjoberror" or "Oncomponenterror" trigger?

Best regards

Sabrina

danblo
Contributor
Contributor
Author

0683p000009LrFP.png

danblo
Contributor
Contributor
Author

I was trying to use "on component error".

 

Anonymous
Not applicable

Hi,

 

I have an idea to get the unprocessed file names, if any other solutions available, please share in the forum.

 

use "on component error" trigger from ts3Get and connect to tjava component.

In tJava, use a context variable and append with the file name variable (from tFlowToIterate)

eg: context.filaname=context.filaname+","+((String)globalMap.get("Filename"))

So at last your context.filename will contain all the file names with comma separated.

Use a fixedflowinput, use this context variable and divide using tNormalize and save into another file.

 

Job Design:

0683p000009LrsW.jpg

 

danblo
Contributor
Contributor
Author

Good idea. I'll give it a try.
Anonymous
Not applicable

Hi,

If this is working, please accept my solution as resolved and press Kudos button 0683p000009MACn.png 0683p000009MANf.png