We want to add and update Item BOMs (Current Materials) in Cloud Suite Industrial using REST. We are using Current Operations (SLJobRoutes) form to add Work Center to Item and Current Materials (SLJobmatls) form to add Materials to Item. We are getting Error 470 in response. Following are the request payloads which I am using:
Request to Add Work Center "GS-Wor" to Item "GS-TEST-1001" using SLJobRoutes IDO:
POST https://<...removed...>/IDORequestService/MGRestService.svc/xml/SLJobRoutes/additem HTTP/1.1
<?xml version="1.0"?>
<IDOUpdateItem xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">http://www.infor.com">
<Action>Insert</Action>
<ItemId>PBT=[SLJobRoutes]</ItemId>
<ItemNo>0</ItemNo>
<Properties>
<UpdateProperty>
<IsNull>false</IsNull>
<Modified>true</Modified>
<Name>DerJobItem</Name>
<OriginalValue i:nil="true" />
<Value>GS-TEST-1001</Value>
</UpdateProperty>
<UpdateProperty>
<IsNull>false</IsNull>
<Modified>true</Modified>
<Name>Wc</Name>
<OriginalValue i:nil="true" />
<Value>GS-Wor</Value>
</UpdateProperty>
</Properties>
<UpdateLocking>Row</UpdateLocking>
</IDOUpdateItem>
Response Error:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<Message>Insert failed. The job entered cannot be null in jobroute_mst. INSERT rolled back.</Message>
<MessageCode>470</MessageCode>
<UpdatedItems/>
</root>
Request to Add BOM Material "GS-TEST-1005" to Item "GS-TEST-1001" using SLJobmatls IDO:
POST https://<...removed...>/IDORequestService/MGRestService.svc/xml/SLJobmatls/additem HTTP/1.1
<?xml version="1.0"?>
<IDOUpdateItem xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">http://www.infor.com">
<Action>Insert</Action>
<ItemId>PBT=[SLJobmatls]</ItemId>
<ItemNo>0</ItemNo>
<Properties>
<UpdateProperty>
<IsNull>false</IsNull>
<Modified>true</Modified>
<Name>ItmItem</Name>
<OriginalValue i:nil="true" />
<Value>GS-TEST-1001</Value>
</UpdateProperty>
<UpdateProperty>
<IsNull>false</IsNull>
<Modified>true</Modified>
<Name>OperNum</Name>
<OriginalValue i:nil="true" />
<Value>10</Value>
</UpdateProperty>
<UpdateProperty>
<IsNull>false</IsNull>
<Modified>true</Modified>
<Name>Item</Name>
<OriginalValue i:nil="true" />
<Value>GS-TEST-1005</Value>
</UpdateProperty>
</Properties>
<UpdateLocking>Row</UpdateLocking>
</IDOUpdateItem>
Response Error:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<Message>Insert failed. The job entered cannot be null in jobmatl_mst. INSERT rolled back.</Message>
<MessageCode>470</MessageCode>
<UpdatedItems/>
</root>
Any Help about how to fix these errors or to improve these requests?
Thank you in Advance!