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

Flow to write to a file

I have a job that reads a csv file, retrieves some values and stores them into global variables, then uploads a file to S3.  When that it's done, I'd like to write the global variables and the outcome of S3 upload to another file.  How do I go from tS3Put to tFileOutputDelimited?

 

0683p000009LynX.png

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Because tMap expect a flow you cannot use an event trigger to connect it.
Be more explicit about what you expect (maybe with sample).

View solution in original post

9 Replies
TRF
Champion II
Champion II

OnSubjobOK after tSetGlobalVar_1 or tFileInputDelimited_2 should work.

danblo
Contributor
Contributor
Author

I need this to happen after tS3Put, so I can get whether the upload completed or not.



 

TRF
Champion II
Champion II

In this case use OnComponentOK/OnComponentError after tS3Put
danblo
Contributor
Contributor
Author

It won't let me go from tS3put to tmap.  


@TRF wrote:
In this case use OnComponentOK/OnComponentError after tS3Put

 

TRF
Champion II
Champion II

Because tMap expect a flow you cannot use an event trigger to connect it.
Be more explicit about what you expect (maybe with sample).
danblo
Contributor
Contributor
Author

loop--> call a python script using tsystem (which generates a log file with value1 and value2) and an output file-->tFileInputDelimiter2 reads the log file-->tjavaRow stores value1 and value2 into global variables-->tS3put uploads the file to S3.  That works so far.

 

Now, if the upload was sucessful (I can use onSubjectOK), I want to write value1, value2 and the message ("OK") to another text file.  

 

Hope that clears it out.

TRF
Champion II
Champion II

Right.

So you can replace your tMap by a tFixedFlowInput component with the same schema expected for the output file.

Then you populate each field with the desired values issued from the 2 global variables + "OK" for the message field.

danblo
Contributor
Contributor
Author

Bingo.  That's what I was looking for.  Thank you.

 

 

TRF
Champion II
Champion II

You're welcome