param - invalid format

Answered

Hello,

I have a function that: retrieves a CSV and adds the data to a table (straight forward).

The table contains different types of fields (timestamp, integer, text...). In the function, a loop adds the items individually to the table. When adding the items, it is possible that the data becomes corrupted. For example, the timestamp may turn out to be just text. In such a case, the function crashes. How would you tell the function that if the format is invalid, in that case, do not add anything and continue the loop?

As you can see in the capture of the response, [0] is not a timestamp, but I need this column to be set this way (timestamp format)

TY for your help

Screenshot 2023-11-16 at 6.02.06 PM.png
39.45KB

Screenshot 2023-11-16 at 6.01.28 PM.png
133.78KB

Screenshot 2023-11-16 at 6.01.07 PM.png
45.68KB

6 replies