Crashing and errors with SHP-files / FDO class not found

Crashing and errors with SHP-files / FDO class not found

dbQEMGC
Contributor Contributor
1,831 Views
19 Replies
Message 1 of 20

Crashing and errors with SHP-files / FDO class not found

dbQEMGC
Contributor
Contributor

 

Shortly before completion of a project (styles are set, all layers are inserted, ...) the program now has problems to work with our SHP files and unfortunately crashes every time we try to fix the error.

 

Although no major changes have been made to the SHP files, there is an error "FDO class 'XXXX' was not found in schema FDO command could not be executed." And the hint that the SHX and the DFB are of different sizes and therefore a file error is present. When trying to update the connected data or disconnect to delete the connection, MAP 3D crashes directly (SYSTEM ERROR: Unhandled Access Violation Reading 0x0000 Exception at 4F10C67Eh).

QGIS can still work normally with the same data, so presumably it's not the data itself.
Even if the data is re-exported from QGIS, there is the same problem.

0 Likes
Accepted solutions (1)
1,832 Views
19 Replies
Replies (19)
Message 2 of 20

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

any chance to get the SHP dataset to test it on our side?

Also please start (inside AutoCAD Map 3D) command _ABOUT and show us a screenshot of this dialog so we know which version and update you are using.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 20

dbQEMGC
Contributor
Contributor

Thanks for the fast reply. The file upload doesnt work for me.

Here is a WeTransfer Link:
https://we.tl/t-68LFGjfQ5I

0 Likes
Message 4 of 20

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

thank you for file(s) and screenshot, that's where you should start: you have not installed any of the updates, not for AutoCAD, not for AutoCAD Map 3D. Please install the updates according to this screenshot:

 

AN_ 20230323_102333.png

 

If that does not help please let me know this, I'll look then into your files.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 20

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

I can open your SHP without any issues.

Also saving the DWG, closing and reopening works well. Seems it's more an issue with missing updates.

 

One tip: when you have got the SHP-dataset from someone else, please delete the IDX-file before loading the file (referencing the file) into AutoCAD Map 3D, the IDX has sometimes issues when used by different programs (finding incorrect DBF-records for the geometry).

 

Therefor I always delete the IDX-file first as Map 3D creates it then automatically in a way it can be used well.

 

- alfred -

(seeing the data .. we most probably could have communicated in German 😉 )

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 6 of 20

parkr4st
Advisor
Advisor

your data loaded into a blank map, set the coordinate sytstem, and displays ok. using M3D 2020.

Properties show the attributes items selected ok.

The data table  will not open, 

the .dbf file will open in excel and has 642 records.

Paradox and access will not open the data .dbf

shapechecker by andrew finds the file has matching number (642) of objects and data records.

saved as .sdf, data table will not open in M3d.

appears to be a problem with the data file.

did mapimport and selected all the objects,  found 642  

appears there are objects without data records.

arcmap loads the .shp, table will open with this message

messageArc.jpg

there are 642 items found.

The data is in need of fixing IMHO.

 

 

 

 

 

0 Likes
Message 7 of 20

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

>> saved as .sdf, data table will not open in M3d.

Can not agree with that, export to SDF, load the SDF into a new dwg, open attribute table ... all working well on my side.

 

I have not done the other tests.

 

But seeing:

  • column names with spaces
  • column names with language specific characters
  • column names with more than 10 chars (not valid according to original SHP-definition)

... all these should be avoided, but does work currently with my AutoCAD Map 3D 2023

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 8 of 20

ChicagoLooper
Mentor
Mentor

Hello @dbQEMGC 

Aurich, correct?

Did you assign the appropriate coordinate system to modelspace? You can use ETRS89.UTM-32N (EPSG 25832). Assigning a CS will give your dwg a projection so Bing Hybrid imagery can be turned on and used as a basemap.

 

<<MAPCSASSIGN command=>Enter 25832 in Search Box>>

 

