Skip to main content
Answer

Adding a Data filed to a Shipping line

  • June 30, 2023
  • 3 replies
  • 77 views

We are trying to a a new data field to a shipping line to capture a unique product number other than serial number at time of shipment.  

We add to the grid, and receive this error when publishing.  Can anyone assist?  What do we need to look for to correct this error?

[2023-06-30 17:21:13.830] \App_RuntimeCode\PX_Objects_SO_SOShipLineSplit_extensions.cs(1): error CS0246: The type or namespace name 'Data' could not be found (are you missing a using directive or an assembly reference?)

Best answer by Naveen Boga

@Arlene  I think this is an issue with the namespaces that you added. You might need to below namespaces correctly, and other required namespaces and check once.

  1. using PX.Common;
  2. using PX.Data;

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • July 1, 2023

@Arlene Can you please the customization package here.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • July 6, 2023

@Arlene  I think this is an issue with the namespaces that you added. You might need to below namespaces correctly, and other required namespaces and check once.

  1. using PX.Common;
  2. using PX.Data;

Forum|alt.badge.img+9
  • Semi-Pro III
  • July 6, 2023

Hi @Arlene,

 

As mentioned by @Naveen Boga , you can resolve the issue by using namespaces. 

Additionally, make sure to check and confirm that the necessary assembly reference is included in your project. The 'Data' namespace is part of the Acumatica Framework, so ensure that the 'PX.Data' assembly is referenced correctly. You can do this by right-clicking on your project in the Solution Explorer, selecting "Add Reference," and then selecting the appropriate assembly.

 

Regards,

Sweta