Skip to main content


 

Symptoms


Getting the following error when trying to deploy package from source to target environment:
Dependency could not be created: System.Exception: Dependency could not be created. Parent does not exist in this environment. Check Data property of exception. at SourceCode.Hosting.Services.DependancyService.VerifyObjects(List`1 parents) at SourceCode.Hosting.Services.DependancyService.CreateDepenancyBatch(Dictionary`2 depenancyBatch) System.Exception: Dependency could not be created: System.Exception: Dependency could not be created. Parent does not exist in this environment. Check Data property of exception.
at SourceCode.Hosting.Services.DependancyService.VerifyObjects(List`1 parents)
at SourceCode.Hosting.Services.DependancyService.CreateDepenancyBatch(Dictionary`2 depenancyBatch) ---> System.Exception: Dependency could not be created. Parent does not exist in this environment. Check Data property of exception.
at SourceCode.Hosting.Services.DependancyService.VerifyObjects(List`1 parents)
at SourceCode.Hosting.Services.DependancyService.CreateDepenancyBatch(Dictionary`2 depenancyBatch)
--- End of inner exception stack trace ---
at SourceCode.Runtime.Services.SmartObjects.ServerAccessLayer.CreateDependencies()
at SourceCode.Deployment.Runtime.ServerSession.BeginDeploy() 00:00:00.0948645”

 

Diagnoses


The issue was caused by corrupt SmartObject from the source environment. When clicking on Finish during editing this SmartObject in source environment, the same error was thrown.
 

Resolution

Updating SmartObject definition by stepping through all method wizards in this SmartObject from K2 Designer, and was able to click Finish editing the SmartObject. After SmartObject definition has been corrected, recreating the package, and was able to deploy successfully.




 
Be the first to reply!

Reply