Salesforce Create Record Scenario :"Function 'formatDate' finished with error! 'September 20, 2021 12:00 am' is not a valid date."

I’m attempting to Create Records in Salesforce from an online XML file. I’ve created the necessary records and fields and mapped the majority of fields. I’m struggling to map the date/time to the matching Date/Time field I have created in my SF Sandbox.
As of now, I’ve run an instance with a “Get Record” Salesforce Module that gave me the Date/Time formatting that Make Recognizes (MMMM D, Y h:mm A) added a “Parse Date” Tool to reformat the Date/Time to match. I’m still getting the same error.

I want to try and keep constant testing to a minimum as the number or records created is high and eating at our allotted Operations. Does anyone have any solutions?



Hi Eric,

the usually this error is because the module is expecting the date in a different format than what you are sending. After you parse the date add the formatDate formula to change the format to the expected one.

2 Likes

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes