Skip to main content
Question

Instance property is not defined when trying to filter

  • May 17, 2024
  • 0 replies
  • 45 views

I’m attempting to use OData v4 to filter the PO collection based on the lines’ PromisedDate field: “$filter=POLineCollection/all(l: l/PromisedDate ne null)”

 However, I get an exception with this message:

“Instance property 'POLineCollection' is not defined for type 'PX.Objects.PO.POOrder'”.

What’s strange to me is that Acumatica definitely knows that POLineCollection exists; I can include it in a $select, and if I misuse the filter, such as “POLineCollection/all(l: l/PromisedDate eq 3)”, I get an “incompatible types” error.

Am I missing something here?