Quantcast
Channel: Forums - ArcGIS for Server - General
Viewing all 1297 articles
Browse latest View live

ArcGIS Server services: SOAP URL

$
0
0
I am working on a ArcGIS Server now. I referred http://resources.arcgis.com/en/help/...0000063000000/, the approach: Finding the URL to a geoprocessing service. I observed that all of the REST URL's work fine but all of the SOAP URL's get Error 400.
Why I could not get the SOAP services? What parameter(s) should be setup for SOAP URL's in additional to the REST ones? Thanks if you can provide your experience.

Publishing Geoprocessing Service Not working

$
0
0
1) Create a Python script and load it as a tool in \myGDB.gdb\ToolBox\myScriptTool. This tool will be used to process some tables and feature classes in the \myGDB.gdb\.
2) Execute the myScriptTool successfully using AcrCatalog and get the 'Succeeded' message in the Result Window.
3) In the Result Window, right-click the \Current Session\myScriptTool and then click Share as Geoprocessing Service.
4) Publish the tool as a service.
5) In the Catalog tree, open the published geoprocessing tool in \GIS Servers\myServer\...\. The tool pops out but its interface is very different from the one in Step 2). Some information is not there - e.g. Description of the tool is empty.
It appears to be that I did something incorrect. Of course, the tool does not work. I wish someone can share his/her experience for publishing geoprocessing too. Thanks.

Recreating Map service that is cached after the source mxd is updated

$
0
0
Is it necessary to delete and recreate a map service that is cached if you make changes to the source MXD file? This is for ArcGIS for Server 10.1

Thanks!

Create a Service from a KML

$
0
0
Hi everyone,

I'm having problems figuring out how to make this. I've got a dynamic KML which is fed every 5 minutes with positions from our vessels offshore and is part of another internal application.
I would like to be able to also publish that on my website through ArcGIS Server but so far all I managed to do was to convert the KML into a Layer and then make a service using that. The problem is that this layer then becomes static and I need everything to be dynamic.
Any suggestions?

Export Web Map JSON

$
0
0
Hi all,

I've been trying to use the Export Web Map Tool in ArcToolbox to export one of my local ArcGIS Server maps to PDF.

Every time I keep getting the error 'Invalid JSON in WebMap'

Rather handily, ESRI do not actually say where the JSON is for local maps, but just keep referring to what a generic specification should look like, which to anyone who is a webmap novice is about as handy as a hot poker up the rear.

So does anybody know where exactly the JSON is for a map created with ArcGIS Server?

The location I tried was:
http://<server name>/arcgis/rest/services/MyMap/MapServer?f=pjson

And I have also tried every other JSON link I could find whilst browsing around, but with no luck.

Any help appreciated in what should probably be a simple task.

After Upgrading to 10.2, unable to start services

$
0
0
Hello,
I've recently upgraded my ArcGIS 10.1 Server (which worked without problems) to 10.2. After solving the installation error 1935 ( http://support.esri.com/en/knowledge...s/detail/37477) the installation of 10.2 was successful. Logging in to ArcGIs Server Manager -> No problem.
But I can't start my existing services. The status of all services is "Shutting dows" (sorry...I don't know the exact term, because I use a German version).
By clicking on the stop button, I can stop the service.
By clicking on the play button, there is just the progress bar for a long time and then the error message: Server machine '<<<servername>>>' is currently being configured by another administrative operation. Please try again later.'

The protocol gives me the following messages. Here are just the relevant ones. Seems like, the server doesn't find the services + a wrong configuration.

Message: Failed to stop one or more services: [DGK5_MS.MapServer]. Could not undeploy services from one or more machines. 'Server machine '<<<servername>>>' is currently being configured by another administrative operation. Please try again later.'. Source: Admin Code: 6572


Message: Failed to start the server machine '<<<servername>>>'. Could not start application server within stipulated time. Source: Admin Code: 6550


Message: Service 'DGK5_MS.MapServer' not found. Check if the service exists and is started. Source: Soap Code:9503


Would be nice, to get some suggestions.
Thanks!

Uploading SD file using Python "sometimes" causes errors

$
0
0
My organization is using a Python toolbox to upload two SD files every two hours. Most of the time we have no issues, but sometimes the upload has a problem. I've added a loop in the script to attemp the upload again and most of the time it will upload the second time. Here are the errors from the Server Logs:
SEVERE -- Failed to rename cache folder. *This happen every time I upload but does not seem to effect the upload

Two below occur at the same instance (I assume they are the same problem)
SEVERE -- Error executing tool.: ERROR 001360: Failed to get basic item metadata for service definition upload. Failed to execute (Publish Service Definition). *This is critical. When I get this error the upload does not work

