automation_portfolio_scope_forbids_action
One of the actions acts on the data of a single company, and under portfolio scope every run has a different managed company as its subject. Only actions that notify the managing company, or that touch no document at all, are admitted.
| Code | Type | HTTP | Category |
|---|---|---|---|
automation_portfolio_scope_forbids_action | invalid_request_error | 422 | Automations |
Cause
One of the actions acts on the data of a single company, and under portfolio scope every run has a different managed company as its subject. Only actions that notify the managing company, or that touch no document at all, are admitted.
What to do
Replace that action with one the catalogue marks as «supports_portfolio_scope» true, or create the automation with the single-company scope.
Related
All Automations error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.