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

republish particular Tool in a Multitool Geoprocessing Service

$
0
0
Hi there,

I have a Geoprocessing with 4 rather complex Tools. If I do changes to one Tool I can't republish just this Tool in the Geoprocessing Service with ArcMap. During the publishing procedure I have to add all 4 Tools to the Service Editor again. This is very anoiyng. Is it possible just to change the Python behind the Tool as is were in 10.0 GP Toolboxes or can I creat a draft from an existing GP Service (because the draft file will be deleted automaticliy during publishing).

I can connect to my private WMS, but none of my layers are drawing.

$
0
0
I have created a WMS and it worked just fine the other day, but then I made it private. It took me a while to get a token to work, but I finally did by creating one for the referer IP, so I can finally connect to the WMS. When I load it in ArcMap though, none of the features show up. I can see in the table of contents that it is still reading things like my scale ranges for when to draw certain features, but there is nothing there. I just tried creating a new service with the exact same data and it too worked fine while I had it set to public, but when I made it private, I could no longer see the features.

What is going on?

Specify Temp Directory

$
0
0
We're using ArcGIS 10.2 on RHEL Linux 6.

When deploying a new service the ArcGIS server currently uses the /tmp directory as it caches the file for processing.

Is it possible to specify a different temp directory? Perhaps either by providing an additional JVM parameter in the agsserver.sh file or using environment variables?

So far the only reference to changing the temp directory is during installation by setting an IATEMPDIR environment variable. Doesn't seem to modify default behavior once the server is up and running and processing new services for deployment.

Michael

Layer's data source is ArcSDE not accessed via a direct connection

$
0
0
This is frustrating, several of our mxds, when analyzed in ArcMap 10.0 come back with the error:
10030: Layer's data source is ArcSDE not accessed via a direct connection

We only use direct connect here, there hasn't been an SDE service running since our 9.3.1 days.
Here's the connection info from one of the offending layers (identifying info changed)

Data Type: SDE Feature Class
User: xxxxxxxxx
Instance: SDE:sqlserver:servername\dev
Location: dbname
Version: sde.DEFAULT
Description: Instance default version.
Feature Class: dbname.WEBMERC.HYD_PY_WW_Lake_polygons
Feature Type: Simple
Geometry Type: Polygon

Any thoughts?

How to release LOCK FILE?

$
0
0
Hi all,

Recently, we published a GP Services. When running the GP Service on ArcMap, it works fine. However, when running it on Web Server. I got error like the screenshot: "esrijobfailed". We go to read the LOGS in ArcGIS Server Manager.
Sometimes, the error is "ExecuteError: ERROR 000871: Output table: Unable to delete the output".
Sometimes, the error is "ExecuteError: ERROR 999999: Error executing function. Cannot acquire a lock. Cannot acquire a lock. ERROR 010037: Output table D:\ArcGISData\ArcServerData\TxFIP\tools\ScratchWorkspace\scratch\scratch.gdb\tempUrbanStats could not be created".
Sometimes, it is "ERROR 999999: Error executing function. The table already exists. No spatial reference exists".
Sometimes, it is " ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application. Failed to execute (Delete)".

Besides, I check in the gdb folder. There are usually two lock files: _gdb.lock and tempStatsTable.lock. And they are not released after GP Services termination.
I also find that after the GP Service firstly executes, we wait several minutes and run the GP again, the GP works on Web server again though two lock files are still in gdb folder. Any thought? Thanks!

Best,
Yang
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG‎
Views:	N/A
Size:	49.3 KB
ID:	31965  

Do I have to republish all the map services after upgrading ArcServer from 10.0 to .2

$
0
0
I am just wondering do I need to republish all the map services if I upgrade ArcGIS Server 10.0 to 10.2.

Thanks,
Dan

Editor Tracking in database time zone

$
0
0
I'm trying to publish a few dozen feature classes and I get the following error.

"Data frame has layers that record Editor Tracking dates in database time zone"

It wants me to turn off editor tracking or use UTM. My server site is only for viewing, people are not creating data on the site, so the editor tracking columns are just leftovers from my working copy of the geodatabase.
Why can't I ignore this error or mark it as an exception?

The thing is, I was able to turn on editor tracking for all layers doing a single process for the whole geodatabase. But to "Disable Editor Tracking" when I copy my geodatabase from its editing-copy location to its user-consumption location I have to make a seperate process to disable it for each individual feature. I'd rather not make this huge model to do this. Am I missing something? Is their an easier way?

