Consider I have just read a row from this csv file, each column is a field of a table, I have been asked to verify that the value in that record of a certain field is plausible for writing/updating in the associated table.
For example, field X can accept as values only the integers 10, 11, 12, 13......if on my csv file I read a record in which the field X has been set to 22, I should throw an error before I start any update/insert and prevent any processing of the whole row/record I read.
I usually always worked with validating the data that users inserted on forms the moment they inserted it, I never had a situation like this.
How can I call the validateWrite method without any triggerring event and verify that the value I just read is fit for writing?
Thank you very much.