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
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