Symptoms
Package deployed with dependency error
Diagnoses
Hi,
While deploying a package in STG server, an error was occurred saying "dependency could not be created" and package was deployed.
All updated functionalities (workflows, forms, views) in the package is working fine without any issue.
Please find the attachments for your reference.
Kindly do let us know why this error is occurring while deploying and how to solve it.
Thanks,
Kishore
Resolution
Dear Kishore,
ISSUE:
While deploying a package in STG server, an error was occurred saying "dependency could not be created" and package was deployed.
Full error message:
"Post-Deployment : Dependency could not be created: System.Exception: Dependency could not be created. Parent does not exist in this environment. Check Data property of exception."
All updated functionalities (workflows, forms, views) in the package is working fine without any issue.
Please find the attachments for your reference.
Kindly do let us know why this error is occurring while deploying and how to solve it.
RESOLUTION:
This ticket has been open firstly for a package and after investigation, the issue was linked to an issue of a Smart Object not valid (linked to an other ticket: Fields are mismatched after deployed in Staging - Ticket N°106043)
After this first smart object detected, some week after, you had the issue on an other package and it seems to be linked to 2 other SmartObjects in error.
We already fixed the issue for one SmartObject, but you need to fix now the other SmartObject as it is linked to SharePoint: "Reason for the dealer request list".
We opened a feature request for the PandD in order to have a clearer error message on the final screen of the PandD.
After test on version 4.6.11 here, we have a clear error message in the Event viewer only:
The description for Event ID 30101 from source SourceCode.Logging.Extension.EventLogExtension cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
30101 Unable to create dependecies for SmoTable2 SmartObject. Additional Info: ServiceObject: dbo-Table2 ServiceType: SourceCode.SmartObjects.Services.SQL.SqlServerService
But in your context (Maybe linked to 4.6.10), we don't have clear error on the Event viewer.
We provided to you by mail a “SmartObject Service Tester K2 France Custom.exe”.
This custom file is not an official one and is not maintained by K2 France.
In all cases this file will be not supported by the K2 support: No ticket will be accepted about this.
This file will allow you
1) To see quicker the smart objects with issue by Right click on a Category and choose “Verify SmartObjects”: The Smart Objects with issue will be displayed with the Red Checkbox.
2) If you don’t have any issue of response time and you want to have this verification each time where you open a category, you can go to “Tools/Settings” and tick the checkbox “Verify Smart Objects integrity during first display”.
These improvements are been done in order to allow you to check quicker the Smart Objects with issues that generate the PandD issue “Package deployed with dependency error” (Ticket 103173)
We don’t advise you to replace this one by the standard one. We advise to keep the standard file and use this this one when it’s necessary to check quicker the smart objects status.
You have 2 days to accept or reject this resolution. If you feel the issue is not resolved, please reject this resolution.
Otherwise, please take the opportunity to submit feedback, using the link included in this message.
Thanks, and regards
Olivier Chatagnon