mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • Calculations
  • Suppressing Calculation Error Messages
Back to Manual

Suppressing Calculation Error Messages

 

When a developer creates a calculation, m-Power automatically takes the syntax of this calculation and attempts to run it directly on the database. If the database returns an error message, m-Power notifies the developer of the specific database error, and the developer has the opportunity to update their calculation syntax and try again. The vast majority of the time, this is a desired behavior. After all, it gives the developer an opportunity to catch for his or her error during the build process rather than running to a run-time error message.

However, some customers have reported "false positive" error messages during the calculation creation process. Due to library list/schema issues, or certain database functions not existing on the development database server, m-Power stops  developers from proceeding with their calculation because of the error reported from the database. To alleviate this, m-Power can be configured to ignore certain SQL errors created within the build process.

Note: Error messages bypassed during the build process can cause run-time errors.

How to Suppress a Calculation Error Message

1. Create your calculation as you normally would. If the calculation errors, and you wish to ignore this message during the build process, simply note either the SQL error code or the SQL state code.

2. Next, add either the SQL error code or the SQL state code into the appropriate section of the mrc-ignore-errors.properties file located on your m-Power server. The file is located in the
\m-power\proddata\conf\mrc-ignore-errors.properties file.  Be sure to save.

3. Back in the m-Power interface, you should then be able to immediately save your calculation again. You will see the error message still displays an error message but now gives you the opportunity to bypass the error by clicking Accept a second time.

Note: Calculation overrides are configured globally. Once the SQL state or SQL error code have been entered, they will be in effect across all dictionaries within your environment.

Created: June 19, 2012 | Modified: June 12, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Email Retrieval Maintainer Getting Started Application Properties Bootstrap Templates Production Summaries Video Record Selections SQL Report Data Dictionary DB2 Performance Retrievals Maintainers Tomcat Graphs Bar Graphs Calculations Database m-Painter Java Prompt Screens mrc-Productivity Series App Properties External Objects Graphing Dropdowns Parameters Security Graph Properties Administration Popular Dates Advanced Reports RPG Form Validation Excel Build Process Admin Compiling Freemarker

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.