Friday 30 October 2015

There was a problem adding data to Map

In summer we got raster files for a project and one colleague loaded the files into Map via FDO and worked with the files. Then the project was stopped and has been restarted only recently. But the files could not be added to Map anymore - we only received the message: 

"There was a problem adding data to Map"

Nothing seemed to have changed - we still have Map 2013, the raster files are the same. So why didn't it work anymore?

Autodesk support pointed me to the following KB article:

"AutoCAD Map 3D: Error: "There was a problem adding data to Map" when adding WMS or Rasterfiles"


Issue:

Connect to WMS or Raster files via FDO, the connection work but cannot add the layer to Autodesk® AutoCAD® Map 3D

Causes:

The issue could be related to permission, or lack of them.

Solution:

Open AutoCAD Options menu >Files tab and locate “Temporary External Reference File Location”. This revealed the path where program copies the remporary FDO files.
FDO needs full rights to this location C:\Users\<username>\appdata\local\temp\
Alternatively create folder with full permission at C:\TEMP and set “Temporary External Reference File Location” to that path. 


Funny though as my setting for "“Temporary External Reference File Location”" was already "C:\temp". But then I realised that we applied a new AutoCAD profile to all workstations couple of weeks ago and that the new profile probably has to do with the issue.

I created a new (empty) profile and added the images succesfully to Map. The setting for the Temporary External Reference File Location is now "C:\Users\<<>>\AppData\Local\Temp\" again. When I change it to C:\Temp I cannot add the files anymore.

Conclusion - it works for me but exactly the other way round as described in the KB arcticle. Anyway, as long as it works....

Map 2013, SP2

Edit:
ok, the difference is "full rights". As normal user I do not have full rights on c:\temp and I cannot change that myself. Whereas with C:\Users\<username>\appdata\local\temp\ I have full access. At least in our corporate environment.

Thursday 22 October 2015

Intersection with guest user


When performing an intersection in Map with a guest user you will receive an error message stating that a specific feature class could not be emptied due to insufficient privileges.

The table in question has been set up with Select, Insert, Update, Delete permissions in the guest user.

Autodesk support explained, that the table content is not deleted but the table is truncated. Therefore the Delete permission on the table is not sufficient.

The following workarounds have been proposed:

- perform intersection in Map-Admin accross whole area 
- perform intersection in data document

One other possibility is to grant "drop any table" to the guest user. But giving the guest user such as privilege might not be a good solution either.

Map 2013 SP2