Cougar Mountain Software Support Productivity Tools
For Cougar Mountain Software Support's
Professional Version (V2012, V2011, V2010, V2009, V12-V6)

 

Reporting to the MAX including Point of Sale and Non-profit Versions Tech Tip

Question:
The CodeBasic Error Message -1 appears.

Answer:

Cause

When a call to a CodeBase function fails, CODE4.errorCode is set to a particular error code. These codes may be found in the 'Error Codes' Appendix of the Reference Guide. When the error code is set to a number less than 0, each subsequent CodeBase function will simply return a -1, without executing the function. This is done for safety purposes. This one occurs because CodeBase cannot return a valid error code because of some problem. This usually occurs when the file is corrupted or network permissions on a file are changed while the file is already open and in use by Reporting to the MAX including Point of Sale and Non-profit Versions.

Solution

  • Exit Reporting to the MAX including Point of Sale and Non-profit Versions
  • Restart the workstation.
  • Log back onto network. If the problem was permissions, you will get a different error message, because the file is no longer available.
  • If you get a CodeBase 200, repair or Restore from Backup.