Back to forum list… Back to How Do I?...

CSV Reader Line Number (1 reply)

pleroux
4 years ago
pleroux 4 years ago

Is there a way to identify the line on a CSV reader transform? When there are errors related to the source data it is useful to return the source file name but with large CSV files the client would also like to see the line number that is the source of the error.

Support
4 years ago
Support 4 years ago

pleroux, if there's an error whilst reading the file, the line number is be part of error.

I think however you're referring errors in transforms downstream.

There is no intrinsic feature in IMan for line numbers, as there is with say the filename SYS.INPUTFILE.

You could create a formula in a Map transform to generate an incrementing value, to simulate the line number. In a new field called LineNumber create the formula.

IIf(%SYS.INPUTFILE = PreviousRecord("SYS.INPUTFILE"), PreviousRecord("LineNumber") + 1, 1)

Thanks

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close