cancel
Showing results for 
Search instead for 
Did you mean: 

Only outputs first line of input file

Former Member
0 Kudos

Hi

I created a simple 'program' to read the first- and last name of a person from a file and output the person's Full name, which is easily mapped by using the 'concat' function.

As far as I know, everything is set up correctly, the Configuration Scenario and the data types etc.

The file gets read by the sender and then converts it to the corrrect XML format, but when it is mapped, only the first line of the input file is in the output.

Example input file:

Niel,Joubert

Jacob,Zuma

Tiger,Woods

The resulting output file:

Niel Joubert

Accepted Solutions (1)

Accepted Solutions (1)

former_member204873
Contributor
0 Kudos

hi,

Check the cardinality of your output node if it is 1..* or not and you have mapped nodes correctly.

Thanks.

Former Member
0 Kudos

Sorry to sound so stupid, but where would I check the cardinality?

Mapping is:


FirstName -----|
               |-----Concat----FullName
LastName  -----|

sbuttler77
Active Participant
0 Kudos

Go to your data types and check the occurence column. You can change the cardinality

there I suggest you set it to 0..unbounded and then try again.

former_member206760
Active Contributor
0 Kudos

go in the target datatype and chk the cardinality..it is also visible in mapping

Edited by: Tarang Shah on Feb 26, 2010 4:21 PM

Former Member
0 Kudos

Thanks a lot Tarang and Sven

No one told me that that is where we had to change it.

Former Member
0 Kudos

Thanks a lot Tarang and Sven

No one told me that that is where we had to change it.

Answers (1)

Answers (1)

sbuttler77
Active Participant
0 Kudos

Whats the target field's cardinality? 0..99999?

Its likely you chose the wrong context can you be a bit more specific what does

your mapping look like?