Missing service after upgrade from 10.1 to 10.2

$
0
0
Running into an odd issue after upgrading ArcGIS Server from 10.1 to 10.2. I published a service and did not receive any errors when publishing. If I look at my server via the admin connection in ArcCatalog, I see the service I published. If I login to ArcGIS Server Manager or look at my server's Services Directory page, I don't see the service.

Is this maybe a problem with the web adapter? I upgraded and registered the web adapter along with the server upgrade. Any thoughts here appreciated.

Python GP Service when creating an Service Definition file for an unknown server

$
0
0
We were constantly having odd (we thought "un-reproduceable") problems with a GP Service while we were developing, deploying and maintaining it in production over the last year. We couldn't figure out why sometimes it worked, sometimes it didn't and (as far as we could tell), we hadn't really changed anything. Now, there was one item that we knew was problematic, but it didn't explain some of the things we were experiencing. Recently, we addressed that one item by rewriting some of the script and in doing so opened ourselves up to a host of problems along the way. In the end, they all seem to have come down to one aspect of all this that I thought I'd share in case it helps anyone else with their work.

It turns out that even the most (apparently) innocuous changes to a Python script written for a GP Service on ArcGIS Server can have a profound impact on the SD created and whether the Service can even be started after it's deployed to a Server or not. And, if it can, whether it's actually doing what you think it is at runtime. It turns out that the Python code you use to access a resource within the script itself impacts what gets bundled up in the Service Definition file, and consequently whether or not that SD file can be started up and used on an ArcGIS Server. Even if it works (depending on whether you include the data in the SD file or not and how you wrote the code), the service may not actually be doing what you think it is at runtime.

Our particular site has 2 Linux ArcGIS Servers that each have access to a shared location through a mount of the same name on both hosts. So, let's say, in our script we're querying "/mountname/somedir/anotherdir/file.gdb" to get a result that we display to the end user. We assumed, in doing something like this, that if we needed to update the information in the fgdb at some later time that, as long as the data model was the same (as in, we just needed to add some additional records), those should come up in the results the next time a query was passed. Not so...and it's because of a combination of the ArcPy script and the Service Defintion creation functionality. This assumes that you get that far of course...these same variables can result in your not even being able to start a service that (as far as a coder is concerned) hasn’t actually changed.

We learned that, while the following three examples of Python code have the exact same result in ArcMap when the code is being created/tested/etc (for development purposes, we created a "mountname" with "somedir" in it and "anotherdir" in that and placed "file.gdb" in it on our desktops to mimic the environment in Linux), they do not result in the same service definition content and do not run the same (if it all) when that SD is deployed to ArcGIS Server.

1.
strFgdbName = "file.gdb"
strInPath = os.path.normpath("/mountname/somedir/anotherdir")
self.strInPathFgdbName = os.path.join(strInPath, strFgdbName)

2.
strFgdbName = "file.gdb"
strInPath = os.path.normpath("/mountname/somedir")
self.strInPathFgdbName = os.path.join(strInPath, "anotherdir", strFgdbName)

3.
strFgdbName = "file.gdb"
strInPath = os.path.normpath(["/mountname/somedir/anotherdir"][0])
self.strInPathFgdbName = os.path.join(strInPath, strFgdbName)


It was a week ago that we figured this stuff out so my memory might be a bit off, but I believe it goes like this...