Do what @Alfred.NESWADBA has suggested, delete the idx file, then try again.

 

The idx file written by ArcPro/ArcGIS is not readable by Map3D and the idx written by Map3D is not readable by ArcPro. a shapefile can have only one idx file. If an idx is needed, then each program will automatically write its own idx. The idx files are not interchangeable. 

 

Your shapefile can be opened in Map3D.

Map3DMap3D

 

 

Chicagolooper

EESignature

0 Likes
Message 9 of 20

dbQEMGC
Contributor
Contributor

Thanks for your help.

Aurich is correct.

I updated Autocad and Autocad Map 3D and deleted the IBX-files.

Unfortunately, this didn´t make a difference. The layers (I have only send you one of them) aren´t shown. There around 10 layers which dont work. They were imported as one folder.
When I open the project, numerous warnings appear (the same problems as mentioned before).
When I open the data conncetion tab, and click on "update" or "end connection" MAP 3D crashes again.

Everything worked perfectly for two days before. All layers were shown and their labels worked.
Then suddenly the problems occured.

If I right-click on the layer in the style-window, I can refresh the layer and it its shown in the correct style. But this does just work until I refresh another layer, then the other disappears.
I can delete them from the style overview, then I can cut the connection and delete them completely without crashing. The problems only appear in this one folder I connected. Other seperately imported SHP-files work.

If I could delete them and import them again and fastly add my style-appearances, everything would be fine. But the copying of styles is quiete difficlut IMO.

What does the sentence "FDO-class 'Layername' was not found in the sceme" mean?

The SHP-files are just used internally and spaces or fields longer then 10 digits never made any problems in qgis.



0 Likes
Message 10 of 20

ChicagoLooper
Mentor
Mentor

Hello @dbQEMGC 

  1. Are other users using the same shapefile and are they editing the geometry, e.g. lengthening, shortening, changing the vertices, etc, etc?
  2. Are you, or other users, renaming the layers in the MAP TASK PANE?

 

Map Task PaneMap Task Pane

 

<<It's hard to pinpoint why you're crashing without your actual shapefile. It would be great if you can upload it with screenshots showing how you apply 'styles' and what they're suppose to look like in modelspace. Without the actual shapefile and your intended styled results, the forum can only guess, not solve.>>

 

Regarding copying your styles. It doesn't have to be difficult. Once you've have applied the desired style, do this:

  1. Right-click the shapefile layer in the Map Task Pane=>Select Save Layer. 202.png
  2. Name and save the layer in your project folder. The extension will be .layer and your shapefile styles will be saved.
  3. To see how you can use the .layer file, Open a brand new, clean drawing=>Assign your coordinate system=>On the Map Task Pane click the DATA icon at top left =>Load Layer=>Browse to your Saved Layer=>Open  

203.png

 

 

Chicagolooper

EESignature

Message 11 of 20

ChicagoLooper
Mentor
Mentor

@dbQEMGC 

Would it be possible to upload a screenshot of the folder containing your shapefiles. It should look something like this:

 

301.PNG  

 

Chicagolooper

EESignature

0 Likes
Message 12 of 20

dbQEMGC
Contributor
Contributor

Editing shapefiles

"Are other users using the same shapefile and are they editing the geometry, e.g. lengthening, shortening, changing the vertices, etc, etc?
Are you, or other users, renaming the layers in the MAP TASK PANE?"

I am editing the shapefiles myself. I thought this should be possible without any problems. So the files are edited in QGIS when Autodesk is closed. Then I closed QGIS, opened Map 3D and refreshed the layer to update the shapefile.
This is they way I intended to use the Autocad . If the updating of shapefiles doesnt work, we would have to export the layers under a new name when they were edited in QGIS.

Layer saving:

Thanks for this advice.
So in my crashed project, I will save all imported layers as .layer files in my main project folder.
If im importing them to a new project, I can see that the lines and styles are imported and shown correctly. The same shapefiles will be linked. I will try this method to save the work and see if this leads to another crash or not.

