Service Connect Passing Data with XML Issue

Trying to pass data through my workflow via XML. When I link from set to set like this (green lines):

I have my data, as soon as I try to manipulate any values or pass this way, my data is lost:

Why would this happen? I’m tearing my hair out haha.

What Haso shows below… your nodes indicate Text node of multiple occurrence:


1 Like

Thank you both for your help! It sounds like i’m trying to populate a node of multiple occurrence when it should be of single occurrence . Does this sound correct? If so, how do I make it single? I have a parent workflow cycling this workflow for each line. After mapping, I generated the schema for the subworkflow in the subworkflow “Generate Schema” button. The subworkflow is using the schema I created. Confused by how this would happen.

When I look at doc tracking. I see my data is in the Start Element just fine… i just can’t pass it through anything else… Why would the data be in the Start Element just as I want it, but as soon as I pass it through a conversion using the schema I generated in the SubWorkflow screen (cycling just as I want it to) the data is lost?

If this is in your subworkflow, then you need to pass the data to the dta, no?

its hard to tell, unless you post your flow with more sshots, xpath etc.

I see what you’re saying and I completely missed that. Very misleading screenshot, sorry. I built a Container using the same schema as my dta, and neither were passing any data. I was able to fix this. Posting solution below.

I was able to get this working by completely starting over with my schema from the very first workflow. The schema on the first workflow was incorrect, and that had a domino effect throughout the rest of the workflows, finally blowing up on the lines. If anyone runs into something similar, focus on your schema and how you’re building it. The “Schema Builder” incorrectly created my schema. Had to manually create example data and use that to generate the schema correctly. It might also be worth trying to delete the schema on your Start element. I know it sounds crazy, but after I did everything, and tested it still didn’t pass my data correctly to my lines. I went into my Line workflow, deleted the start element’s Schema data and then saved. After I did that, it worked… no idea why, especially since it throws the schema back in there after you delete it. Perhaps a glitch somewhere there? Thank you everyone for your input and help! Stay healthy out there!

Lastly, I noticed when manipulating my values, their paths changed from:
image

To:

The first path would not work (no data passed), and the second one works flawlessly. I am not sure exactly where things went wrong. Perhaps someone with more XML experience can shed light on that? Just thought I’d mention this.