cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with XSLT Transformation on BPM

Former Member
0 Kudos

Hi there,

I have a 1:N File --> Idocs Scenario with BPM, Inside the BPM i have an XSLT Transformation that has a problem i cant figure out, basically this XSLT Groups the file structure like this:

Source

-



<File>                                                
   <Route>                                        
      <Id>1</Id>                                 
      <delivery>1</delivery>              
   </Route>                                        
  <Route>                                         
      <Id>1</Id>                                  
      <delivery>2</delivery>              
   </Route>                                       
  <Route>                                        
      <Id>2</Id>                                  
      <delivery>3</delivery>              
   </Route>                                        
   <Route>                                         
      <Id>2</Id>                                  
      <delivery>4</delivery>                
   </Route>                                        
</File>                                               

Target

-



<Shipments>
   <Route>
     <Id>1</Id>
     <delivery>1</delivery>
     <delivery>2</delivery>
   </Route>
   <Route>
     <Id>2</Id>
     <delivery>3</delivery>
     <delivery>4</delivery>
   </Route>
</Shipments>

It's supposed to generate 1 Route Segment for each disctint Route Id on the Source file, it has always worked fine as we ran several tests before going into production system, but now, sometimes it misses a few routes for example the output will be 25 different Routes for a source file that has 28, or 2 routes from a file that has 3.

I have tested the XSLT on the repository and it works fine all the time, same thing when using xml spy, i always download the payload i get from the file adapter, i got a source file from PRD that has 28 routes and i ran the whole scenario on QAS and it generated 12 routes only, im about to open an OSS message but first i wanted to know if anyone has seen something like this, thanks in advance for all the help you guys can provide.

Best Regards,

Roberto.

p.s. i can send the XSL if needed or anything just ask for it.

Edited by: Roberto Gomez on Aug 27, 2009 4:52 PM

Edited by: Roberto Gomez on Aug 27, 2009 4:56 PM

Edited by: Roberto Gomez on Aug 27, 2009 4:58 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Roberto,

I can't think of any reason why this error is happening. But would certainly like to know why you are using BPM for grouping? Means, this can be done even in graphical mapping. So, any specific reason for using BPM?

Regards,

Neetesh

Former Member
0 Kudos

Hi,

Basically because i have to do 2 transformations, first i run the XSLT to group all the deliveries and such, and then i do a graphic mapping to split it into single Shipment Idocs, i dont know how to group by id on graphical mapping..., anyway i don't think the fact that im using BPM would finally alter the xslt result,

Regards,

Roberto.

Former Member
0 Kudos

Hi Roberto,

You can use two mappings -

1. 1st mapping (XSLT / Graphical) will take care of the grouping,

2. Output of 1st becomes the input of 2nd mapping (Graphical) and you can do the split.

I still feel that BPM is not required. Why to introduce one more layer in processing

Regards,

Neetesh