Can't Run Script During Reset Configuration

I normally load a template script on all routers. I go to System-Reset Configuration and select No Default Configuration & Do Not Backup and add the template script to the Run After Reset area.
I’ve done this for years with no issue. Today I tried it for the first time on a hex router. It did not work. The firmware and software are up to date with the latest bug fix. The router resets, and there is no default config or backup, and the file is gone from the file folder, but it does not install the script. What could be the issue?

try full reset without default and paste the script on new terminal. see if are some errors on script, for example ht-chain and rx-chain etc.
check if all the required package are active and/or installed

Did that already and it loads fine. No errors. I have a 10 second delay before the script. It’s worked for years until now.

if are present some “errors” the script stop working and be deleted.

Try to put each Group of command for debug the instruction:

 /file print file=line-00040

at the end you can see inside /file what is the last file created, and deduce the point where is problem.

OR
THE PROBLEM ARE ON FLASH?
PUT THE SCRIPT ON /flash/ FOLDER??? the non-/flash file are lost on reboot

I just figured that out! I never remember seeing a Flash file?

I put it in the flash file, and now it works.

When did they introduce the flash file?

I only use the current bug fix, so maybe I’m behind the times.

some new devices, like hEX has flash memory instead of nand.
the folder /flash are the flash memory, outside /flash all the file are lost because is one ramdisk