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: 
Anonymous
Not applicable

BatchId Creation

Hi,

Initially my source file don't have any batch ids.

I want to create Batch Id for my source files. 

One file having one Batch Id, another file having another Batch Id like that.

Can I create a BatchId using filename or Time stamp or any unique number?

How to generate batch Id for every file?

Please help friends

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello,

If we understand your requirement very well, you could add an Integer field to your schema and populate it using Numeric.sequence.
For example, Numeric.sequence("s1", 1)

Let us know if it is what you are looking for.

Best regards

Sabrina

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hello,

If we understand your requirement very well, you could add an Integer field to your schema and populate it using Numeric.sequence.
For example, Numeric.sequence("s1", 1)

Let us know if it is what you are looking for.

Best regards

Sabrina

Anonymous
Not applicable
Author

That was helpful. So now I got Batch Ids.
Now, if any invalid data comes in the source file, I need to stop the execution in between and need to revert all changes for that particular batch id.
For this, I did a tcatch component but...it only catches the exception.

How can I revert /delete all changes for that particular batch id exception in talend??
My source file is an excel file