Skip to main content
Answer

Reference to type 'PXBqlTable' and 'IBqlTableSystemDataStorage' claims it is defined in 'PX.Data', but it could not be found    customization package

  • September 26, 2024
  • 4 replies
  • 215 views

Forum|alt.badge.img+2

I trying to create a new Action on the Appointment screen. when I add the following code it to the graph extension it gives following error messages. But i have add the dll references to the project.
Reference to type 'PXBqlTable' claims it is defined in 'PX.Data', but it could not be found   customization package

Reference to type 'IBqlTableSystemDataStorage' claims it is defined in 'PX.Data', but it could not be found   customization package

        public PXAction<FSAppointment> CreateMRN;
[PXProcessButton]
[PXUIField(DisplayName = "Assign", Enabled = false)]
protected virtual IEnumerable createMRN(PXAdapter adapter)
{
bool isMassProcess = adapter.MassProcess;

Base.Save.Press();

PXLongOperation.StartOperation(this, delegate ()
{

});

return null;
}

when I am investigating the issue, changed the DAC name to FSAppoinment to ARInvoice then it works.

I delete the PX.Data.dll from the bin and updated the website. but still unable to fix the issue

Best answer by PDharmasena10

Hi @aiwan  Thanks a lot for your time. I solved that problem by creating a new instance and publish the customization in it. then it works fine. And I removed the previous instance

4 replies

Forum|alt.badge.img+8
  • Captain II
  • September 26, 2024

Hi @PDharmasena10 

 

What version of acumatica are you working with?

 

In 2024R1, it was introduced that all DACs must be marked with PXBqlTable as well as IBqlTable.

e.g.

 

[PXCacheName(Messages.SORecords)]

public class SORecords : PXBqlTable, IBqlTable

{

//DAC Fields

}

 

Aleks


Forum|alt.badge.img+2
  • Author
  • Semi-Pro I
  • September 26, 2024

Hi @aiwan I’m using 23.212.0024 version


Forum|alt.badge.img+8
  • Captain II
  • September 26, 2024

@PDharmasena10 

 

Could you go into your Acumatica Configuration and show a screenshot of the tenants you have set up please.

Also, you should never delete PX.Data.dll from the bin folder. It contains a lot of very useful data.

I would start another local tenant if i were you.

 

Aleks


Forum|alt.badge.img+2
  • Author
  • Semi-Pro I
  • Answer
  • September 30, 2024

Hi @aiwan  Thanks a lot for your time. I solved that problem by creating a new instance and publish the customization in it. then it works fine. And I removed the previous instance