Handling Excel split rows in a Composer transformation map

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
placlef
Posts: 2
Joined: Thu Dec 03, 2015 1:12 am

Handling Excel split rows in a Composer transformation map

Post by placlef »

How can I code a transformation map to read the split rows?
Input is Excel xlsx with one row split into multiple rows.
I need to read the first line and insert it into the LANSA parent file. Then read all the split rows (from KM-BPR5ES to KM-FXT00V-CS00S) and insert them into the LANSA child file.
Thanks in advance for any input.

Here are screen shots:
Pat Laclef | Senior Consultant | Lansa
JamesDuignan
Posts: 85
Joined: Thu Nov 26, 2015 1:43 pm

Re: Handling Excel split rows in a Composer transformation map

Post by JamesDuignan »

Hi Pat,

This very much is possible to do and looking and the snippet from the document you are definitely on the right track.

Can you let me know what is occurring when you try to run this map?

Also, in Mapforce when you switch to the output tab what is displayed?
mapforceoutput.PNG
mapforceoutput.PNG (17.8 KiB) Viewed 4663 times
Cheers,

James
placlef
Posts: 2
Joined: Thu Dec 03, 2015 1:12 am

Re: Handling Excel split rows in a Composer transformation map

Post by placlef »

Thanks, James for replying. Since my initial post, I have done more research and consulting. Apparently, the solution is to convert Excel file from xlxs to CSV format. MapForce has a feature called FlexText that allows to manipulate the incoming file (text and CSV format). I created a solution that I started to test, with no successful outcome yet.
Pat Laclef | Senior Consultant | Lansa
Post Reply