Jump to:

22976 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » CSVParser and user_error

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 125 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    CSVParser and user_error Link to this post

    Hi folks,

    I'm using the CSVParser class to handle a CSV file, mostly fine, but if the CSV has the wrong number of items in a row, it creates a 'user_error', resulting a blue blue screen...

    2 questions:

    Does anyone know of a way of checking the column rows in the CSV before asking CSVParser to parse the file

    Does anyone know of a way of taking a generated 'user_error' and presenting it nicely to the user, rather than dying on a big blue screen!

    Or - or the CSVParser class just not up to it, and should I be using CsvBulkLoader instead?

    125 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.