Dilaksha Attanayake
04/24/2023, 4:11 PMThe data in the 'end_date' column cannot be converted to 'DATE' format.
This column is date but can contain null. How can I tell the data model that it could be null?Moises Morales
04/24/2023, 4:15 PMDilaksha Attanayake
04/24/2023, 4:21 PMMichal Hauzírek
04/25/2023, 9:20 AMDilaksha Attanayake
04/25/2023, 11:44 AM2023-04-24T18:09:43.670+0200 [INFO]: Request id: "data_load_nAndwqDJr1_9MjE4LGohq:XjMamOClAJaU1ZMR:DTG1P4wbh53fi0dS"
error
2023-04-24T18:09:49.577+0200 [INFO]: dataset: dataset.rental_product_inventory, Messages:["The data in the 'end_date' column cannot be converted to 'DATE' format."]
The LDM column is yyyy-MM-DD format
sample data in the csv is NULL
Dilaksha Attanayake
04/25/2023, 12:43 PMMichal Hauzírek
04/25/2023, 8:45 PMNULL
value in the S3 file. If you want to load empty date from a CSV file, it needs to be represented by an empty string (i.e. ,,
in the CSV, not ,NULL,
). The field will still be a date field.
Please see the attached sample file. When I used NULL, I got the same error as you. When I used empty string (just two comas in the CSV - lines 6,7 and 11), I was able to load the data and they work as empty date in GoodData.
I will try to ask the GoodData doc team to add this info explicitly to the documentation, since using NULL as you did might be quite common and the error message is not that helpful in this case.Dilaksha Attanayake
04/26/2023, 9:16 AM