The first one will work whether you include the data in the service definition file or not. However, at runtime, it's not actually querying the fgdb at /mountname/somedir/anotherdir/file.gdb. It's actually querying a copy of that file that it has placed in the SD file (again, even if you don't include data when you create it - these SDs being created for an unknown server at the time of their generation, it should be noted, because we use the same SD files to deploy to various environments that are all architecturally the same but accessed via different URLs, etc) and extracted to its v101 directory content. So, if I added records to the shared location, they wouldn't be returned in any new queries because the service wasn't actually looking at that file geodatabase.

The second one can't even be started after it's deployed because it can't find file.gdb...of course, it's not actually looking where it should be either. And, here, it doesn't matter whether I include the data or not when I create the SD either.

If you actually look at the python script wrapped up in the SDs created by the above scripts, you can see (as we discovered) that it was actually changing the code that it was subsequently deploying to the ArcGIS Server and either breaking the service (as in the second) or making it do something unintended (as in the first).

Eventually, we stumbled on the third approach. It works, I assume, because the method of getting the path into the string is too complicated for whatever it is that is trying to help us out when we create the SD file. Consequently, it does nothing "helpful" and leaves the script alone; that is, leaves it as it was written. And then we can successfully deploy and run our service as we expect.

I'm sure that whatever it is doing when it's creating the SD files is being done for a reason but I've never stumbled across anything in the documentation that suggested it was changing scripts in a way that might have unforeseen results. So, I thought I'd just pass this along in case it helps someone else...

cheers,
jtm

ArcGIS 10.1 USER connection in ArcCatalog empty

$
0
0
Have been able to duplicate this with two server setups. Wondering if anyone has encountered this problem and found a work around?

ArcGIS Server 10.1 sp1, ArcGIS Desktop 10.1 sp1
Using a WebAdapter, or directly to the GIS server

Configuration Settings
User Store: 10.0 SQL Server (This is a aspnet user store in SQL)
Role Store: 10.0 SQL Server
Authentication Tier GIS Server
Authentication Mode: ArcGIS Tokens

If I connect to the rest and log in with a user I see the folders/services that user has permissions to see. If I make an ArcCatatlog connection with that user there is nothing, not even public folders or services available.

Error: Class not registered

$
0
0
I am trying to connect to an ArcGIS web server (user connection). I have connected multiple machines using ArcDesktop 9.3, 10.0 and 10.1 without any problems. But I have 1 computer (ArcDesktop 9.3) that returns an error stating "Class not registered". I cannot find a reason or possible fix for the issue.

Does anyone out there have any ideas why this might be happening and what a possible fix may be?

Thanks!

Issue on download raster data from published mosaic dataset in ArcGIS server 10.

$
0
0
Hi,
Our users are working with multiband (150 bands) raster dataset, which are in divestco's .Sl0 file format., and the huage raster files are stored shared folder in the server. Now we are planing to utilise the mosaic dataset's alongwith ArcGIS server's image service to serve these raster data to the user's. we achieved this by the following:
Note: each .sl0 files assoicated with two more files .DB, .3d

a. Created raster mosaic dataset and inserted raster datasets using toolbox tools. Then viewed the same in arcmap, all ok.
b. Published that mosaic dataset as image service using ArcGis 10 server manager. (Note: No image server extension installed).
c. Then added that image service as a layer in ArcMap desktop 10. Validate the attribute table and view the images, all ok.

however, when download the selected raster dataset, the dialog box show and listing only all .ovr, .xml., .tif., files but not showing that .sl0, .DB and .3d files., even after download.

So, kindly help me
How can i download the .sl0 and its associate files with all bands (150).
Why its automatically converted to .tiff format.
Is image server extension must required to publish mosaic data (in AGS 10)?

Thanks & Regards,
Adhi.D

Why I'm staying with 10.1 forever

$
0
0
Last week I had the occasion to test out ArcGIS Server 10.2.1 on my site. They had the web site down anyway, so I decided I had time to uninstall 10.1 and install 10.2.1. Here is my experience:

1. I installed all the way to where Server Manager asks for the config-store directory, etc. I entered my directory and it said it was already in use and would not use it. FAIL - No upgrade path.

2. So I entered another directory and proceeded to rebuild each service one by one. After analyzing the first MXD, I was given an error that the data location was not registered. OK, similar to 10.1. When I registered the data, I got an unintelligible form that gave no indication of how to proceed. In 10.1 you just type in a keyword - apparently in 10.2.1 you have to re-connect to all your data? FAIL - New forms with no help docs.

3. Continuing on, I got to an MXD that included a spatial view. The spatial view uses the same connection as the underlying layer, but, upon analyzing, it insisted on asking me to register my data. In 10.1 you just double-click the error line and the register form pops up - reanalyze and you're good. In 10.2.1. you double-click the line and it removes the layer from the map! FAIL - Changing the MXD. Remember all of this worked fine in 10.1.

4. Instead of finishing with that MXD, I went to another one - An MXD that contains ONLY an aerial photo. Imagine my surprise when analyze says that is an error!!?? FAIL - Not allowed to publish aerial photo MXD's.

At this point I just threw in the towel. Within an hour, I had uninstalled 10.2.1, reinstalled 10.1. It was happy to accept my config-store directory. It liked my spatial views and aerial photos and knew all about the data location registration already. 10.1 WE LOVE YOU.

I am content to read about the reasons for these "features" in the responses to this post. I will not be "experiencing" ArcGIS Server 10.2.1 again.

Cannot register a license for ArcGIS Engine 10.1 on linux host with Intel ethernet HW

$
0
0
Hi,

I have problem to get my license for ArcGIS Engine 10.1 authorized on Linux host RedHat 6.5.
All reqired software installed an pre reqirement check says everything is OK.
After som investigation i found that the culpit seems to be that the network interface on
my linux host are named "em1" ( Intel ethernet hardware ) instead of eth0 and software for authorizing seems to have hardcoded
ethernet interfaces who's name are supposed to be named eth0 or eth1.
The failing code seems to be in ArcGISAdmin_libFNP.dll och SoftwareAuthorization_libFNP.dll
and source code is Source_Linux_Ethernet.cpp.
Are there any workarounds for this bug?

Regards Mats Röjestål
Metria AB

Can an ArcGIS Server 10.1 see a SDE geodatabase in 10.2

$
0
0
Hi all,

Can an ArcGIS Server 10.1 see a SDE geodatabase in 10.2

Regards

Changing data in a map service

$
0
0
Hello,

I would like to have a map service which is based on data that will change periodically. I want the changes to be automatically reflected in the map service. Meaning, when the data in the geodatabse, used in the map document which the service is published from is changed, I see the changes in my web application consuming said service. Am I correct in thinking that every time the underlying data/map doc of the map service changes I will have to republish the service? Is there a better way to do this? I have been doing fairly straight forward map services and using the FlexViewer, so I haven't branched out much. We are using ArcGIS Server 10.2.

Caching - please help!

$
0
0
Hi There,
I have a service which has previously been cached with no apparent issues. The service is generated from a map which uses 2 mosaic datasets covering a very large area. The mosaics are set to not be visible when zoomed out beyond 1:3,000,000. I have created a cache for scale level 8 (1:2,311,162) to level 17(1:4,513).

The cache was generated and is still in the cache directory but now for some reason the service no longer sees the cache, it no longer seems to know that it has a cache and when I go to the View Cache Status or into the list of tools under Manage cache they are all greyed out.

I've tried to open the service properties in ArcCatalog and resave the service with caching enabled but it defaults back to not having a cache enabled.

I've tried publishing a new service using the same map but it says the service has been created but cache generation has failed and so all the cache tools are greyed out again.

Finally I've tried to use the tools in arctoolbox for caching but when I do select this service it gives an error to say cannot connect to the server. Even though if I select another service on the same server it connects just fine!

Any help gratefully recieved.
Dee

Issues enabling SSL and accessing with HTTPS

$
0
0
I'm trying to enable SSL on ArcGIS Server 10.1 using the web adapter. I have followed this article to the letter.

Attempting to access either the admin page or rest services with HTTPS takes me to a page with ArcGIS header that says "Unable to connect to the remote server."

We have several other apps running on this machine and we can access them via HTTPS just fine. It's been correctly enabled in IIS.

We also have another 10.1 Server installation where we enabled SSL without issue using the previously cited knowledge base article.

Any suggestions would be appreciated, thanks.

Can I perform any analysis on the UNEP ocean_viewer_data_coral reef layer?

$
0
0
Hello

I am doing a study where I have to use the UNEP ocean viewer data coral reef layer ( showing the global distribution of corals in the (2010)) which I downloaded from ArgGIS. The restrictions made on this layer make it difficult to carry out any analysis on it. How can I deal with this challenge? My only intention for using this layer is for research purposes.

Many thanks,

Linda

Generate Tiles in ArcGIS Server 10.2.1

$
0
0
Hi,

I am trying to generate Cache tiles. I create my service and I use the tool "create map server cache" with 12 levels of details from 4,000,000 to 2,000 Attachment 32181. After Create cache I use "Mape server cache tiles" to generete the cache but for some reason i do not get all the Scales I define in my service it only show me 8 of the 12 I define, missing 4,000,000/2,000,000/4,000 and 2,000.Attachment 32182

I use the tool and right click on the service and manage tiles, delete cache, recreate the service and the scales created and the scales selectable to generate the chache are not the same.

Any idea why this is heppening?

Thanks for your help!

Diego Llamas
Attached Thumbnails
Click image for larger version

Name:	diego.PNG‎
Views:	N/A
Size:	24.3 KB
ID:	32181   Click image for larger version

Name:	diego2.PNG‎
Views:	N/A
Size:	17.7 KB
ID:	32182  
Viewing all 1579 articles
Browse latest View live