cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC insert problem

Former Member
0 Kudos

Hi,

We are facing a peculiar issue in our zero date conversion. I do a date transformation of u201C00000000u201D to a constant date using the date trans function. During run time when the zero date is encountered it maps the correct constant date. But when we check the sql server DB, the date is created with an extra day. Eg: If we had set the constant date to 12/30/2005, the date in the sql server is 12/31/2005. But the XI mapping contains only 12/30/2005. Any ideas.

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

Why are you using a Date Transformation function, do one thng try using fixed value map and map if input is 00000000 to the date u want it to be.

Try this out.Also check if the Payload after mapping is has the right format and date which u want

In the JDBC reciver channel monitoring u can find it...

Rgds

Aditya

Former Member
0 Kudos

Hi,

The XI mapping has the right value and the communication channel has a correct value too. But once I look into the sql server DB, it has added an extra day. Not sure. Please advise.

Teresa

Shabarish_Nair
Active Contributor
0 Kudos

this is not an issue with XI for sure.

Check with the DB admin of the database you are writing to if the DB has any settings defined.

Former Member
0 Kudos

try using date format function a the time of insert on DB side,

like :--To_date or To_char

Former Member
0 Kudos

Check the URL,it can help you:

Reward points if helpful

regards

yu ming

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Not an XI issue. Check with the DB properties. Also try making an entry directly into the DB without XI. See if the problem persists.

Regards

Monika

Former Member
0 Kudos

Any ideas..

Teresa