Skip to main content
Answer

My Cart SP700001 Graph Extension error - The type or namespace name 'Objects' does not exist in the namespace 'SP.Objects.SP'

  • May 29, 2025
  • 2 replies
  • 46 views

Hi Guys,

I am trying to hide specific grid columns on the My Cart (SP700001) screen for portal users. To achieve this, I attempted to implement the logic within a graph extension for InventoryCardMaint.

However, after adding the graph extension under the Code section of the Customization Project Editor and publishing with the default generated code, I encountered a compilation error. I’ve included the error details below for reference.

Could someone please advise on the correct approach to handle this?

This is on my local portal instance running version 2023.118.500.8456.

Graph Extension code:

using PX.Data;
using PX.Data.BQL;
using PX.Data.BQL.Fluent;
using SP.Objects.IN;

namespace SP.Objects.IN {
public class InventoryCardMaint_Extension : PXGraphExtension<SP.Objects.IN.InventoryCardMaint> {
#region Event Handlers

#endregion
}
}

Error:

[2025-05-29 02:38:28.829] Compiled projects: MyCart
[2025-05-29 02:38:28.829] Validation started.
[2025-05-29 02:38:28.832] Copying the website C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite
[2025-05-29 02:38:28.834] Patching the file C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite\APP_CODE\Caches\InventoryCardMaint.cs
[2025-05-29 02:38:30.132] Done
[2025-05-29 02:38:30.132] Validating Binary Files
[2025-05-29 02:38:30.133] Validating Sql Scripts
[2025-05-29 02:38:30.188] Validating the website C:\MYOB Advanced\Customization\MYOB_2023_118_500_84561_PORTAL\MYOB_2023_118_500_84561_PORTALValidation\MYOB_2023_118_500_84561_PORTALWebsite
[2025-05-29 02:38:30.188] IIS APPPOOL\MYOB_2023_118_500_8456_PORTAL
[2025-05-29 02:38:30.768] Building directory '\WebSiteValidationDomain\App_Code\'.
[2025-05-29 02:38:46.030] \App_Code\Caches\InventoryCardMaint.cs(33): error CS0234: The type or namespace name 'Objects' does not exist in the namespace 'SP.Objects.SP' (are you missing an assembly reference?)
[2025-05-29 02:38:46.031] \App_Code\Caches\InventoryCardMaint.cs(33): error CS0234: The type or namespace name 'Objects' does not exist in the namespace 'SP.Objects.SP' (are you missing an assembly reference?)
[2025-05-29 02:38:46.032] Compiler time, in seconds: 15.84449
[2025-05-29 02:38:46.033] Validation failed.

 

 Thanks!

Best answer by kalisetti

Hi ​@Django 

 

Thanks for getting back to me.

I actually haven’t written any custom code yet — the extension was auto-generated by Acumatica when I initiated a customization on the screen.

That said, the issue seems to have resolved itself once I changed the class reference from the fully qualified name PXGraphExtension<SP.Objects.IN.InventoryCardMaint> to just PXGraphExtension<InventoryCardMaint>.

2 replies

Forum|alt.badge.img+7
  • Captain II
  • May 29, 2025

I don’t know if MYOB has different conventions but as long as your using clauses are correct, your namespace can be anything. Usually mine are the same name as the customization project.

e.g.

namespace MyCustomProject
{

public class InventoryCardMaint_Extension :
PXGraphExtension<SP.Objects.IN.InventoryCardMaint>
{

}

}

  • Author
  • Freshman II
  • Answer
  • June 3, 2025

Hi ​@Django 

 

Thanks for getting back to me.

I actually haven’t written any custom code yet — the extension was auto-generated by Acumatica when I initiated a customization on the screen.

That said, the issue seems to have resolved itself once I changed the class reference from the fully qualified name PXGraphExtension<SP.Objects.IN.InventoryCardMaint> to just PXGraphExtension<InventoryCardMaint>.