Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

The Year field with value '2023-05-12' in '2023-05-12 18:09:07.825146' is too long

Avatar

Level 4

I don't have a column Year on my data, but I think it is taken the year from my column: "date_creation". 

How can I remove the miliseconds from my column "date_creation" to avoid this warnings? Or Should I fix this in the source of the data? I get a csv file to upload to campaign.

ogonzalesdiaz_0-1695328283324.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ogonzalesdiaz ,

For the date_creation column, in data loading activity configure the date+time format as below,

ParthaSarathy_0-1695351931774.png

Run the workflow and check. Or If you are able to change the values in input file, you can handle there. 

 

Or else you can try below approach as well,

In data Loading activity, instead of defining it as date+time, define it as 'string'.

Connect data loading transition with enrichment activity.

ParthaSarathy_1-1695352138599.png

 

Enrichmet:

Add data > add an output column in it with below expression,

 

ToDateTime(date_creation)

 

ParthaSarathy_2-1695352238908.png

 

Now the new field created in enrichment, will remove the millisecond.

ParthaSarathy_3-1695352416836.png

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @ogonzalesdiaz ,

For the date_creation column, in data loading activity configure the date+time format as below,

ParthaSarathy_0-1695351931774.png

Run the workflow and check. Or If you are able to change the values in input file, you can handle there. 

 

Or else you can try below approach as well,

In data Loading activity, instead of defining it as date+time, define it as 'string'.

Connect data loading transition with enrichment activity.

ParthaSarathy_1-1695352138599.png

 

Enrichmet:

Add data > add an output column in it with below expression,

 

ToDateTime(date_creation)

 

ParthaSarathy_2-1695352238908.png

 

Now the new field created in enrichment, will remove the millisecond.

ParthaSarathy_3-1695352416836.png

Avatar

Community Advisor

@ogonzalesdiaz ,

Data Loading activity > Click here to change the file format > double click your date column or select your date field  and click details button on the right side.

ParthaSarathy_0-1698300373647.png