How to solve webservice error: ”nextLong”

By | August 29, 2019

We may come across the “nextLong “error while invoking web service. One way to resolve the “nextLong” error is below.

In Version 11 and Version 12, created object based web service for saving the product .While trying to save new product we received nextLong error with Type 4. Refer. Fig., 1.1

Fig 1.1 nextLong error-while saving product through web service

Cause: If no field found or exceeds dimensional field:
If we try to send value for field, which is not available in screen causes nextLong Error. More precise if you try to pass values in dimensional field, in screen dimension specified as 5 and you try to pass 6 values to it then nextLong error will occur.

Example: Created Customized dimensional field XIVENCUST of 5, but trying to send 6 values to it. Refer Fig 1.2

Fig 1.2 Input XML for saving product through webservice.

Solution: Send values exact or less than dimension specified in the field.

Hope this works!!!!

About Us
Greytrix – a globally recognized Premier Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage X3 for Sage and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3 (Sage Enterprise Management). Currently we are Sage X3 Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage X3 to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information on Sage X3 Integration and Services, please contact us at We will be glad to assist you.