web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by 804

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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.

  • Verified answer
    Hayer Profile Picture
    804 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans