Expand my Community achievements bar.

SOLVED

Blank values inserted into Date Data type Field in Adobe Campaign Classic V8

Avatar

Level 2

Hi Team,

I have issue with Date datatype Column in Adobe campaign classic. Data inserted but with blank values, with below warning for that column.

I have values for Date column, 2022-04-29T05:02:38.000Z.

getting warning in Data loading activity

Warning : 04/17/2025 8:57:07 AM BAS-010048 The field 'Year' with value '2022-04-29T05' in '2022-04-29T05:02:38.000Z' is too long. Maximum of 4 characters.

Data Loading activity configuration for Data format,

SantoshKa5_0-1744880359834.png

 

Please help me on this issue.

 

Regards,

Santosh Kumar.

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @SantoshKa5,

 

The error you're encountering is due to the date column in your input file being in ISO 8601 format with a UTC timezone (e.g., 2022-04-29T05:02:38.000Z).

To successfully insert dates into Adobe Campaign, you’ll need to convert them into the preferred format for import:

YYYY-MM-DD HH:mm:ss (e.g., 2022-04-29 05:02:38)

You can achieve this by using an Enrichment activity after the Data Loading step, or a JavaScript activity, to transform the ISO date into a format that Adobe Campaign can recognize and properly map into the schema.

Thanks
Sushant Trimukhe

View solution in original post

4 Replies

Avatar

Correct answer by
Level 4

Hi @SantoshKa5,

 

The error you're encountering is due to the date column in your input file being in ISO 8601 format with a UTC timezone (e.g., 2022-04-29T05:02:38.000Z).

To successfully insert dates into Adobe Campaign, you’ll need to convert them into the preferred format for import:

YYYY-MM-DD HH:mm:ss (e.g., 2022-04-29 05:02:38)

You can achieve this by using an Enrichment activity after the Data Loading step, or a JavaScript activity, to transform the ISO date into a format that Adobe Campaign can recognize and properly map into the schema.

Thanks
Sushant Trimukhe

Avatar

Level 2

Hi @SushantTrimukheD ,

 

Thanks for your response.

Its worked. But If I have more Date columns, I have to make this update to all the columns.

Instead, I tried another Option in the Data Loading Activity Data Type change to XM(ex:aaaa-mm-jjThh:mm:ss:sssZ).

SantoshKa5_0-1744889960549.png

 

My Date columns are update with below formatted Date.

 

SantoshKa5_1-1744890062873.jpeg

Hope this will workflow for us.

 

Thank you.

Avatar

Community Advisor

Hi @SantoshKa5 ,

In data loading activity select the data type as string for this attribute, and have an enrichment next to data loading and create a output column with this expression,

ToDateTime(date_field_from_file)

ParthaSarathy_0-1744882772025.png

Avatar

Level 2

Hi @ParthaSarathy ,

Thanks for your response.

Its worked. But If I have more Date columns, I have to make this update to all the columns.

Instead, I tried another Option in the Data Loading Activity Data Type change to XML(ex:aaaa-mm-jjThh:mm:ss:sssZ).

I have shared screenshots in above my reply.

 

Thank you,

Santosh.