[CSVUtil] Doesn't load first row...

[CSVUtil] Doesn't load first row...

  
Forge Component
(18)
Published on 9 Oct (2 weeks ago) by Wei Zhu
18 votes
Published on 9 Oct (2 weeks ago) by Wei Zhu

I'm using LoadCSV2RecordList to read binary CSV data but the first row in the CSV isn't being loaded.  No matter if I put 0 into StartIndex or let it default, the result set always starts with the second row.  If I use 1 as StartIndex, it starts with the third row.  I've even tried -1, but that still starts with the second row.  Does it always assume there is a header row?  Is there any way to get the first row without having to add a fake header?  Thanks

Solution

I don't have access to my environment right now but I believe there is an option that determines whether the first row is a header.  If there is an option for that and it is set to true, it will skip the first row.

Hope this helps,
Curt


Solution

Curt Raddatz wrote:

I don't have access to my environment right now but I believe there is an option that determines whether the first row is a header.  If there is an option for that and it is set to true, it will skip the first row.

Hope this helps,
Curt




Ah, yes!  It's one of the attributes in the config structure.  Thank you!