Skip to main content
Question

Index Error

  • June 1, 2026
  • 6 replies
  • 58 views

John Israel
Forum|alt.badge.img+1

We run GUIDEs every night around 1:00 AM.  On Sunday, one of our files, SODEL, suddenly had thousands of errors on an indexed field (SCHED.DT).  I doubt there were any changes to the file since Friday and we had no errors before.  I pulled up several of the noted records in the editor, went into up-arrow mode, but did not see any errors, control characters, etc. in the data.
In a copy of our LIVE account, called MIDNIGHT (a copy of LIVE created ad midnight), and type
cat GUIDE_XERROR.LIS | more
we see this:

This goes on and on, possibly for all 500K records.  The GUIDE_XERROR.LIS file is huge, over 22 megs.

From within UniData, if I type “SSELECT SODEL BY F4”, I get:

I get this for a bunch of records (maybe every record).  If I edit the SODELs, none have any escape characters, so what is this error trying to tell me?

This is followed by:

 

The keys to the SODEL all look correct.

I build a new file called SODEL.JRI and from the command line, copied all the records to this new file.  It has the same errors.

What is the error that suddenly happened, and how do I fix it?

 

JRI

6 replies

Jonathan Smith
Forum|alt.badge.img+4

It looks your support provider raised a call with us on this yesterday and looking at the ticket the solution to the \0 has been provided to you and according to the ticket guide_ndx no longer reports any errors. If it hasn’t then please let us know.


John Israel
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • June 3, 2026

Our support provider provided us (via you guys) the following command to try:

guide -U0 SODEL

That appears to have fixed the issue.

 

Thanks

JRI


Jonathan Smith
Forum|alt.badge.img+4

The guide -U0 would find all the records in the data file that contain char(0) … you can then edit the records and remove the offending char(0) . 


John Israel
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • June 3, 2026

That is strange.  My co-worker ran the guide -U0 last night and it reported no problems - nothing to fix.  He deleted all the indexes on the SODEL file then re-added them and rebuilt the indexes and now it works w/o errors.  Nothing we had not already tried.  We did not change anything in the file and now it works.

I guess you can close the ticket.  We can’t recreate the problem, and all looks good as of late last night (when my co-worker ran the guide, dropped and rebuilt the indexes.)

Thanks.

 

JRI


Jonathan Smith
Forum|alt.badge.img+4

If guide -U0 ran clear, then the char(0) was no longer in the data, so deleting the indexes and rebuilding them would have built them clear of any char(0)s, Once the char(0) is in index, a delete and rebuild is needed.


John Israel
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • June 3, 2026

That is what is confusing us.  We did not change/fix any data to remove the char(0).  So, why did it happen to thousands of records over the weekend, then suddenly it fixed them.

 

Go ahead and close the ticket.  The problem “fixed itself”.