Skip to main content
Question

new 26R1 error: A PXGraphExtension instance has been passed as a query parameter to the Select method

  • June 19, 2026
  • 2 replies
  • 10 views

Forum|alt.badge.img+2

After upgrading to 26R1, I’m now getting this new Exception (didn’t happen in 24R1):

"A PXGraphExtension instance has been passed as a query parameter to the Select method."

This happens on a Select using the POLine object:

 public class POMaintExtension : PXGraphExtension<POOrderEntry>
    {

        public SelectFrom<POLine>
              .Where<POLine.orderNbr.IsEqual<
             POOrder.orderNbr.FromCurrent>>
            .View POLineView;

        private void DeviceHubPrint()
        {
            foreach (object objPOL in POLineView.SelectMain(this)) //throw Exception

...

Question: did something change with POLine causing this new behavior?

2 replies

Samvel Petrosov
Jr Varsity III
Forum|alt.badge.img+9

Try replacing 
 

foreach (object objPOL in POLineView.SelectMain(this))

with

foreach (object objPOL in POLineView.SelectMain(this.Base))

there might be mulptiple .Base options like .Base1, .Base2 if this is an extension of graph with other extensions. You want to make sure that you are passing the one that actually is the PXGraph (POOrderEntry, SOOrderEntry, etc.) and not PXGraphExtension.


Forum|alt.badge.img+1
  • Semi-Pro III
  • June 19, 2026

try replacing with this 
POLineView.SelectMain(Base)