WMS layer is empty although mxd shows data

I use ArcGIS Server to serve a map of points from a database. When I create and publish the mxd as a WMS service in AGS everything looks fine. But after a while, the day after or something - the map shows nothing. Every request to the WMSServer for that layer comes back empty. Opening the mxd in ArcMap shows the correct data as expected, only the WMS calls are faulty.

What could be the problem?

Details: I create an mxd file, and add data to it from a non-spatial database. To create the layers I right-click on the data source and select "Display XY data..." and select the X and Y columns from the data.

In AGS Manager I select "Add new service" and point to that mxd file, using all default settings from that. I have also tried the simpler "Publish GIS resource" and got the same results.

-------------Problems Reply------------

It appears as it was the way I set up the data connections in the mxd file that caused the problem. ArcGIS server uses a system account to run all services ("ArcGISWS" in our instance), and that account didn't have access to all data that I referenced in the mxd. Changing to an mxd that was set up using the ArcGISWS account, everything works as expected. I guess that the solution for anyone doing this is to log in to the ArcGIS Server with the intended account (ArcGISWS) and create the mxd, in that case all problems with data access will be obvious already in ArcMap, and the user can solve those issues before publishing the service.

At least, that is what I'll recommend. :-)

The reason behind the strange behaviour of the map working at first must have been a connection cache or something, so when the AGS recycled the connections or pools during the night, that connection was removed, leaving the ArcGISWS account to do the connection, which it couldn't due to lack of permissions.

Hope I can help someone with this attempt of a solution.

Category:mapping Views:0 Time:2011-03-09

Related post

  • OpenLayers, how restricting WMS layer extent 2011-11-21

    I'm able to create an OpenLayers Map with maxExtent and restrictedExtent properties. Also I have play with WMS layer and its maxExtent property, but the problem comes when use singleTile in the WMS layer. What I want is to have a WMS layer that gets

  • Openlayers WMS layer not zooming properly with Basemap 2011-10-23

    I'm using a WMS layer coming from Geoserver over a OSM basemap. When I'm at a particular zoom level (1:70) then the WMS layer is on right position over Basemap, but on zooming in to see individual points the layer starts slipping off and vanishes aft

  • using preferences - my listview is empty (can't store data) 2012-02-09

    I need help in order to properly set up preferences. I have my main activity from which by pressing the menu button ,i am going to the preferences activity.There,i have 3 entries where the user inputs his data.The first entry is a serial number. I wa

  • mouseUp on an empty row in the Data Grid with native mobile scroller is causing an error 2014-08-12

    I'm using a native scroller for a Data Grid displaying about 700 records. When the number of visible records is small (1-2) and they do not cover the whole height of the Data Grid rectangle then when executing mouseUp on an empty row in the Data Grid

  • Heatmap/Data visualization using WMS layer from Geoserver 2011-10-26

    I want to find something that can be used to create heat map WMS layers from Geoserver. I found AcidMaps (http://acidmaps.org/) that can be used as a plugin to Geoserver to generate heatmap WMS layers. But I was wondering if anyone has some informati

  • How to match WMS layer (point or polygon layer) with a Google Map base layer using OpenLayers? 2011-06-12

    With OpenLayers, I'm trying to use a Google map layer as a base layer for a map which will display an overlay layer of custom data. My custom layer seems to have an offset related to the Google's layer and both have different projection values (as yo

  • how to insert an empty value in mysql date type field? 2009-07-16

    How to insert a NULL or empty value in a mysql date type field (NULL = yes). If I try to insert an empty value it inserts 0000-00-00 but I want to keep it empty or NULL. Thanks for help. UPDATE Please see that I have set default value as NULL `paymen

  • Which 'layer' is responsible for validation of data 2009-07-29

    Let say I devise an architecture like this - an application consists of modules and modules uses domain-specific utilities to perform changes to the model or database. An example, a registration module which shows the form, accept input and then use

  • Empty set while selecting data in MySQL relational database 2009-11-10

    I have some relational MySQL database with dozens of tables... My query is 1000 ft long and selects data from almost all the tables... I also have my 'main' table, and all other tables are referring to that one. When I enter one row in my main table

  • Using filteredArrayUsingPredicate always returns an empty array for Core Data fetched objects 2010-02-08

    I'm trying to use NSArray's filteredArrayUsingPredicate: method to filter an array of core data managed-objects. Here's an outline: NSArray *array = self.fetchedResultsController.fetchedObjects; NSPredicate *predicate = [NSPredicate predicateWithForm

  • DAL Layer : EF 4.0 or Normal Data access layer with Stored Procedure 2010-05-23

    Application : I am working on one mid-large size application which will be used as a product, we need to decide on our DAL layer. Application UI is in Silverlight and DAL layer is going to be behind service layer. We are also moving ahead with domain

  • JAXB throws Error when unmarshalling empty int, double or date attributes 2010-07-15

    I met a problem when JAXB unmarshalling xml data. JAXB throws exception when unmarshalling empty value for int, double or date attribute from xml. For example, it throws java.lang.NumberFormatException when it unmarshals the following xml data. <s

  • Converting an empty string to a date, and then back 2010-07-20

    I'm trying to do some validation testing in VB.NET. If Entity.WeekEndDate.ToString = String.Empty Then ErrorList.Add(New cValidationError("id", "Incorrect Week End Date")) Where WeekEndDate is of type Date. When I originally build the object, how can

  • Empty FetchedResultsController in Core Data 2010-10-10

    I'm using core data and I have an entity defined called LogRecord. Elsewhere this is populated with objects using: LogRecord *rec = [NSEntityDescription insertNewObjectForEntityForName:@"LogRecord" inManagedObjectContext:managedObjectContext]; [rec t

  • Display WMS Layer Based on Zoom Level 2010-10-22

    I've been at this all day long and honestly I'm out of ideas. I have some WMS layers that I would like to display/not display depending on the current zoom level. Yes, I have went through the API docs and they seem to be clear as day, but I follow ev

  • Problem with skipping empty cells while importing data from .xlsx file in asp.net c# application 2010-10-28

    I have a problem with reading .xlsx files in asp.net mvc2.0 application, using c#. Problem occurs when reading empty cell from .xlsx file. My code simply skips this cell and reads the next one. For example, if the contents of .xlsx file are: FirstNam

  • getting empty fields when extracting data from CSV file 2011-02-27

    I have this code : $row = 1; if (($handle = fopen("data.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $num = count($data); echo "<p> $num fields in line $row: <br /></p>\n"; $row++; for ($c=0; $c

  • Removing empty rows of a data file in R 2011-06-22

    I have a dataset with empty rows. I would like to remove them: myData<-myData[-which(apply(myData,1,function(x)all(is.na(x)))),] It works OK. But now I would like to add a column in my data and initialize the first value: myData$newCol[1] <- -9

  • Empty select result when dates are used 2011-06-25

    Initial data: have a paragraph of query which in the sake of reasoning can be simplified to next SELECT MAX((CASE WHEN to_char(sysdate, 'DY') = 'SAT' THEN 1 WHEN to_char(sysdate, 'DY') = 'SUN' THEN 1 ELSE 0 END)) status FROM mytable WHERE mycondition

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.290 (s). 11 q(s)