Getting IBA value on a Product Container when calling PTC.DataAdmin.ProductContainer
We just upgraded my environment from WC 12 to WC 13 and Thingworx Navigate from 9.3 to 9.7. We had some custom apps developed which do some number assignment. I am getting an error in some services and I think its because its not grabbing the instance based attribute we added to the Product Container. In my Windchill system, we have added an attribute called PID:

In Thingworx, there is a service that calls to get all the product container by PID which calls another service to get all the containers:
// result: JSON
var product = me.getProductContainers({
$filter: "PID eq '"+pid+"'" /* STRING */,
$select: undefined /* STRING */,
count: undefined /* BOOLEAN */
});
var result;
if (product.value[0]) {
result = product.value[0].ID;
}
Logs of another service show this:
Execution error in service script [GenerateNewDocumentNumbers] :: Your route exchange has failed. Service operation failed with status [ - The property 'PID', used in a query expression, is not defined in type 'PTC.DataAdmin.ProductContainer'.]

The resulting JSON elements show this (redacted)
"value": [
{
"LastModified": "2023-11-17T07:32:48-05:00",
"CreatedBy": "Antonio Villanueva",
"Description": "Program description",
"@odata.type": "#PTC.DataAdmin.ProductContainer",
"PrivateAccess": false,
"CreatedOn": "2004-06-30T09:35:30-04:00",
"ID": "OR:wt.pdmlink.PDMLinkProduct:922685",
"OrganizationID": {
"UniqueIdentifier": "XXXXX",
"CodingSystem": "CAGE Code"
},
"Name": "Program Name"
},
Noting there is no call out for the attributes which I assume why its complaining about PID not being found right?


