Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Get error INVALID_FLD_VALUE","message":"You have entered an Invalid Field Value 6 for the following
Get INVALID_FLD_VALUE with following code doing an Inventory transfer with suitescrip in a suitelet.
I have verified that the Internal Id of 6 is a valid location.
var inventoryTransfer = record.create({
type: record.Type.INVENTORY_TRANSFER,
isDynamic: true });
// Set main fields
try{
inventoryTransfer.setValue({
fieldId: 'location',
value: requestBody.curLoc // Transfer from location
});
} catch(e){
log.debug("45", e);
}
inventoryTransfer.setValue({
fieldId: 'transferlocation',
value: requestBody.desLoc // Transfer to location
});
// Add inventory item
inventoryTransfer.selectNewLine({
sublistId: 'inventory'
});
try{
inventoryTransfer.setCurrentSublistValue({
sublistId: 'inventory',
fieldId: 'item',
value: requestBody.item // Item ID
});
} catch(e){
log.debug("61", e);
}
inventoryTransfer.setCurrentSublistValue({
sublistId: 'inventory',
fieldId: 'adjustqtyby',
value: requestBody.qty // Quantity to transfer