Skip to main content
Solved

\App_RuntimeCode\APInvoiceRecognitionEntry.cs(50): error CS0122:

  • July 9, 2025
  • 1 reply
  • 33 views

Forum|alt.badge.img

Can anyone tell me why I get this same error message no matter what screen modification I’m trying to make? We upgraded to 25R1 a few weeks ago.

 

\App_RuntimeCode\APInvoiceRecognitionEntry.cs(50): error CS0122: 'APTranRecognizedInventoryItemAttribute' is inaccessible due to its protection level
 

 

I was at first trying to modify screen AP301110 Incoming Documents. That error seemed appropriate for where I was. I submitted a simple help request. But I later attempted to modify a different screen and got the same message. To test my hunch, I started a new project and loaded screen CL401000, Compliance Management. Without making a single modification, I tried to publish just that project alone. Up comes the same failed validation error. The Compliance Management screen has nothing in common with APTran or inventory. Why would I be getting that same error across all screens? 

Best answer by harutyungevorgyan

Hello ​@cgndm ,

In your Acumatica instance folder, navigate to App_RuntimeCode and open APInvoiceRecognitionEntry.cs. You’ll notice it references the APTranRecognizedInventoryItemAttribute attribute, whose protection level has likely changed from public in the previous version to protected or internal, etc. now—so it’s no longer accessible from that class.

A couple of things to note:

  1. Original Graph Misplaced
    APInvoiceRecognitionEntry is an original Acumatica graph and shouldn’t be located in App_RuntimeCode. It ended up there because someone either manually added the source file or published a package containing the raw code instead of a DLL.

  2. Quick Fix

    • Remove APInvoiceRecognitionEntry.cs from the App_RuntimeCode folder.

    • Rebuild your project—the error will disappear.

  3. Next Steps
    Once the immediate error is resolved, investigate who added that file into App_RuntimeCode and determine whether you still need to include it at all.

Let me know if you need any help tracking down the source of that misplaced file!

1 reply

harutyungevorgyan
Jr Varsity I
Forum|alt.badge.img+2

Hello ​@cgndm ,

In your Acumatica instance folder, navigate to App_RuntimeCode and open APInvoiceRecognitionEntry.cs. You’ll notice it references the APTranRecognizedInventoryItemAttribute attribute, whose protection level has likely changed from public in the previous version to protected or internal, etc. now—so it’s no longer accessible from that class.

A couple of things to note:

  1. Original Graph Misplaced
    APInvoiceRecognitionEntry is an original Acumatica graph and shouldn’t be located in App_RuntimeCode. It ended up there because someone either manually added the source file or published a package containing the raw code instead of a DLL.

  2. Quick Fix

    • Remove APInvoiceRecognitionEntry.cs from the App_RuntimeCode folder.

    • Rebuild your project—the error will disappear.

  3. Next Steps
    Once the immediate error is resolved, investigate who added that file into App_RuntimeCode and determine whether you still need to include it at all.

Let me know if you need any help tracking down the source of that misplaced file!