D365 Solution Import failed. The dependent component SavedQuery (Id='View Id' does not exists. Failure trying to associated it with SystemForm (Id='Form Id') as a dependency. Missing dependency lookup type = PrimaryKeyLookup.
Another day, another error while importing managed solution to production. The error suggests that the view (saved query) behind the sub grid which is placed on the form (Form Id) is not present in the solution.
"The dependent component SavedQuery (Id="View Id") does not exist. Failure trying to associate it with SystemForm (Id="Form Id") as a dependency. Missing dependency lookup type = PrimaryKeyLookup."
Here is this can be fixed:
- Open customization xml in notepad (I recommend notepad++ ) and search with "View Id".
- Identify the form where this sub grid is placed.
- Open form -> Open sub grid properties.
- Set view selector to "Show All Views", save and publish the form.
- Open the same form again and set view selector to Off, save and publish the form.
Now you can export and import the solution again. I will work!
How it happened? I believe, when we do customization (place sub grid in this case) on the form from power platform and publish it, it actually does not publish view selector metadata in the solution. Thus, we need to do this step again from legacy form customizer.
Hope it helps!
Comments
Post a Comment