scottdurow / RibbonWorkbench

Ribbon Workbench 2016 for Dynamics 365
https://ribbonworkbench.uservoice.com/
MIT License
72 stars 24 forks source link

2 buttons with the same id error, but cannot find any duplicates in XML or UI #51

Open altmank opened 4 years ago

altmank commented 4 years ago

Hello,

While trying to publish a particular entity ribbon (Account), I have been unable to use the XRM toolbox version (3.1.391.1.9) of the Ribbon Workbench because it has issues with validation that I can't seem to find a cause for. It indicates that there are two buttons with the same ID:

https://i.imgur.com/rFE4E3H.png

I work around this by using an older solution based version of the workbench for this entity but it only seems to impact our Account entity ribbon.

Any idea what might cause this error or how I would fix it so this stops?

scottdurow commented 4 years ago

This is usually caused by there being a customisation of a group or tab as well as the actually button. Download the solution and unzip it - then do a search for the button ID's to see where the duplicates are.

altmank commented 4 years ago

Hmm I verified no duplicate button id's already in the xml. Is it possible it indicates one id is the duplicate when it is actually some other ID?

On Tue, Sep 8, 2020, 6:03 PM Scott Durow notifications@github.com wrote:

This is usually caused by there being a customisation of a group or tab as well as the actually button. Download the solution and unzip it - then do a search for the button ID's to see where the duplicates are.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottdurow/RibbonWorkbench/issues/51#issuecomment-689181088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFPL5EFKLELVFZBQDAT7N23SE2Z55ANCNFSM4QVDD6XA .

scottdurow commented 4 years ago

The duplicate warning happens when the ribbon xml is being assembled. Could you send me your ribbon xml so I can take a look please?

greensweater commented 3 years ago

Hi Scott - thanks for your work, we really depend on you. I was going to open a new issue for this but since this one is so new I thought it might apply. I've been googling for info on the new "Mscrm.OpenRecordItem" feature in PowerApps and how it relates to Ribbon Workbench. The MS documentation around this feature mentions Ribbon Workbench with a big disclaimer, then goes on to describe how to edit RibbonDiffXml directly. As you know, in D365 apps there are both the HomepageGrid along with the SubGrid. In order to override the grid behavior using Mscrm.OpenRecordItem, you have to specify exactly "Mscrm.OpenRecordItem" as the Button ID (for some reason, rather than Command name). However, in RW I believe the CustomAction name is derived from the Button Id. For example, the code below allows both HomepageGrid and SubGrid to use the same command, but this was because I manually changed the ID to 'Mscrm.OpenRecordItem'. This prevents RW from being able to validate the XML, and will not publish any further changes.

`

altmank commented 3 years ago

Ribbons.zip

@scottdurow Attached two ribbon xml. Seeing the issue on the Contact entity as well.