How to solve the error@“Field BPAADD(Alphanumeric) : mid$ Function not defined for the value given” when extracting the Excel export from the Purchasing Receipt Line Inquiry screens

By | May 29, 2024

Sage X3 is enterprise resource planning (ERP) product which help organization to manage all the operation of organization and database into a single software solution. Sage X3 contains list of modules like sales, purchase, inventory, project, financial and many more.

One of our clients is encountering an error “Field BPAADD(Alphanumeric) : mid$ Function not defined for the value given” when extracting the Excel export from the Purchasing Receipt Line Inquiry screens as shown in the screenshot below :

New Stuff: Receipt selection at purchase invoice screen with Provisional Freight charges

Fig01- Error on Receipt line inquiry screen while exporting the excel file
Fig01- Error on Receipt line inquiry screen while exporting the excel file

We have rectified the error and discovered that when the user opens a receipt line inquiry screen and fills in the necessary parameters to extract the output, the company name field contains junk characters. This discrepancy was not visible in the application, but upon further investigation, we found that it contained a trailing blank space in the application back-end server, as shown in the screenshot below :

Fig02- Receipt line inquiry screen
Fig02- Receipt line inquiry screen

We have solved this error by accessing the application backend server and removed the trailing blank space from the supplier name(A V POLYMERS ) using an update query in the BPSUPPLIER and BPARTNER tables corresponding to the supplier (S0000000001) selected by the user

We have successfully resolved the error encountered during the extraction of the Excel export from the Purchasing Receipt Line Inquiry screens

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, 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 has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business ManagerSage CRM Project ManagerSage CRM Resource PlannerSage CRM Contract ManagerSage CRM Event ManagerSage CRM Budget PlannerGmail IntegrationSage CRM Mobile Service SignatureSage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.