Script doesn't save properly

Script doesn't save properly

I am trying to save the following code to one of my scripts

for each schedule_row in input.SCHEDULE
{
thisapp.udf_ccc.get_ccc(input.CUSTOMER_ID, list({schedule_row.SITE_ID}), schedule_row.ALL_SITES, input.AGREEMENT_ID, schedule_row.SCHEDULE_TYPE, "0", "0", "0");
}
for each variation_row in input.VARIATION
{
thisapp.udf_ccc.get_ccc(input.CUSTOMER_ID, list({variation_row.SITE_ID}), variation_row.ALL_SITES, input.AGREEMENT_ID, variation_row.VARIATION_ID, "0", "0", "0");
}

When I click Save Script, I see
Script saved

However, the little circle indicator in the Form Action Pane goes grey. The code was previously working but not anymore. I have tried both the new app builder/old builder script builder and free flow text editor. I get the same outcome every time.

Why does the script not save?