Knowledge Base - Technical Articles


Technical Article   Error:  Server object instance creation failed on all SOC machines

Article ID: 34171
Software:  ArcGIS Server 9.2, 9.3, 9.3.1, 10
Platforms:  Windows 2000, XP, 2003Server

Error Message

When attempting to publish an ArcMap Document (.mxd), the following error is displayed in ArcCatalog:

"Server object instance creation failed on all SOC machines.

Server Object instance creation failed on machine <machine name>. Cannot open file <path>\name.mxd.

The system cannot find the path specified.

Probable Cause: The file is inaccessible to ArcGIS Server Object Container account."

The error is written to the log, upon failure to publish the .mxd. When written to the log, the error is formatted like other log messages. For example:

<Msg time='2007-12-12T08:17:56' level='Error' code='10001' target='streetsnosoc.MapServer' machine='etobicoke' process='192' thread='3148'>Can not open file <path>\name.mxd. The system cannot find the path specified. Probable cause: The file is inaccessible to ArcGIS Server Object Container account.</Msg>
<Msg time='2007-12-12T08:17:56' level='Error' code='1042' target='streetsnosoc.MapServer' thread='340'>Server object instance creation failed on all SOC machines.</Msg>

Cause

This error occurs when the ArcGIS Server Object Container (SOC) account does not have access to the path where the .mxd resides.

Solution or Workaround

The ArcGIS SOC account needs to be given permission to the path where the .mxd resides, or the user needs to publish the .mxd using a Universal Naming Convention (UNC) pathname rather than through a mapped drive.

The easiest way to make the data available to all SOC machines is to use the operating system tools to share the directory in which the data is stored. Shared directories are commonly referred to with UNC paths, which contain the name of the server (for example, \\myServer\data). When using UNC paths to reference data, all SOC machines will look to the correct machine for the data.

If storing GIS resources in shared directories, remember that all data source paths within the resource must also use UNC paths or relative paths. For example, if a map document contains layers from three feature classes, the paths to those feature classes must be UNC paths or relative paths.

To establish a UNC path to an .mxd in ArcCatalog:
1. In ArcCatalog, click the 'Connect to Folder' button.
2. In the dialogue box at the top of the Connect to Folder window, enter the UNC path to the folder where the .mxd is stored (for example, \\myServer\data).
3. Click OK.
Using this new connection in ArcCatalog, browse to the .mxd to be published, right-click the file, and publish as usual.
Alternatively, enter the UNC path directly when adding a new service in ArcCatalog, by using the same convention. Instead of browsing to the .mxd location, simply type the full UNC path to the data. (for example, \\myserver\data\mymap.mxd).



Related Information


Created: 12/12/2007
Last Modified: 1/19/2011

Article Rating: (3)
If you would like to post a comment, please login

Comments

By AriAtEvari - 09/03/2012 10:50 PM

The article is incorrect or the solution didn’t work.

Symbology or feature template issue. The error is not useful. Seemed to point to a DB issue.

Rating:

By Anonymous - 01/27/2011 11:09 AM

I’d like to suggest some keywords to help find this article.

My problem was that ArcGIS Server was at version 9.3.1 and the map document had been created in ArcView 10. I used ArcMap's Save a Copy command to save it as a 9.3.1 document, FTP'd it over to the server, refreshed the service and it works fine now.

Rating:

By Anonymous - 03/02/2010 7:41 AM

The article needs to be updated.

The article does not address ALL the possible causes of getting the "cannot init from..." error, even though it says "This is caused by..", implying this is the ONLY reason you can get it. I have applied all the things suggested, and still get that error.

Rating: