How to map multi-record type data file in DataMapper?

Customer send me this type of data file, which I have uploaded to server:

https://learn.objectiflune.com/qa-blobs/1365532792867119499.txt

In PReS, I can define its structure as multi-record type without a problem. However I am stuck with DataMapper. Can any one shed me a light?

Regards,

Donald

1 Like

Apply the same logic. In this case use the Mutiple Conditions step within the Repeat loop and then extract each field within each record type. You end up with several cases: case 0000, case 0101, case 0102…etc and if you know the length of each field you can then extract based on location or javascript as usual.

I have attached an example you can go from and complete here.