Discusiones
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.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Error de "TRANS_UNBALNCD" al crear una orden de venta mediante SuiteScript
Se aplica a
Producto: NetSuite 2025.1
Escenario
El fragmento de muestra que se muestra a continuación genera el error: TRANS_UNBALNCD. Código: ``` var salesRec = nlapiCreateRecord('salesorder'); salesRec.setFieldValue('entity', ""2432""); salesRec.selectNewLineItem('item'); salesRec.setCurrentLineItemValue('item', 'item', ""33485""); salesRec.setCurrentLineItemValue('item', 'quantity', ""1""); salesRec.setCurrentLineItemValue('item', 'rate', ""140""); salesRec.setCurrentLineItemValue('item', 'taxcode', ""5""); salesRec.setCurrentLineItemValue('item', 'amount', ""145""); salesRec.commitLineItem('item'); var recordId = nlapiSubmitRecord(salesRec, true, true);
Solución
Una posible causa del error es que la transacción no tiene información de envío. Para resolver el error:
- En el registro del cliente, agregue una dirección de envío predeterminada, o
- En el script, configure la información de envío del pedido de ventas (para muestras, consulte el artículo 39551 Direcciones de facturación y envío de scripts)
¡Hola, Bienvenido/a!
Para ver los detalles completos, inicia sesión.
¿No tienes una cuenta? ¡Haz clic aquí para comenzar!