Based on your errors here when your script is trying to add wrapped routes or ECMP routes, but it can't find the "parent" route element this is why it appears to be failing due to the differences in route output format between IOS and NX.
You can fix...
@alessiagreco did you not post this already here? https://community.cisco.com/t5/devnet-general-discussions/how-can-use-forloop-in-nso-rfs-template/m-p/5104183
It feel like this is a fake account.....