Is it also possible to copy the style settings to a layer with a different name? I have tried the method autocad mentioned. This is saving the .layer files of both the old and the new layer and then opening both in notepad and copying a number of text rows. This works, but is quiet tortuous.

@ChicagoLooper 

111.PNG


I cut out the layername for reasons of confidentiality.
Basically it looks like in your folder. But I am missing the XML and SBN files.
The both layers at the bottom are the SHX and SHP files.


0 Likes
Message 13 of 20

ChicagoLooper
Mentor
Mentor

Hi @dbQEMGC 

<<…So the files are edited in QGIS…>>

  1. What kinds of edits in QGIS? Please be specific.
  2. What compels you to edit in QGIS and not Map3D? Is it possible to edit exclusively in M3D?
  3. If you want to rename a layer on the Display Manager of the Task Pane you can right-click the layer=>Rename. 

 

Chicagolooper

EESignature

0 Likes
Message 14 of 20

dbQEMGC
Contributor
Contributor

So in my crashed project, I will save all imported layers as .layer files in my main project folder.
If im importing them to a new project, I can see that the lines and styles are imported and shown correctly. The same shapefiles will be linked. I will try this method to save the work and see if this leads to another crash or not.

I tried this method now. I drag and dropped my 20 .layer-files in the new project. Everything was shown for a few seconds. Now there are the same problems as before.

When i move the cursor over the layers in the data panel the message "object lass not available" appears.


222.PNG

 

0 Likes
Message 15 of 20

dbQEMGC
Contributor
Contributor

The main work is adding objects, deleting objects, editing data of objects in the attribut table, changing geometry (cutting an object in two pieces), ...

I am new in Autocad Map 3D.
QGIS is working well for most of my work, but creating DXF or DWG data with acceptable labeling positioning for my kind of work does not work as I indented.
If Map 3D turns out to be better, I could of course focus on it.

But working on SHP-data with editing, adding objects, ... is an important part.
Until two days ago i was very happy with the performance of the program. But the current problems are annoying.



0 Likes
Message 16 of 20

ChicagoLooper
Mentor
Mentor

Based on the  description of your work, you can do all of that in Map3D. 

Your constant crashing is due to the revised data AFTER it has been edited in QGIS. 

And your image in post #15 indicates either

  1. your shapefile doesn’t have a prj file OR
  2. the prj is not being understood by Map3D. (You need to manually input the prj (projection file).

 

Chicagolooper

EESignature

0 Likes
Message 17 of 20

parkr4st
Advisor
Advisor

and after editing did you MAPCHECKINALL ?  That command saves all the edits to the FDO files.    

0 Likes
Message 18 of 20

dbQEMGC
Contributor
Contributor

So I deleted the layers from the style panel and loaded each .layer-file seperately in the style panel.
Now for the first time since 2 days I can see all layers as intended. I also used the mapcheckinall command.

But the FDO warnings do still appear. (EDIT: not sure about this. Could have been the older project files I had opened in the background)

Maybe for information to my object label settings:
They look more or less like this. Some are more complicated.
Concat ( 'XXX' , '\P', "layer field")

0 Likes
Message 19 of 20

dbQEMGC
Contributor
Contributor

Update:

On friday, the project worked. Now, the FDO warnings appear again and only a few layers are shown...

0 Likes
Message 20 of 20

dbQEMGC
Contributor
Contributor

@Alfred.NESWADBA wrote:

 

But seeing:

  • column names with spaces
  • column names with language specific characters
  • column names with more than 10 chars (not valid according to original SHP-definition)

... all these should be avoided, but does work currently with my AutoCAD Map 3D 2023

 

- alfred -


Thanks for this. I needed some time to redo all my layers and to test the results, but this solved my problem. Layer fieldnames with spaces or language specific characters were renamed and now everything is working without any problems. Thank you all for your help!