Avoid Blank Batches while Writing Import Routine

By | August 2, 2022

As we all know that in Sage 300, we can use SDK to import data into Sage 300. In this blog, we will be discussing about the blank batches, that are being created while importing the transactions into Sage 300. We have already developed abundance of import routines for our customers and have always followed this process to avoid the creation of blank batches.

New Stuff : Setup Departments in Sage 500

A blank batch is a batch where the batch is empty with 0 entries available in the batch. Normally, if we do not pre-validate the data that are being imported into Sage 300 then it may happen that the data is incorrect and because of which the blank batches get generated. Please refer below screenshot of the blank batches created.


Solution to the avoid empty batches

First wrap the whole batch create/update into a AccpacDBLink.TransactionBegin. Then processes all headers capturing any errors that sage300 throws. If there are no errors, then call TransactionCommit otherwise call TransactionRollback. 







About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged 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 competence.

Greytrix offers unique GUMU™ integrated solutions of  Sage 300 with Sage CRM, Salesforce(listed on Salesforce Appexchange), Dynamics 365 CRM and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services and integration services for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and for Sage 300c development services we offer, upgrades of older codes and screens to new web screens, latest integrations using Data and web services  to Sage business partners, end users and Sage PSG worldwide.

Greytrix offers 20+ addons for Sage 300 to enhance productivity such as GreyMatrixDocument AttachmentDocument NumberingAuto-Bank ReconciliationPurchase Approval SystemThree way PO matchingBill of Lading and VAT for Middle East. The GUMU™ integration for Dynamics 365 CRM – Sage ERP is listed on Microsoft Appsource with easy implementation package.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more details on Sage 300 and Sage 300c Services, please contact us at accpac@greytrix.com, We will like to hear from you.