Video Screencast Help

Issue with Multiple Value Mapping component

Created: 13 Jun 2013 • Updated: 13 Jun 2013 | 2 comments
This issue has been solved. See solution.

I need to create and insert rows into a table for each element in a collection.  Using the Multiple Value Mapping component I selected the approriate 'Source Array Type' then selected a collection of that type for the 'Create Item For Each' property. 

When I configured the 'Target Mapping Definition' and expanded the collection name specified in the 'Create Item  For Each' property I can select either the First or Last entry (or the Count property).  I would have expected a selection denoted by an Asterisk.  See the attached document to see the configuration data.

When I execute the workflow I end up with the correct number of rows in my database table but they contain the data from the first entry in the input collection.

I can certainly come up with an alternative method for inserting rows into the database table, but I'd like to find out if I am using this component correctly.

Operating Systems:

Comments 2 CommentsJump to latest comment

Rob Moore's picture

At the top of the Tartget Mapping defenitions, you should see (Source) and the name of the source array.

 

Use those elemts to map your data.

If you use the actual source array -First, it will go through the total count of the array, but it will always use just the first row.

 

The (Source) array automatically cycles through all the elements of the source array.

 

Rob

SOLUTION
M Rutledge's picture

That was the problem.  Thanks for the quick response.