Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
inventorytransfer with bin causes error
Hi,
i want to transfer vom loc A to loc B items, with binlocations.
But i'll getting an error: "Items you have requested in the record have been deleted since you retrieved the form" and i didn't know why.
var xrec = nlapiCreateRecord('inventorytransfer',{recordmode: 'dynamic'}); xrec.setFieldValue('subsidiary',2); xrec.setFieldValue('location',7); xrec.setFieldValue('transferlocation',5); xrec.setFieldValue('memo','interne Umbuchung'); xrec.selectNewLineItem('inventory'); xrec.setCurrentLineItemValue('inventory','item',174625); xrec.setCurrentLineItemValue('inventory','adjustqtyby',1); var subrecord = xrec.createCurrentLineItemSubrecord('inventory', 'inventorydetail'); subrecord.selectNewLineItem('inventoryassignment'); subrecord.setCurrentLineItemValue('inventoryassignment', 'issueinventorynumber',174625); subrecord.setCurrentLineItemValue('inventoryassignment', 'binnumber', 1845); subrecord.setCurrentLineItemValue('inventoryassignment', 'tobinnumber', 338); subrecord.setCurrentLineItemValue('inventoryassignment', 'quantity', 1); subrecord.commitLineItem('inventoryassignment'); subrecord.commit(); x.commitLineItem('inventory'); var id =nlapiSubmitRecord(xrec); 0