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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with Numeric.sequence

 Hi there,

 

I have a little problem, I use a tFileOutput with a numeric.Sequence("s99",1,1) so it created a file named : name_1.csv 

 

Then I use a tFileInput with a numeric.Sequence("s100",1,1) but it says " can't find the file name_2.csv" ... But I should be name_1.csv because I set s99 and s100 as parameter so it's 2 different sequence right ?

 

Thanks, Sam

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This is not the sequence, it is the layout of the job. Whenever you use files for input or output, the filename must be fixed from the beginning of the subjob. The files are initiated or read from, from the start of the subjob. So if you are changing a filename on a row by row basis, it will cause issues. You can get round this by using an iterator link after you have created the filename. Then pass the filename to file component after the iterate link. Obviously it means that you will have to sort your data after the iterate link as well, but this is possible. It just requires a slightly different way of thinking about your job.

 

View solution in original post

1 Reply
Anonymous
Not applicable
Author

This is not the sequence, it is the layout of the job. Whenever you use files for input or output, the filename must be fixed from the beginning of the subjob. The files are initiated or read from, from the start of the subjob. So if you are changing a filename on a row by row basis, it will cause issues. You can get round this by using an iterator link after you have created the filename. Then pass the filename to file component after the iterate link. Obviously it means that you will have to sort your data after the iterate link as well, but this is possible. It just requires a slightly different way of thinking about your job.