Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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