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

Error in Message Mapping

Hi All ,

I have two simple mesages where i map employee details of one messages to another . The employee details structure has one element salary (data Type : integer , digit = "4") . When I run the test for this message it gives me following error :

"Cannot create element /ns1:EmployeeDetails/Salary. Insufficient values in queue context

java.lang.IllegalArgumentException: Cannot create element /ns1:EmployeeDetails/Salary. Insufficient values in queue context"

can someone help me out with this. What is the possible reason for this error .

regards,

Udai

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2004 at 08:34 AM

    Hi,

    There are two possible reasons of this:

    1. Tag salary is optional in source structure and it is missing in test xml-instance.

    2. Tag salary is obligatory, but your xml test-instance is not valid to source-message's xsd. For example, the namespace or name of root tag may be mistyped. Mapping tool cannot find the value of Salary in the source message, which leads to throwing an Exception, because Salary in target message is obligatory and must be created with some value.

    Another reason of such Exception could be an incorrectly defined mapping, but I beleive in your case the reason is one of mentioned above.

    Regards,

    Alexey

    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.