SEVERE -- Failed to get basic item metadata for service definition upload.: ERROR: code:404, Could not find resource or operation 'ie2c45393-1528-4e03-a9ba-3a28f6ad754b' on the system., No resource could be found at that address. *Same as 1360

The upload routine of my script:

def ServerUpload(serviceName, newDesc, summary, tags):


# Current map document
try:
mapdoc = arcpy.mapping.MapDocument("CURRENT")
mapdocbase = os.path.basename(mapdoc.filePath)
mxdpath = os.path.dirname(mapdoc.filePath)
except:
arcpy.AddMessage('PROGRAM STOPPED ---NO CURRENT MXD IDENTIFIED ---Must run this tool within a (named) MXD')
sys.exit(0)

# Service name HARD CODED
sddraftFile = mxdpath + "\\" + serviceName + ".sddraft"

# Create connection file
con_name = ("SerConTEMP_" + serviceName + ".ags")
con = mxdpath + "\\" + con_name

loopNum = 0
while loopNum < 3:

if os.path.exists(con):
try:
os.remove(con)
except:
arcpy.AddMessage("PROGRAM STOPPED ---Could not delete server connect file")
sys.exit(0)

try:
use_arcgis_desktop_staging_folder = False
arcpy.mapping.CreateGISServerConnectionFile("PUBLISH_GIS_SERVICES",
mxdpath,
con_name,
server_url,
"ARCGIS_SERVER",
use_arcgis_desktop_staging_folder,
mxdpath,
LoginName,
PassWord,
"SAVE_USERNAME")
sleep(10)
except:
arcpy.AddMessage('PROGRAM STOPPED ---COULD NOT CREATE SERVER CONNECT FILE ---Server url, login, or password may be incorrect')
sys.exit(0)


if os.path.exists(sddraftFile):
try:
os.remove(sddraftFile)
except:
arcpy.AddMessage('PROGRAM STOPPED ---NOT ABLE TO DELETE SDDRAFTFILE FILE ---File may be locked')
sys.exit(0)

try:
analysis = arcpy.mapping.CreateMapSDDraft(mapdoc, sddraftFile, serviceName, 'ARCGIS_SERVER', con, True, "TIMS", summary, tags)
#analysis = arcpy.mapping.CreateMapSDDraft(mapdoc, sddraftFile, serviceName, 'ARCGIS_SERVER', con, True, None, summary, tags)

except:
arcpy.AddMessage('PROGRAM STOPPED ---NOT ABLE TO CREATE SDDRAFTFILE FILE ---File variables may be incorrect')

# Read and update the sddraft xml
xml = sddraftFile
doc = DOM.parse(xml)

# Update the description
try:
descriptions = doc.getElementsByTagName('Description')
for desc in descriptions:
if desc.parentNode.tagName == 'ItemInfo':
if desc.hasChildNodes():
desc.firstChild.data = newDesc
except:
arcpy.AddMessage('NOT ABLE TO UPDATE DESCRIPTION IN SDDRAFT FILE ---File may be locked')

# Update KML.
try:
soe = 'KmlServer'
typeNames = doc.getElementsByTagName('TypeName')
for typeName in typeNames:
# Get the TypeName we want to disable.
if typeName.firstChild.data == soe:
extension = typeName.parentNode
for extElement in extension.childNodes:
# Disabled SOE.
if extElement.tagName == 'Enabled':
extElement.firstChild.data = 'false'
except:
arcpy.AddMessage('NOT ABLE TO UPDATE KML IN SDDRAFT FILE ---File may be locked')

try:
outXml = xml
f = open(outXml, 'w')
doc.writexml( f )
f.close()
except:
arcpy.AddMessage('NOT ABLE TO WRITE SDDRAFT XML ---File may be locked')

#********************************************************************************************
#Analyze the service definition draft
analysisSddraft = arcpy.mapping.AnalyzeForSD(sddraftFile)

# Print errors, warnings, and messages returned from the analysis
arcpy.AddMessage("The following information was returned during analysis of the MXD:")
for key in ('messages', 'warnings', 'errors'):
arcpy.AddMessage('----' + key.upper() + '---')
vars = analysisSddraft[key]
for ((message, code), layerlist) in vars.iteritems():
arcpy.AddMessage(' ' + message + ' (CODE %i)' % code)
arcpy.AddMessage(' applies to: ')
for layer in layerlist:
arcpy.AddMessage(layer.name)
arcpy.AddMessage("")


# Service definition variables
sdFile = mxdpath + "\\" + serviceName + ".sd"

if os.path.exists(sdFile):
try:
os.remove(sdFile)
except:
arcpy.AddMessage('PROGRAM STOPPED ---NOT ABLE TO DELETE ORIGINAL SD FILE ---File may be locked')
sys.exit(0)

