[Schema] Set default value for datetime in metadata schema

One Star

[Schema] Set default value for datetime in metadata schema

I see in this post that we can set a default date value to current date.
https://help.talend.com/search/all?query=Verifying+default+values+in+a+retrieved+schema&content-lang...
I try it but when my flow want to create an XML file with the tAdvancedFileOutputXML, an error occur as 'sysdate is not valid'.
I think that this sysdate is an Oracle value, not Talend.
Then, how can i set my default date value to current date in my metadata schema ? If can't, did i must set these default in my tMap ?
One Star

Re: [Schema] Set default value for datetime in metadata schema

Hi,
I use this for the date:
TalendDate.formatDate("dd-MM-yyyy",TalendDate.getCurrentDate())

Regards
Burnside.
One Star

Re: [Schema] Set default value for datetime in metadata schema

You used this in a tMap component ?

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now