Hi everyone
I have a automation running using make.com (the new name for integromat), which creates a new record to in an appsheet app from a customer order in a woocommerce/wordpress site.
It was working fine, but is now giving a REST API error from Appsheet:
[400] REST API invoke request failed - Error: Row having key '45266' in table 'DTC_Customer_Details' containing value '6/15/2023 4:49:03 PM' in field 'order_date' cannot be converted to type 'DateTime' using locale 'English (United Kingdom)'.
The appsheet table settings locale and locale of the table data source have not changed and are both set to 'English (United Kingdom)'.
The order_date input data in the rest api call generated by make.com is in ISO 8601 date format.
I've done the same rest API call with curl, setting the locale explicitly to en-GB in the JSON properties the JSON below, in case the problem was some behind the scenes change in how make.com handles date fields. I get the same error when calling the REST API directly. order_id is the key field for this table.
Solved! Go to Solution.
Apologies - I have worked out the problem which was staring me in the face. The input for DateTime was using MM-DD-YYYY while it needs to be DD-MM-YYYY for the en-GB locale.
the reason why I thought it was working previously was the earlier orders were before the 13th day of the month, so it was adding the datetime field without an error but the date was wrong, e.g. 12 June was being recorded as 6 of December ๐ฌ
Have now fixed to format the date into UK/GB format, and fortunately there weren't many records affected by the incorrect order_date which were easy to fix as well.
Sorry for not spotting this before posting!
Apologies - I have worked out the problem which was staring me in the face. The input for DateTime was using MM-DD-YYYY while it needs to be DD-MM-YYYY for the en-GB locale.
the reason why I thought it was working previously was the earlier orders were before the 13th day of the month, so it was adding the datetime field without an error but the date was wrong, e.g. 12 June was being recorded as 6 of December ๐ฌ
Have now fixed to format the date into UK/GB format, and fortunately there weren't many records affected by the incorrect order_date which were easy to fix as well.
Sorry for not spotting this before posting!
User | Count |
---|---|
16 | |
9 | |
9 | |
7 | |
3 |