FAQs
Common Errors & Troubleshootin...
Context User License Failure in Salesforce Automation
 what is the issue? cloudfiles users may encounter automation failures when salesforce flows, process builders, or other automation tools attempt to execute cloudfiles actions (such as creating account folders or managing documents) the error typically appears as "bad request context user \[user\@email com] doesn't have a product license" the product referenced will be one of document ai document management document generation admins receive an error email notification when this occurs, and the automation fails to complete why does this happen? cloudfiles enforces mandatory license checks on all salesforce automation actions when a salesforce automation executes a cloudfiles action, the context user (the user whose context the automation runs under) is passed to cloudfiles if this user doesn't have an assigned cloudfiles license, the action is blocked and an exception is thrown this check prevents license abuse where unlimited users could create folders or use cloudfiles features through automation with only a minimal number of licenses purchased note this check applies only to users with salesforce licenses community users, guest users, and integration users are excluded from this validation how to fix this issue? to resolve context user license failures and restore automation functionality 1\ identify the context user review the error email sent to admins, which will identify the specific user (email address) who needs a license 2\ assign a license to the user navigate to cloudfiles license management and assign an appropriate license (document ai, document management, or document management) to the identified user if you have auto assignment enabled and available licenses in your plan, licenses will be automatically assigned when the automation runs again need help assigning licenses? refer to the license management articles for document management document ai document generation 3\ if no licenses are available if you've consumed all licenses in your current plan, you'll need to purchase additional licenses or reallocate existing ones contact your cloudfiles sales representative or reach out to support for assistance with upgrading your plan note special case page based or process based licensing for document ai, some customers have licensing based on pages processed or other consumption metrics rather than per user licenses for these customers, this automation check may be disabled if you have page based or process based licensing and are still encountering this error, please contact cloudfiles support or check with your sales representative to verify your licensing type and ensure the appropriate configuration is in place once a valid license is assigned to the context user, retry the automation the cloudfiles action should now complete successfully without errors