Skip to main content
7-Bedrock
August 1, 2019
Question

Windchill REST API Response: "Changing the subject for an Affected Product is not allowed"

  • August 1, 2019
  • 1 reply
  • 1446 views

I am trying to write an http POST request to create a Windchill Nonconformance (which is an object that is part of an add-on Windchill Module for Windchill Quality Management).  I am using the OData servlet.  In response to my post, Windchill rest services send back this response:

 

{
"error": {
"code": null,
"message": "Changing the subject for an Affected Product is not allowed."
}
}

 

Does anyone know that this message means?

 

My html body is this:

{
"Name": "NC1701B",
"Description" : "upright",
"Context@odata.bind" : "Containers('OR:wt.inf.library.WTLibrary:4148327')",
"AffectedObjects": [
{
"ID": "OR:wt.part.WTPart:152929",
"Quantity": 25,
"UnitType": {
"Value": "EACH",
"Display": "Each"
}
}]
}

1 reply

10-Marble
June 19, 2020

Hello Scale,

did you ever succeed with this call?