on 2025 May 15 11:02 AM
I am trying to do some message mapping but i am running into a serious problem with inconsistent data. Let me show an example:
<ROOT><Users><User><DataTop><DataMiddle><DataBottom>This is the value i need<DataBottom><DataMiddle><DataTop><User><Users><ROOT>
My mapping would just take the value from DataBottom and map it to whatever. The XML i work with has several User inside the Users tag. But sometimes a User is different, like this:
<User><DataTop><DataTop><User>
This is where the mapping gives me trouble. When trying to map DataBottom, this would just be skipped for this user, which would give incorrect data for all the following users completely ruining all my data. After some searching i found out that this is supposed to work like this due to the queues.
How can i work around this? If one of the parent nodes is empty, i need to set a default value. I tried with some node functions, but they all get ignored on the DataBottom node, probably because that node cannot be reached when DataTop and DataMiddle do not exist.
Request clarification before answering.
you need to add a context change, either check if setting the context of the source field will do the trick or add a context change using function SplitByValue
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.