Symptoms
Customer received the following error when trying to deploy his process to Production.
1 Error(s)
(Payables) Deploy SmartObjects: Task error: SmartObject Server Exception: Dependency Service raised the following 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). SmartObject: Payables-SO-PaymentRequestApproval]
Parent ID = 'GUID'
Parent Name = 'AP-PaymentRequestApproval'
Parent Class Name = ''
Parent Version = ''
Parent Extra Data = 'SourceCode.SmartObjects.Services.SQL.SqlServerService'
Diagnoses
The issue was caused by the Service Instance Guid for Production is different than the Guid in Dev.
Resolution
After recreating Service Instance in Prod with the same Guid in Dev, we were able to deploy the project successfully.