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.
|
| |
| |
|