Unable to generate Sequence number in Talend Data mapper

One Star

Unable to generate Sequence number in Talend Data mapper

I need to generate a sequence number for EDI format message in Talend. I tried to use "GetSequenceFromLocalFile" function but it was not allowing to set the file path property. In Talend Data Integration there is routine function called "Number.sequence("s1",1,1)". Can I used the same in Data mapper? Is there any other way to generate sequence number? Can we generate sequence without using database connection?
Highlighted
Moderator

Re: Unable to generate Sequence number in Talend Data mapper

 


Hi,


You can use built-in function Numeric.sequence("s1",1,1) to generate a sequence number in tMap component.


Best regards


Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Four Stars

Re: Unable to generate Sequence number in Talend Data mapper

Hello,

 

But is there any way i can add the Numeric value in TDM itself, instead of adding additional tMap Component in my Data Integration job???

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog