Skip to main content

Hi,

I’m getting the following error after adding a field and controls to a screen. The fields is just a checkbox (boolean) with a checkbox ui control.

 

There is a control on another form that has the same name’ I didn’t expect it to cause an issue however now it doesn’t compile and gives the following error:

 

Building directory '\WebSiteValidationDomain\App_RuntimeCode\'.
\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(45): error CS0579: Duplicate 'PXDBBool' attribute
\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(46): error CS0579: Duplicate 'PXUIField' attribute
\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(45): error CS0579: Duplicate 'PXDBBool' attribute

 

Does anyone know how to resolve this issue? I’ve looked in the file specified and only see a single entry for the boolean field I added.

Hi @daronjones  Can you please share the customization package here.


I managed to find out the problem. It was this (inside the Data Access area of the customisation project:

[PXDBBool]
[PXUIField(DisplayName="Foo Bar")]
[PXDBBool]
[PXUIField(DisplayName="FooBar")]

Removing the duplicate fixed the problem:

[PXDBBool]
[PXUIField(DisplayName="Foo Bar")]

 


Okay @daronjones  Thanks for sharing the update


Thank you for sharing your solution with the community @daronjones !


Reply