Error while Opening Customized Screen

By | February 20, 2023

As Sage 300 provides an SDK using which a developer can customize an existing OCX screen. This customize screen needs to be upgraded or downgraded as per the client requirement and environment they might ne using.

In this blog we will discuss about a solution for the error message while opening the customized screen (OCX) i.e. “Error code:5 Invalid procedure call or argument”. Sometimes when any standard Sage 300 ERP screen (OCX) is customized by any third-party developers, user might face the issues while opening the customized screen.

New Stuff :-Purchase Statistics.

In this blog we will take an example of a customized OE order Entry Screen and when user tries to open the customized screen the following error is shown. Refer the below screenshot for the error:

Image 1

Kindly refer to example scenario below:

In this case, we have done a customization in a higher version and for that version everything works properly, but as per client requirement we need to downgrade the same to the lower version. When we have downgraded the source i.e. views and screens to lower version and try to open an OE screen, we came across this scenario, and got this error due to which we are unable to open the screen.

The issue was strange as it was working for higher version and not working in the lower version. We thought of it might be a resolution issue as we need to resize screen at times of upgrade/ downgrade. Also need to set resizing for additional controls like labels/buttons/ text fields added as per customization requirement.

While checking the same concern we fond that the few buttons which are additionally present in higher version as a standard functionality are not present and supported in lower version.

Image 2

As you can see, in the screenshot above, From Sage 300 2022, PU1 there is are additional features to have Set Ship date and Set Location buttons available as a part of standard functionality. This feature is not available in v2021 and while downgrading the code for resizing these buttons was causing issue.

So please make sure, especially while downgrading source code, we need to check for references to the additional supportive functionality to be removed as that will definitely cause the issue.

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.