Skip to Content
author's profile photo Former Member
Former Member

Mapping issue - transformdate mapping function - urgent

all,

payload has date as "000000000" the mapping function transformdate is changing to 0002XXXXX.

y is this so?

we are on sp 18 of xi 3.0.

Did anyone face this issue

Please respond.

reg

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Nov 20, 2007 at 09:50 PM

    Hi,

    >>we are on sp 18 of xi 3.0.

    Not because of this

    Regards

    Agasthuri Doss

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 20, 2007 at 10:03 PM

    Is it happening in the test tabl in message mapping test tool as well??

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 12:30 AM

    Hi Naveen,

    we have faced this problem in IDOC to SOAP scenario.

    if you pass date with all 0's you will get out put as 0002(year) 11(month) 30(Date).

    i guess this issue is something related to java.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 05:50 AM

    Hi

    -Check whether you get the same by using the test tab in Message Mapping.

    -Check by using the actual payload also

    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

    -Check the mapping you have done.I hope you are not using some user defined function or java mapping.If so, check that out.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 06:00 AM

    dont worry 😊

    it is because in the datetrans function advanced properties, you have selected the option of a <b>Calendar is linient</b> and in any case the result, <b>it is a bug</b>

    <i>When a Calendar is lenient, it accepts a wider range of field values than it produces. For example, a lenient GregorianCalendar interprets MONTH == JANUARY, DAY_OF_MONTH == 32 as February 1. A non-lenient GregorianCalendar throws an exception when given out-of-range field settings. When calendars recompute field values for return by get(), they normalize them. For example, a GregorianCalendar always produces DAY_OF_MONTH values between 1 and the length of the month.</i>

    Message was edited by:

    Shabarish Vijayakumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:30 AM

    yes.. this is bug in datetransform function. In order to handle it, you will have to check if the date is all zeroes if not only then use the datetransform function

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:31 AM

    Hi naveen,

    when ever we using the date transformdate function we need to give the any valid date..other wise the function assign some defult value because they use calendar lenient...

    if u remove this function ( funtion in advanced properties) in mapping level it will throw the error... if u give the valid date then it ill accept it....

    so they use some default value calling in calendar lenient and restrict this error in mapping level....

    Regards,

    Prakasu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.