As usual MikroTik does things without doing in-depth tests of what changing object names entails…
Ah no, I’m wrong: we are the testers… for free…
You didn’t test the script on the command line, so you didn’t see the “error” line
Warning: file was corrected to Sw_Trasporto_T6_ATTIVO–1301-0-050000.rsc
Temporary (I hope) fix: Remove the spaces on router system identity.