Skip to main content

I was trying to call the API task through Forms and the AI Skill Execute action is not working and showing the error :

api task failure: task execution error - failed with status: (failed) with message:({"code":"access.is.denied","details":null,"message":"access is denied"}) at command: (genaipromptcommand) at line: (2)

 

Hi ​@jshaji ,

 

Please make sure that you are having access to the AI model that you are using within your AI skill and has permission to create and manage model connections. Also, check the accessibility of the AI Skill that you are mapped to use within the AI Skill → Execute action.


Hi ​@jshaji ,

 

Please make sure that you are having access to the AI model that you are using within your AI skill. Also, check the accessibility of the AI Skill that you are mapped to use within the AI Skill → Execute action.

Hey ​@Padmakumar , all the permissions are already granted, the only thing I caught is, when the skill is called a req is created in the Ai Agent Studio but without a Role  in the Security Logs


Hi ​@jshaji ,

 

Please make sure that you are having access to the AI model that you are using within your AI skill. Also, check the accessibility of the AI Skill that you are mapped to use within the AI Skill → Execute action.

Hey ​@Padmakumar , all the permissions are already granted, the only thing I caught is, when the skill is called a req is created in the Ai Agent Studio but without a Role  in the Security Logs

 

Could u please share a screenshot of your flow?


I was trying to call the API task through Forms and the AI Skill Execute action is not working and showing the error :

api task failure: task execution error - failed with status: (failed) with message:({"code":"access.is.denied","details":null,"message":"access is denied"}) at command: (genaipromptcommand) at line: (2)

 

The solution to this issue was, the Model Connection which was connected to the AI skill should have the role, which has permission to create and manage model connections and this same role should be assigned to the user who is invoking the API Task