Date from Source File not reflecting in Postgres target table

Six Stars

Date from Source File not reflecting in Postgres target table

I am trying to load the date from the source file into the target postgres table. The date in source file is 03/29/2019 but what I see in the target table after I run my job is 2018-12-30. I have attached my tmap mapping and the job flow. I am not able to find out what is wrong. Any help is appreciated.

 


Accepted Solutions
Employee

Re: Date from Source File not reflecting in Postgres target table

Hi,

 

    As a first step, please add tLogrow instead of DB output component to make sure that data is coming out of tMap in right format. Once you print the data to console, you can confirm that everything is working fine till this point.

 

    The next step is to verify whether the data is moving to DB in the right format. Please verify the output schema of the tDBOutput component and add the right date format as shown below.

image.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

View solution in original post


All Replies
Employee

Re: Date from Source File not reflecting in Postgres target table

Hi,

 

    As a first step, please add tLogrow instead of DB output component to make sure that data is coming out of tMap in right format. Once you print the data to console, you can confirm that everything is working fine till this point.

 

    The next step is to verify whether the data is moving to DB in the right format. Please verify the output schema of the tDBOutput component and add the right date format as shown below.

image.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

View solution in original post

Six Stars

Re: Date from Source File not reflecting in Postgres target table

Thank you Nikhil. I had the date format wrong. I had MM/DD/YYYY instead of MM/dd/yyyy. 

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog