Amazon doesn't send consistent date and time formats. Amazon sends date and times in two formats:
- YYYY-MM-DDTHH:mm:ss.SSSZ
- YYYY-MM-DDTHH:mm:ss
This results in mapping errors and failed flows as the Integration App is unable to identify and map the date and time fields.
Resolution
When the date and time formats are inconsistent, it is recommended that you configure the multi-field mapping. You'll need to use the following format. Choose whichever field you want to use as your delta date:
{{{regexReplace PurchaseDate "Z" ".[0-9]{3}Z$"}}}
OR
{{{regexReplace LastUpdateDate "Z" ".[0-9]{3}Z$"}}}
Update the date and time mapping via flow settings:
- Login to your integrator.io account.
- Click Amazon - NetSuite integration app tile.
- Go to Flows tab > Order (FBA/MFN) section.
-
Next to the appropriate order flow. click Mappings .
- For the Amazon (MFN) Order to NetSuite Order Add flow, in the Amazon (MFN) Order Import Adaptor import, next to the PurchaseDate mapping, click Settings.
- For the Amazon (FBA) Order to NetSuite Order Add flow, on the Edit Mapping window, select the Amazon (FBA) Order Import Adaptor import. Next to the PurchaseDate mapping, click Settings.
-
Edit the PurchaseDate mapping.
Notes:- The standard out-of-the-box mapping format is "YYYY-MM-DDTHH:mm:ssZ."
- If the date format is not set to the standard format mentioned above, you'll have to set the Export Field Date mapping format to YYYY-MM-DDTHH:mm:ssZ.
- On the Settings window, in Field Mapping type, select Multi-Field.
-
In the Expression field, enter the value as {{{regexReplace $.PurchaseDate "Z" ".[0-9]*Z$"}}}.
- On the Settings window, click Save.
- On the Edit Mappings window, click Save and close.
Comments
Please sign in to leave a comment.