In this blog, we will discuss about the solution of compile error “user-defined type not defined”. Sage 300 gives ability to modify any screens I.e. customize a standard screen functionality or adding a new functionality to the standard screen.
New Stuff: Document attachment for sage 300 Advanced & Standard edition released
When a developer adds a new functionality to an existing screen, it goes through a developer-testing phase where the new functionality is checked thoroughly whether it works fine and in a directed manner or not.
Sometimes, while testing the modified functionality we might face an issue, which says, “User-defined type not defined” and this error can stop our testing and delay the project, this need to be taken care and issue should be resolved. Refer below screen shot for your reference.
In order to resolve the issue we need to first understand the error reason, the warning message is self-explanatory by reading the warning message from the above screenshot we can say that the User-defined type is not defined.
Please follow below steps to resolve this issue.
- Go to menu tools->reference
- Check if there are any missing reference.
- If there are any missing references, add those references and re-compile the code again. This shall resolve the issue, but sometimes by adding those references also, the error continues, this is because we have used some functionality in the OCX but not added a required reference.
- Select the library “Microsoft Scripting Runtime”
- Click on the “OK” button and close the dialog.
- Now you can compile the code again and see the issue is resolved and no warning message appears.
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.com (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 sData 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 GreyMatrix, Document Attachment, Document Numbering, Auto-Bank Reconciliation, Purchase Approval System, Three way PO matching, Bill 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.