You are trying to schedule a job to run at 5 am on Sundays using the following syntax
0 5 * * 7
However, you receive the following error: NJS-0117: Invalid crontab entry format
Clarity 16.0.1
Using "7" is a non-standard method to indicate the day of the week.
Instead use "SUN".
0 5 * * SUN
For example: