I have created a move transaction using moveentry in the manufacturing endpoint. The transaction is still open, I need to update the amount produced and update some of the attributes with additional information. When I send json through postman, I receive the response below.
The error states that “Line 2 of Move Transaction requires Attribute ADDLSCRP”, the attributes are being sent in the proper order.
Request:
{
"BatchNbr": {
"value": "MI000623"
},
"Details": t
{
"TransactionAttributes" : u
{
"rowNumber": 1,
"AttributeID": {
"value": "OPER2"
},
"Value" : {
"value" : "2"
}
},
{
"AttributeID": {
"value": "ADDLSCRP"
},
"Value" : {
"value" : "8"
}
},
{
"AttributeID": {
"value": "SAMPLES"
},
"Value" : {
"value" : "9"
}
},
{
"AttributeID": {
"value" : "OPER1"
},
"Value" : {
"value" : "1"
}
}
],
"LotSerialNbr": {
"value": "A46 01473"
},
"ProductionNbr": {
"value": "MI000520"
},
"Quantity" : {
"value": 1899
}
}
]
}
Response:
{
"id": "f0e9a50b-0fa1-ef11-842f-0aa4e80801fd",
"rowNumber": 1,
"note": {
"value": ""
},
"error": "Inserting 'Transaction Attributes' record raised at least one error. Please review the errors.",
"BatchNbr": {
"value": "MI000623"
},
"ControlQty": {
"value": 21899.00
},
"Date": {
"value": "2024-11-12T00:00:00+00:00"
},
"Description": {},
"Details": e
{
"id": "f3e9a50b-0fa1-ef11-842f-0aa4e80801fd",
"rowNumber": 1,
"note": null,
"ExpirationDate": {},
"GLBatchLineNbr": {},
"GLBatchNbr": {},
"INDocType": {},
"INLineNbr": {},
"INRefNbr": {},
"InventoryID": {
"value": "TXxxxxxxxxxx"
},
"LineNbr": {
"value": 1
},
"Location": {
"value": "AUDIT"
},
"LotSerialNbr": {
"value": "A46 01473"
},
"OperationNbr": {
"value": "0010"
},
"OrderType": {
"value": "MI"
},
"ProductionNbr": {
"value": "MI000520"
},
"QtyisScrap": {
"value": false
},
"QtyScrapped": {
"value": 0.000000
},
"Quantity": {
"value": 20000.000000
},
"ReasonCode": {},
"ReceiptNbr": {},
"ScrapAction": {
"value": "No Action"
},
"TranDescription": {},
"TransactionAttributes": i
{
"id": "f45a89f4-d56e-4544-8d49-17daae30bbb8",
"rowNumber": 1,
"note": null,
"Attribute": {
"value": "ADDLSCRP"
},
"AttributeID": {
"value": "ADDLSCRP"
},
"Description": {
"value": "Additional Scrap"
},
"ProdAttributeLineNbr": {
"value": 1
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 1
},
"Value": {
"value": "1"
},
"custom": {}
},
{
"id": "f6ec7085-936a-4e8c-919b-c93588222665",
"rowNumber": 2,
"note": null,
"Attribute": {
"value": "SAMPLES"
},
"AttributeID": {
"value": "SAMPLES"
},
"Description": {
"value": "Number of Samples"
},
"ProdAttributeLineNbr": {
"value": 2
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 1
},
"Value": {
"value": "1"
},
"custom": {}
},
{
"id": "6020acb7-b550-4698-b4c7-8f8a7bca2a3f",
"rowNumber": 3,
"note": null,
"Attribute": {
"value": "OPER1"
},
"AttributeID": {
"value": "OPER1"
},
"Description": {
"value": "Operator ID"
},
"ProdAttributeLineNbr": {
"value": 3
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 1
},
"Value": {
"value": "1"
},
"custom": {}
}
],
"UOM": {
"value": "EA"
},
"Warehouse": {
"value": "SOLON"
},
"custom": {},
"_links": {
"files:put": "/entity/MANUFACTURING/23.100.001/files/PX.Objects.AM.MoveEntry/transactions/f3e9a50b-0fa1-ef11-842f-0aa4e80801fd/{filename}"
}
},
{
"id": "877815ef-fba1-ef11-8430-0aa4e80801fd",
"rowNumber": 2,
"note": {
"value": ""
},
"ExpirationDate": {},
"GLBatchLineNbr": {},
"GLBatchNbr": {},
"INDocType": {},
"INLineNbr": {},
"INRefNbr": {},
"InventoryID": {
"value": "TXxxxxxxx"
},
"LineNbr": {
"value": 2
},
"Location": {
"value": "FLOOR"
},
"LotSerialNbr": {
"value": "A46 01473"
},
"OperationNbr": {
"value": "0010"
},
"OrderType": {
"value": "MI"
},
"ProductionNbr": {
"value": "MI000520"
},
"QtyisScrap": {
"value": false
},
"QtyScrapped": {
"value": 0.0
},
"Quantity": {
"value": 1899.0
},
"ReasonCode": {},
"ReceiptNbr": {},
"ScrapAction": {
"value": "No Action"
},
"TranDescription": {},
"TransactionAttributes": i
{
"id": "ec6b92f7-5d27-48f4-a04e-cf307cfe3004",
"rowNumber": 1,
"note": null,
"Attribute": {},
"AttributeID": {},
"Description": {},
"ProdAttributeLineNbr": {},
"Required": {},
"TranLineNbr": {
"value": 2
},
"Value": {
"value": "2"
},
"custom": {}
},
{
"id": "870aa976-75b3-412a-8ea9-272272654916",
"rowNumber": 2,
"note": null,
"Attribute": {},
"AttributeID": {},
"Description": {},
"ProdAttributeLineNbr": {},
"Required": {},
"TranLineNbr": {
"value": 2
},
"Value": {
"value": "8"
},
"custom": {}
},
{
"id": "530f62b9-0a91-4261-84f4-d0fed110b6c5",
"rowNumber": 3,
"note": null,
"Attribute": {},
"AttributeID": {},
"Description": {},
"ProdAttributeLineNbr": {},
"Required": {},
"TranLineNbr": {
"value": 2
},
"Value": {
"value": "9"
},
"custom": {}
},
{
"id": "63e4ca15-c634-4070-851a-a6bbd0d56905",
"rowNumber": 4,
"note": null,
"Attribute": {},
"AttributeID": {},
"Description": {},
"ProdAttributeLineNbr": {},
"Required": {},
"TranLineNbr": {
"value": 2
},
"Value": {
"value": "1"
},
"custom": {}
},
{
"id": "c8b52329-0835-4662-8890-e10eb681217b",
"rowNumber": 5,
"note": null,
"Attribute": {
"value": "ADDLSCRP"
},
"AttributeID": {
"value": "ADDLSCRP"
},
"Description": {
"value": "Additional Scrap"
},
"ProdAttributeLineNbr": {
"value": 1
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 2
},
"Value": {
"error": "Line 2 of Move Transaction requires Attribute ADDLSCRP"
},
"custom": {}
},
{
"id": "7bfff833-a164-4140-af48-8822c175127b",
"rowNumber": 6,
"note": null,
"Attribute": {
"value": "SAMPLES"
},
"AttributeID": {
"value": "SAMPLES"
},
"Description": {
"value": "Number of Samples"
},
"ProdAttributeLineNbr": {
"value": 2
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 2
},
"Value": {},
"custom": {}
},
{
"id": "cd2136f5-914a-439b-a8ca-84d80af13a9a",
"rowNumber": 7,
"note": null,
"Attribute": {
"value": "OPER1"
},
"AttributeID": {
"value": "OPER1"
},
"Description": {
"value": "Operator ID"
},
"ProdAttributeLineNbr": {
"value": 3
},
"Required": {
"value": true
},
"TranLineNbr": {
"value": 2
},
"Value": {},
"custom": {}
}
],
"UOM": {
"value": "EA"
},
"Warehouse": {
"value": "SOLON"
},
"custom": {},
"_links": {
"files:put": "/entity/MANUFACTURING/23.100.001/files/PX.Objects.AM.MoveEntry/transactions/877815ef-fba1-ef11-8430-0aa4e80801fd/{filename}"
}
}
],
"Hold": {
"value": false
},
"PostPeriod": {
"value": "112024"
},
"Status": {
"value": "Balanced"
},
"TotalQty": {
"value": 21899.00
},
"custom": {},
"_links": {
"self": "/entity/MANUFACTURING/23.100.001/MoveEntry/f0e9a50b-0fa1-ef11-842f-0aa4e80801fd",
"files:put": "/entity/MANUFACTURING/23.100.001/files/PX.Objects.AM.MoveEntry/batch/f0e9a50b-0fa1-ef11-842f-0aa4e80801fd/{filename}"
}
}