Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

problem with message mapping

$
0
0

Hello community.

 

I  have a problem with a message mapping with a special validation logic, it is dropping some of the desired values and I don't know what else to do to make it work.

 

DataType is as follows:

 

dt.png

 

Request XML is:

 

testing_xml.png

 

 

Message mapping for "g" node is:

 

g_node_mapping.png

For all the other nodes, mapping is 1 to 1, including attribute "c_att".

 

 

Response XML is:

 

xml_response.png

It is dropping one "g" node, it should create both of them from the source as values from node "c" are correct.

 

 

The mapping has one user defined function called "chooseValue", it simply choose from a valid string or a default value from the mapping:

function.png

 

 

Queues from testing are look like this:

 

mappingTest_queuesValues.png

 

 

I don't think the problem is within UDF, queues show it uses all the values and I already tried changing the execution type and iterating inside, same result.

 

Please, if anyone can shed some light on what's going on, I'd really appreciate. I'm in a pinch here and stuck as a nail.

 

Thanks!

 

 

PS: I know this logic is weird but it is correct, this mapping is used in several scenarios, validations should apply to one of them, the rest should generate an error if something is wrong with "g" node from source.


Viewing all articles
Browse latest Browse all 2129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>