The error is caused by a permission issue. To solve the problem, add the user to a group that allows execution of code on the workspace server. For example, add the user to the SAS General Servers group/ Or, assuming that the user is already in the Scenario Administrators group, add the Scenario Administrators group to the SAS General Servers group.
Reference : https://support.sas.com/kb/60/003.html
Also, check the workspace server if there is a user-specified to run SAS code.
If you installed AML on windows, you need to add the user to a group that has (run as batch policy).