FIX: Packing a Table Causes a "File Does Not Exist" Error

ID: Q121352

2.5x 2.60a MACINTOSH

The information in this article applies to:

SYMPTOMS

Packing a table that contains deleted records causes the following error message:

   File <name> does not exist.

This error message occurs when you are issuing a PACK command even though the table name is still listed on the status bar and the table also appears in the View window. Browsing the table causes an "Internal Consistency Error," which causes FoxPro to quit.

CAUSE

The folder that contains the table has a period at the end of its name.

RESOLUTION

Remove the period from the end of the folder name. For example, change the folder name so that it becomes "TEST", not "TEST."

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Macintosh.

MORE INFORMATION

Steps to Reproduce Problem

1. Create a folder on the Macintosh Desktop called "test" followed by a

   period ("test.").

2. In the Command window, type:

     CREATE TABLE ;
     "macintosh harddrive:desktop folder:test.:sample.dbf" (name c(20))

   NOTE: The path may vary depending on the hard disk drive name. You will
   also not be able to set the DEFAULT to the "TEST." folder. Doing so will
   generate an "Invalid Path or Filename" error message.

3. In the Command window, issue the following commands:

      APPEND BLANK
      DELETE
      PACK

   The "File Does Not Exist" error will occur after you issue the PACK
   command.

6. In the Command window, issue the following command:

     BROWSE

The "Internal Consistency Error" message will occur.

Additional reference words: FoxMac 2.50b 2.50c 2.60a fixlist3.00b VFoxMac buglist2.50b buglist2.50c buglist2.60a crash delete remove lost disappear terminate unexpectedly ice KBCategory: KBSubcategory:

Keywords          : kberrmsg
Version           : 2.5x 2.60a
Platform          : MACINTOSH
Solution Type     : kbfix

Last Reviewed: May 21, 1998