You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Map with ForEach Error executing XSL

edited Dec 6, 2019 6:36PM in Integration 10 comments

Content

Hi experts,

 I have an input with two sets of records: "DadosCondutor" and "ServicosConsulta".

I want to map DadosCondutor to Condutor.

In DadosCondutor there is a field called "documentoCondutor" that should match only one retornoServico/conteudo/cpf when servicosConsulta/codigoServico="2039".

So we have:

DadosCondutor (for-each)

...

     documentoCondutor (must match ServicosConsulta/retornoServico/ conteudo/cpf below)

....

ServicosConsulta (for-each)

codigoServico (if equals to "2039")

     retornoServico (for-each)

     conteudo

          cpf (must match documentoCondutor)

But when I run Map Test, I get the following result

   <ns17:response-wrapper>
      <ns17:Condutor>
         <ns17:nomeCondutor>MILTON</ns17:nomeCondutor>
         <ns17:documentoCondutor>11111111111</ns17:documentoCondutor>
         <ns17:quantidadeCarrinhos>2</ns17:quantidadeCarrinhos>
         <ns17:quantidadeCarrinhos>3</ns17:quantidadeCarrinhos>
         <ns17:quantidadeCarrinhos>4</ns17:quantidadeCarrinhos>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!