Laith,

This will be a problem with a renamed or missing field in a table. The
MapInfo Workspace is trying to set up labels on a field called "ID" which no
longer exists. (even though you may never have put any labels on).

MAKE BACKUPS OF ALL TABLES AND WORKSPACES BEFORE MODIFYING!!!!!

So, you have a few options:

1. Find the offending table which used to have the ID field and replace it
or rename it back to "ID". (WARNING this may have the same effect on other
workspaces created recently using the same table!)

2. Open the workspace IN A TEXT EDITOR and find where MapInfo is trying to
set up the labels. Parts of your workspace will look something like this:

Set Map
  Layer 1
    Display Global
    Global   Symbol (46,16711680,9)   
    Label Line Arrow Position Right Font ("Arial",0,7,0) Pen (1,2,0) 
      With ID
      Parallel On Auto Off Overlap Off Duplicates On Offset 2
      Visibility On
  Layer 2
    Display Graphic
    Label Line Arrow Position Right Font ("Arial",0,9,0) Pen (1,2,0) 
      With ROAD_NAME
      Parallel On Auto Off Overlap Off Duplicates On Offset 2
      Visibility On

What I usually do is just delete the 4 lines from 
  Label Line... 
     to 
   ...Visibility On.

If I had no labels in the workspace at all, I often delete EVERY occurance
of these label statements, otherwise you can search for the ones that say
"With ID" on the second line and just delete those.

3. You can do similar to above, but change the "With ID" to whatever the new
name of the column is (or any other column). 


Hope this helps.

Chris Perry
Systems Development CoOrdinator
Parks Victoria
Melbourne, Australia
Ph: 61 3 9816 6800
Fax: 61 3 9816 9876
[EMAIL PROTECTED]


-----Original Message-----
From: Laith Wark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 25 November 1999 18:28
To: MapInfo List Serve (E-mail)
Subject: MI workspace opening problems


Friends,

How can I get around workspace opening problems:

a) "Variable or Field ID not defined"
b) "invalid view layer"

I need this workspace to open now.

Thanks in advance.


========================================

        Laith Wark

        EDAW (Aust) P/L
        Design, Planning and 
        Environments Worldwide

        Level 4 Rowes Building
        235 Edward Street
        Brisbane 4000
        Australia

        Ph:  INT +61 (0)7 3229 6422
        Fx:  INT +61 (0)7 3229 6422

        Email:  [EMAIL PROTECTED]

========================================

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to