try:
arcpy.StageService_server(sddraftFile, sdFile)
sleep(5)
except:
arcpy.AddMessage('PROGRAM STOPPED ---NOT ABLE TO CREATE SD FILE FROM SDDRAFT FILE ---SDDRAFT file may be corrupt')
sys.exit(0)

try:
arcpy.UploadServiceDefinition_server(sdFile, con)
loopNum = 3

except:
if loopNum < 2:
loopNum = loopNum + 1
arcpy.AddMessage("Program failed to upload SD file. Attempting to upload again [" + str(loopNum) + "]")
else:
arcpy.AddMessage('PROGRAM STOPPED ---NOT ABLE TO UPLOAD SD FILE TO the server ---Server may be experiencing problems')
arcpy.AddMessage('PLEASE RE-RUN THE TOOL. Close MXD, re-open MXD, and re-run tool')
sys.exit(0)

if os.path.exists(sdFile):
try:
os.remove(sdFile)
except:
arcpy.AddMessage('NOT ABLE TO DELETE SD FILE ---File may be locked')

if os.path.exists(con):
try:
os.remove(con)
except:
arcpy.AddMessage("PROGRAM STOPPED ---Could not delete server connect file")
sys.exit(0)

arcpy.AddMessage('UPLOAD TO SERVER SUCCESSFUL at ' + unicode((datetime.datetime.now()).replace(microsecond=0)))
AddLog('PROGRAM SUCCESSFUL UPDATED, NCDOT SERVICE: ' + serviceName, False)

ERROR 404

$
0
0
We recently installed ArcGIS Server 10.1. It was running fine, we could acces manager and the rest services. However out of the blue we began to recieve HTTP Error 404.0 not found when attempting to access manager or the rest directory. This occurs remotely and while logged into the server. I assumed it was the port 6080, however we have a specific rule for that and its working for other sites. I've checked .net and its running at 4.0, i've also re-installed server twice and it still is giving me the same 404 error.
Has anyone encounted a similar error and if so do you have any steps that I didnt mention above?

Also, we are running Windows server 2008 R2.

Date formatting used with identify results

$
0
0
Hi all,

I have a map service that is currently setup on two different ArcGIS 10.1 SP1 Server machines. The map contains layers that have editor tracking fields including created_date and last_edited_date fields. When an identify is performed on the map service all of the attributes get formatted and/or replaced with coded value domains (is there a way for Identify tasks to return unformatted attributes?). In the case of the date fields, we get values the following from the first machine:

Code:

created_date: "4/16/2013 5:58:54 PM"
You can deduce from that value that the date is being formatted as MM/dd/yyyy. As far as I can tell, that is the default format (from looking at various discussions elsewhere).

However...on the second machine, this date comes back like so:

Code:

created_date: "16/04/2013 5:58:54 PM"
In that case, the date format is now arranged as 'dd/MM/yyyy'.

This is problematic, both for display, and for parsing the date string for other purposes in an application. Is there a way to control the date format that is used by the service in ArcGIS Server? If not, is there any other way for the application using the service to determine what format is being used?

So far, I haven't been able to identify where along the line this gets set. I've tried changing the Windows/OS Locale configuration. I don't see anything that affects this when publishing the service from ArcMap. There don't seem to be any obvious settings I can configure in ArcGIS Server (I have looked through the Manager web interface and the Admin REST API). There also don't seem to be parameters that can be submitted by the application to the MapService Identify task.

Can anyone suggest what I'm missing?

ArcGIS Server 10.2: Is only the user-role-type restrict to a specific service?

$
0
0
This is perhaps semantics, but maybe I am not using the roles correctly.

There are 3 role types, but only the “user” role type can be used to provide read privileges to private service.

3 user role types can be assigned to a specific service:
Group-A -> Service-A
Group-B -> Service-B
Group-C -> Service-C

users in Group-A cannot use Service-B or Service-C

But publisher and administrator role types provide access to all services and can give access to anyone.


Publisher types assigned to a specific Service:
Pub-A -> Service-A
Pub-B -> Service-B

Administrator types assigned to specific service:
Adm-A -> Service-A
Adm-B -> Service-B

Is there any benefit to having more than one publishing or administrator group?

Issue after issue

$
0
0
Hi all,

I have been trying to get a locally published map and geoprocessing service up and running with ArcGIS Server 10.1 using the JavaScript API, but it's like treading through treacle with the amount of useless info the Help documentation gives.

I've been able to do this with previous versions using ArcGIS Server manager, whether it was adding a model to ArcMap as a layer, or by using the Web ADF in Visual Studio to do some very complicated tasks. However these seem to be getting dropped and I don't want to rely on older methods so I have turned to JavaScript. I'm not a novice programmer, though I am more Desktop based. However everything I have tried so far has failed, making me feel like I have taken a five year step back in my career. The ESRI courses/samples have beautifully constructed help that works fine on the course or by using online resources, but seem meaningless for your local settings.

