jervin
5 years agoNew Contributor III
Fixed Width parser error with on file containing tabs
I have a fixed width file I’m trying to parse but the beginning of each line has a varying number of tabs depending on what data exists:
The fixed width parser gives me error “Null pointer exception occurred at: com.snaplogic.snaps.transform.FixedWidthParser.configure(FixedWidthParser.java:204)” when trying to parse this file.
The CSV parser works but removes the varying number of leading spaces (tabs) on each record so I can’t just use a Mapper snap with substring functions to parse out the data.
Is there a good way to parse this file with SnapLogic?