Salesforce

TABLE-SCAN fails with inactive index error 995

« Go Back

Information

 
TitleTABLE-SCAN fails with inactive index error 995
URL NameTABLE-SCAN-inactive-index-995
Article Number000163354
EnvironmentProduct: OpenEdge
Version: 11.5x, 11.6x, 11.7 to 11.7.5, 12 to 12.2x
OS: All supported platforms
Other: TABLE-SCAN
Question/Problem Description
TABLE-SCAN on a table in a Type II Area fails with Error 995 if the index is inactive 
When the index that the compiler would have normally picked in the FOR EACH statement is inactive, TABLE-SCAN fails with error 995 when the table is in a Type II Area.

 
Steps to Reproduce1. prodb sports sports

2. Connect to the sports db, and make the Order-num index in the Order table inactive.

3. Run the following query:

FOR EACH order TABLE-SCAN.
DISP order-num.
END.
Clarifying Information
The TABLE-SCAN Option is used in FOR EACH statements
When the TABLE-SCAN keyword is used, only the record block instead of both record and index blocks should be used.
TABLE-SCAN should return rows without using an index in Type II Areas.
TABLE-SCAN should only use the default index when the table is in a Type I Area, as this feature is limited to Type II objects only
Error MessageIndex <index-name> is inactive and cannot be referenced. (995)
Defect NumberDefect PSC00335789 / OCTA-3194
Enhancement Number
Cause
The AVM does an error check for inactive index before it checks for table-scan and type II area instead of ignoring the index check error when running TABLE-SCAN for records in a TYPE II area
Resolution
Upgrade to OpenEdge 11.7.6.0, OpenEdge 12.3

The TABLE-SCAN keyword when used with a database table stored in a Type II area will no longer throw an error when the index is disabled.
Workaround
Notes
Keyword Phrase
Last Modified Date11/20/2020 6:50 AM

Powered by