Remove/Add Index: Unknown Error AXX* (OpenInsight 32-bit Specific)
At 18 AUG 2010 05:47:32PM Robin Tinker wrote:
We removed the index on a file, which has been in use for about 20 years, as part of a System Maintenance.
When adding the index:
Unkown Error, AX*LIVE*1*$PUBLIC*~DBTABLE**!CUSTOMER,S1Removing the index and adding again produced the same error.
A new file was created and the records (Data and Dictionary) copied to the new file. Index was added to the new file but still the same error.
The Index field is also the Key field.
Index worked for a few days then caused problems when accessing records in the file or updating records.
The Index Rebuild option did not produce the same error.
Any suggestions?
At 19 AUG 2010 07:03AM Eric wrote:
You're holding your mouth wrong when you reindex. Try pursing your lips more, and tilting your head slightly sideways.
Or else stick to numbers and letters only in your data. The presence of nulls (see your example) and spaces and delimiters (char250+) and asterisks will lead to tears, eventually.
At 20 AUG 2010 11:08AM Jared Bratu wrote:
What version of OI are you using? Where does the error appear?
Prior to removing the index, when is the last time you rebuilt the indexes?
Eric's suggestion is plausible and one or more of your keys contain system delimiters. It would be worth doing a select/readnext on the table and checking each key for erroneous characters.
At 20 AUG 2010 12:01PM Eric wrote:
Another way is to write a symbolic which does the check for you, then returns a flag, then simply list the file by the flag
At 01 SEP 2010 07:18PM Robin Tinker wrote:
Thanks guys,
The problem was an unprintable character in one of the 40,000 keys.
Using the Symbolic to select non-numeric keys found it very quickly.
Deleting the corrupt key was not so easy but eventually deleted.