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

Important :Mapping

HI experts

I have to create target file based on source field.

the source field should not be mapped to the target field.

Condition: If source field exsist create target file else error.

Any one has any idea???

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jun 16, 2008 at 09:27 AM

    use standard function Boolean Function - IF (with Else) for this problem,

    regards,

    Sandeep Kaushik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:27 AM

    Hi,

    you could map the source to the exist-function and the result in if without else

    if true then -> source value

    Regards

    Patrick

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:31 AM

    hi mahesh,

    make use of standard function EXISTS

    We can handle the error by checking whether the source tag exists and if it does not we can pass an empty value, which generates the required target field.

    regards

    chandra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:43 AM

    Hi,

    Use if then else or EXIST funtion to find out the source field exists or not.

    Regards,

    Phani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 09:47 AM

    Dear Mahesh,

    In mapping editor, do like this:

    use If then else

    compare sourse field with the constant (XYZ, use constant function for this in the same mapping area.)

    Right click and assign it as xyz and compare two strings if source and constant are equal then map else reject.

    Hope this will help you.

    Best of Luck

    Regards

    Praveen

    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.