Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error while Importing the solution because it is dependent on a ribbon control. Manual Edit is also throwing same error.

Posted on by 802

Hi, I am getting the following error when I am trying to import the solution. 

Error: The ribbon item 'abc.B_gridAddNewProblemFix.Hide' is dependent on ribbon control id='B_gridAddNewProblemFix'.

Original RibbonDiffXml is as following: 

      <RibbonDiffXml>
        <CustomActions>
          <HideCustomAction HideActionId="abc.B_gridAddNewProblemFix.Hide" Location="B_gridAddNewProblemFix" />
          <HideCustomAction HideActionId="abc.Mscrm.SubGrid.xyz_problemfix.NewRecord.Hide" Location="Mscrm.SubGrid.xyz_problemfix.NewRecord" />
        </CustomActions>
        <Templates>
          <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
        </Templates>
        <CommandDefinitions />
        <RuleDefinitions>
          <TabDisplayRules />
          <DisplayRules />
          <EnableRules />
        </RuleDefinitions>
        <LocLabels />
      </RibbonDiffXml>

I have tried replacing Original RibbonDiffXml with the following but still getting the same error.

<RibbonDiffXml>
  <CustomActions />
  <Templates>
    <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
  </Templates>
  <CommandDefinitions />
  <RuleDefinitions>
    <TabDisplayRules />
    <DisplayRules />
    <EnableRules />
  </RuleDefinitions>
  <LocLabels />
</RibbonDiffXml>

Tried all the tools like RibbonWorkbench and VisualRibbonEditor but getting the same error. Can anyone please suggest me what I should do to fix this issue.

Thanks in advance.

*This post is locked for comments

  • Verified answer
    Hayer Profile Picture
    Hayer 802 on at
    RE: Error while Importing the solution because it is dependent on a ribbon control. Manual Edit is also throwing same error.

    Hi Saad,

    Thanks for your reply. I have ready sorted it before reading your answer. Following solution helped me. But you are suggesting right thing so I will accept it as an answer.

    ribbonworkbench.uservoice.com/.../903018-could-not-publish-solution-due-to-ribbon-control-d

    Many Thanks

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error while Importing the solution because it is dependent on a ribbon control. Manual Edit is also throwing same error.

    It seems that the B_gridAddNewProblemFix button was removed from the ribbon and so the Hide Action is now referencing it but the button is not there.

    I think the easiest way forward will be to create a new button in the entity with and ID of B_gridAddNewProblemFix and Mscrm.SubGrid.xyz_problemfix.NewRecord - this should then allow you to remove the Hide Action - and then the button.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans