Skip to main content
Answer

When publish acumatica customization

  • September 22, 2023
  • 4 replies
  • 124 views

Forum|alt.badge.img

I got this error

 \App_RuntimeCode\VendorMaint.cs(38): error CS0104: 'BAccountExt' is an ambiguous reference between 'PX.Objects.CR.BAccountExt' and 'PX.Objects.GDPR.BAccountExt'

Best answer by sweta68

Hi @kevinheng21 ,

This can happen if you have extensions or customizations that use similar class names, and the compiler is unable to determine which one to use.

To resolve this ambiguity issue, you can specify the full namespace when referring to the 'BAccountExt' class in your code to indicate which one you want to use.

This should resolve the ambiguity issue and allow your customization to compile and publish successfully.

Could you please provide code and which usings are you using in code?  

Regards,

Sweta

4 replies

Forum|alt.badge.img+9
  • Semi-Pro III
  • Answer
  • September 22, 2023

Hi @kevinheng21 ,

This can happen if you have extensions or customizations that use similar class names, and the compiler is unable to determine which one to use.

To resolve this ambiguity issue, you can specify the full namespace when referring to the 'BAccountExt' class in your code to indicate which one you want to use.

This should resolve the ambiguity issue and allow your customization to compile and publish successfully.

Could you please provide code and which usings are you using in code?  

Regards,

Sweta


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • September 22, 2023

@kevinheng21 This issue will be resolved by changing the namespaces.

If you are still not able to resolve this, just share the customization package.


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • September 22, 2023

Hi @kevinheng21 ,

This can happen if you have extensions or customizations that use similar class names, and the compiler is unable to determine which one to use.

To resolve this ambiguity issue, you can specify the full namespace when referring to the 'BAccountExt' class in your code to indicate which one you want to use.

This should resolve the ambiguity issue and allow your customization to compile and publish successfully.

Could you please provide code and which usings are you using in code?  

Regards,

Sweta

thank solved it


darylbowman
Captain II
Forum|alt.badge.img+15

@kevinheng21 - Could you mark a best answer?

Additionally, this happens to me a lot lately when I'm pasting in code in Visual Studio, as it attempts to solve the namespaces required and often gets them wrong.

 

This can be turned off in VS Preferences