AL icon indicating copy to clipboard operation
AL copied to clipboard

Dependency Error while publishing Extension.

Open SUD-D365 opened this issue 7 years ago • 4 comments

Hello Experts,

I am getting a dependency error while publishing the extension on Sandbox environment. I created an Ext1 and then published it on a BC Sandbox instance. It published well without any error.

After this I required to do some field level changes , so I used Designer in Sandbox to achieve these changes, so it created an another extension Ext2. That went also ok without any error. Now I am doing some change in my first Ext1 , but when I am publishing it , then getting below error.

** The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=synchronize failed with code 422. Reason: The extension was unable to be deployed due to a dependency between extensions.

**

For solving this error I mentioned the *Dependency parameter in app.json with proper values. But still I am getting another error, like below.

**c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\Codeunits\Cod50100.SalesPersonFlow.al(1,16): error AL0197: An application object of type 'Codeunit' with name 'CAE_SalesPersonFlow' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\Codeunits\Cod50100.SalesPersonFlow.al(1,10): error AL0264: An application object of type 'Codeunit' with ID '50100' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag40-Ext50105.CAE_ItemJnlLineExt.al(1,21): error AL0197: An application object of type 'PageExtension' with name 'CAE_ItemJnlLineExt' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag459-Ext50104.CAE_Sales&RecSetupExt.al(1,21): error AL0197: An application object of type 'PageExtension' with name 'CAE_Sales&RecSetupExt' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag40-Ext50105.CAE_ItemJnlLineExt.al(1,15): error AL0264: An application object of type 'PageExtension' with ID '50105' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag459-Ext50104.CAE_Sales&RecSetupExt.al(1,15): error AL0264: An application object of type 'PageExtension' with ID '50104' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab311-Ext50103.CAE_Sales&RecSetupExt.al(1,22): error AL0197: An application object of type 'TableExtension' with name 'CAE_Sales&RecSetupExt' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab83-Ext50104.CAE_ItemJnlLineExt.al(1,22): error AL0197: An application object of type 'TableExtension' with name 'CAE_ItemJnlLineExt' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab311-Ext50103.CAE_Sales&RecSetupExt.al(1,16): error AL0264: An application object of type 'TableExtension' with ID '50103' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab83-Ext50104.CAE_ItemJnlLineExt.al(1,16): error AL0264: An application object of type 'TableExtension' with ID '50104' is already declared c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab311-Ext50103.CAE_Sales&RecSetupExt.al(6,22): error AL0205: A field with name 'CAE_Responsibility Center' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab311-Ext50103.CAE_Sales&RecSetupExt.al(11,22): error AL0205: A field with name 'CAE_SalesPersonCode' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\TableExtensions\Tab83-Ext50104.CAE_ItemJnlLineExt.al(6,22): error AL0205: A field with name 'CAE_Responsibility Center' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag40-Ext50105.CAE_ItemJnlLineExt.al(8,19): error AL0155: A member with name 'CAE_Responsibility Center' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag459-Ext50104.CAE_Sales&RecSetupExt.al(9,19): error AL0155: A member with name 'CAE_Mandatory Fields' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag459-Ext50104.CAE_Sales&RecSetupExt.al(12,23): error AL0155: A member with name 'CAE_Responsibility Center' is already defined c:\Users\sudarshan.khandal\Documents\AL\CAE Customization\CAE_SalesPersonCustomization_ST-01-09 - 2\PageExtension\Pag459-Ext50104.CAE_Sales&RecSetupExt.al(18,23): error AL0155: A member with name 'CAE_SalesPersonCode' is already defined **

Can anyone please get me out of it?

Regards Sudarshan

SUD-D365 avatar Dec 04 '18 09:12 SUD-D365

Hello @SUD-D365 when you are publishing Ext1 which is containing dependencies first you need to unpublish and uninstall the dependencies and you have to publish the Ext1 then it will work.

Refer this Blog. https://d365-sai.blogspot.com/2018/12/dependency-error-while-publishing.html

sainath654 avatar Dec 04 '18 12:12 sainath654

Hi @sainath654 , Thanks for your help. I already tried this way, and this is working fine for me. But this is very lengthy process to work around, because I have many extensions installed that have dependencies on this extension. Every time if I made any change in this Ext1 , I need to uninstall all extensions, that's not a good idea.

Any other way to resolve this error?

Regards Sudarshan

SUD-D365 avatar Dec 04 '18 12:12 SUD-D365

If Ext2 is depending on Ext1 you must uninstall Ext2 first. This is the only logical way to do so.

dNsl9r avatar Dec 04 '18 15:12 dNsl9r

Hi @SUD-D365, for now there is no other way than uninstalling/unpublishing the extensions that take a dependency on your extension. We are already tacking this issue in #2804.

qutreson avatar Dec 05 '18 10:12 qutreson