Fetch inside Scheduler not working

Hello everyone!
I’m running the following MikroTik script from the scheduler:

:local now [/system clock get date];
/tool fetch url=("sftp://user:secret@host/path/Backup_" . $now . ".rsc") src-path=("Backup_" . $now . ".rsc") upload=yes;

The script has the following permissions: ftp, read, write, and sensitive.
When I execute the script manually from the terminal, it runs without any issues.
However, when the scheduler triggers it, I receive the following error message:

executing script from scheduler failed, please check it manually

Could anyone help me understand why this is happening and how to fix it?
I’d really appreciate your assistance!
Thank you in advance!

Adding the “test” policy resolved the issue, though I’m not sure why it worked without it when run directly.
For a full description of the policy, you can check here.

Unfortunately, I’m unable to delete the original post.
Happy scripting, everyone!

I dislike that ROS makes a mystery out of missing permissions. It just says in the logs something like " permissions missing" and that’s basically it. Why can’t ROS log the exact command which permission is missing? Only Mikrotik knows.