Skip to main content
Solved

Cannot be cast to error on report designer form

  • November 19, 2024
  • 2 replies
  • 46 views

Forum|alt.badge.img

Hello - We have a custom AR Invoice form which includes some custom fields created using a customization project. I just added some additional custom fields to this project but with the no coding method and now the previous fields are showing up on the report with an error. At first view, it produces results fine but then when I refresh the errors appear. Is there something I need to change on the customization?

Here is the full error message:

[A]PX.Objects.AR.CCMBSMM_ARRegisterExt cannot be cast to [B]PX.Objects.AR.CCMBSMM_ARRegisterExt.

Type A originates from 'gvuedunh, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' in a byte array.

Type B originates from 'titsnhbc, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' in a byte array.

 

Best answer by Nilkanth Dipak

Hi ​@ashleyb,

Did you name your custom fields the same as standard fields? If so, please rename those fields with the prefix Usr to ensure they are easily categorized as custom fields and to avoid duplicate names.

Have you used this custom DAC in your report? Please verify the field declarations in the report and ensure that you are providing the correct field references.

Additionally, try resetting caches from the Apply Updates screen and restart IIS to clear any cached data that might be causing conflicts.
Hope, it helps!

View original
Did this topic help you find an answer to your question?

2 replies

Nilkanth Dipak
Semi-Pro I
Forum|alt.badge.img+10
  • Semi-Pro I
  • 406 replies
  • Answer
  • November 19, 2024

Hi ​@ashleyb,

Did you name your custom fields the same as standard fields? If so, please rename those fields with the prefix Usr to ensure they are easily categorized as custom fields and to avoid duplicate names.

Have you used this custom DAC in your report? Please verify the field declarations in the report and ensure that you are providing the correct field references.

Additionally, try resetting caches from the Apply Updates screen and restart IIS to clear any cached data that might be causing conflicts.
Hope, it helps!


Forum|alt.badge.img
  • Author
  • Varsity I
  • 47 replies
  • November 21, 2024

Turns out I just needed to restart the application! Thank you for your help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings