<{{Subtitle_Weight}} class="prominent-subhead {{Show_Subtitle}}"> {{Header_Subtitle}}

"Could not publish SmartObject Definition to server: Authorization Failed" error appears during deployment

~~repeating-content.html~~
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

You may see the following error when deploying your K2 Package:

Image

Symptoms

The issue can occur at the beginning of the deployment,  and it will not proceed any further.

You may see this full error message in the Hostserver log files:

"Could not publish SmartObject Definition to server: Authorization Failed. SmartObject: [SmartObjectName] System.Exception: Could not publish SmartObject Definition to server: Authorization Failed. SmartObject: [SmartObjectName]

---> System.Exception: Could not publish SmartObject Definition to server: Authorization Failed. SmartObject: [SmartObjectName]"

Resolution

This issue is caused by not having sufficient SmartObject rights.

To change these rights please navigate to the following areas:

- K2 Workspace > Management Console > SmartObjects > Security.

- K2 Workspace > Management Console > Smartbox > Security

Make sure the Admin and Service accounts have the relevant rights.

- Please make sure the account  deploying the solution has Publish SmartObject and Delete SmartObject rights on the Development Server.