Help

errors with "today's date" script in automation

Topic Labels: Automations
986 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Erin_Alter
6 - Interface Innovator
6 - Interface Innovator

i have a script step in an automation that i have been using for many weeks. it has been working as expected- with many runs per day. i've been rebuilding some automations, so i've been running them a lot as i test them. 

just now, the automation stalled out and finally failed:

Fail
An unexpected error occurred, please contact Airtable support.

When i tried to test the script, i received this error:

ERROR

There was an unexpected error while executing your script.

the script in question is: 

output.set("date", new Date().toISOString())
 
I started using this script in December to replace having a "Today" field that used the Today formula. I use the script to update a field that displays when the last automated activity took place. it is used in many automations and all are now failing.
 
Any suggestions on how to resolve this?
2 Replies 2
DamienIPSSI
4 - Data Explorer
4 - Data Explorer

HI! Same here,

All my script to get the current date/time are not working.
Result : all my scripts are unable to work.

Exemple :

const today = new Date().toISOString();
output.set("now", today);
Erin_Alter
6 - Interface Innovator
6 - Interface Innovator
Airtable automations not running scripting actions
Incident Report for Airtable
Resolved
We have resolved this incident, and Airtable Automations are functioning normally. We’re sorry for the inconvenience.
Posted 39 minutes ago. Jan 17, 2024 - 18:29 UTC
Identified
We are investigating issues with Airtable automations running. We have identified the issue and working on the fix.