Issue

The following errors are displayed after deploying a package from the Source environment to the Target environment:

Unable to register dependencies for SmartObject, [SMARTOBJECT_NAME].  Please check that the following dependencies exist: ServiceObject: [SERVICEOBJECT_NAME] | Id: [GUID] | ServiceType: SourceCode.SmartObjects.Services.SQL.SqlServerService ServiceObject: [SERVICEOBJECT_NAME] | ...

Symptoms

The issue could be caused by multiple reasons, the main two being:

1. The Permissions given to the K2 Service Account is not sufficient

2. The ServiceObject Definition is not the same between the Source and Target Environments.

Resolution

1. Please make sure the the K2 Service Account has the appropriate permissions assigned as per the Installation Documentation:

https://help.k2.com/onlinehelp/k2five/icg/5.0/default.htm#Plan/Required_Permissions.htm%3FTocPath%3DPrepare%7CAccounts%2520and%2520Permissions%7C_____2

2. Please make sure that the ServiceInstance Definition is the same between the Source Environment and the Target Environment.