One Star

uuid Generator for Expression

Hi All,

I am trying to generate some uuids to popuate into a database. I am using the code uuid_generate_v4() but getting errors.

Can someone tell me what is the correct syntax that I should be using?

Clip2net_170619175324.png

This is the error it is throwing.

Error in the component's properties:The method uuid_generate_v4() is undefined for the type customers

Thanks

 

  • Dataprep
1 REPLY
Community Manager

Re: uuid Generator for Expression

Hello
It is a compilation error, the method uuid_generate_v4() is undefined. If it is DB function, you should use it in the Additional columns table in the Advanced settings of txxxOutput component. Anther way to generate a uuid string is to use Java API java.util.UUID, for more information, see
https://www.talendforge.org/forum/viewtopic.php?id=4831

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business