Is there a better place to find Help that refer to 10.1, rather than referring to removed functionality/incompatibility. (Why can't ESRI make something that works and keep it the same? The Desktop functionality seems to have been the same for eons now.)

So far I have been using a simple text editor to create a web page and managed to get a map showing with JavaScript, but as for getting geoprocessing task, no joy. I have the code executing but get a generic Object Error message each time. So I have no idea if it is my code, or an incorrect parameter (how do you set an output location for a tool?) or something else. Is there a better way to debug?

If anyone is still reading/awake after reading my essay, any help would be appreciated.

Some Geoprossing tool's parameters filtered out

$
0
0
I created a Geoprocessing tool using ModelBuilder against a geodatabase. In the ModelBuilder tool, I setup several parameters, including the Workspace (Geodatabase), input tables and feature class, and output table and feature class. I published the results as a Geoprocessing tool in ArcGIS Server. It runs well but some of the parameters (Workspace, Output table and class) are not displayed. How can I revise the tool to let the filtered parameters displayable? Thanks if you can help.

GP works in ArcCatalog, but not as a GP service

$
0
0
I'm in Server 10.1 SP1, the same tool works well in Server 9.3.1 SP1, works well in 10.1 desktop. Just doesn't work in 10.1 Server. Anyone knows why? TIA

10.2 - Accessing ArcGIS Server Manager

$
0
0
I am running a multiple machine setup and haved recently upgraded to 10.2. After a reboot of one of my machines last night I can no longer access ArcGIS Server Manager (http://server:6080/arcgis/manager) on that machine. The other machines are accessible through that link.

This is the error message I now get:

Attachment 26617

Has anyone seen this message when trying to access ArcGIS Server Manager?
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG‎
Views:	N/A
Size:	16.4 KB
ID:	26617  

ESRI.ArcGIS.ADF.Web.Geometry.Polyline to ESRI.ArcGIS.IGeometry.Polyline server10.1

$
0
0
I have one polyline of ESRI.ArcGIS.ADF.Web.Geometry.Polyline

I want to convert that into ESRI.ArcGIS.IGeometry.Polyline In Arcgis server 10.1 with out ServerContext

How can i do that any help would be highly appreciate

Please...
Very Urgent


Thanks

Cannot deny Windows domain group permission to access service!

$
0
0
Using Windows Domain for user and role store, I have added two ACL's to the security setting in ArcGIS manager containing two groups of users whom can access the service (one of the ACL's contains the ArcGIS "Administrators"). The services is pulling from SDE sitting on SQL 2008 R2, which is also using Windows ACL's to control access. There are only about 20 users between the two ACL's. All is 10.1 SP1.

One I publish the service (with no errors or warnings), ANY user in my organization can access the service! What gives here? I checked "Private, available only to selected users" and added the two windows domain groups. Users NOT in the 2 groups cannot access the data through SQL (where the permissions are working correctly), but they can access the feature service and its related map service.

Method failed.HRESULT = 0x80004005 : Unspecified error .

$
0
0
I got this error from System/PublishingTools.GPServer, when I try to publish a script that reads a .SDE connection. Does it suggest a permission error? The sde connection connects as a sql server database user.

ArcGIS 10.2 for Server - First thoughts and impressions

$
0
0
Hi Everyone,

I'm curious to the communities current opinions of ArcGIS 10.2 for Server. Has anyone seen any improvements over 10.1 that would make it worth upgrading to?

Cheers,

Brett

does arcgis for server capture http errors? i.e. error code 400, bad request

$
0
0
does arcgis for server capture http errors? i.e. error code 400, bad request .

where is the log file?

Headaches with Server

$
0
0
I've been working with a partner to get a geoprocessing service copied over to a new ArcGIS server. Runs fine on our development machine, and they can run it as a geoprocessing service through ArcMap. However, they cannot seem to get the service to run for a webpage written with the Javascript API -- the server log shows an error that the probable cause is that "the file is inaccessible to Server".

A few other points:
  • The actual files for the results have in fact been created by the geoprocessing service, even though they cannot be read... we checked the file paths specifically referenced in the error message in the logs.
  • We have been developing this with EDN on a single machine, while they have been working with a VM with a separate share for working files -- the arcgisjobs directory is specified as a UNC address on their machine.
  • Permissions have been checked -- the ArcGIS Server user has access to the arcgisjobs directory in question.
  • They have the Spatial Analyst extension for Server on and running.

Everything else seems to check out with this after some back and forth and should run properly, but we haven't the foggiest idea how to debug this one. Any ideas?

Andrew
Viewing all 1297 articles
Browse latest View live


Latest Images