POST
|
Hi, I have built automatic procedures using Python to create, delete, update, etc items on ArcGIS Online using its REST API. Everything seems to work fine to the exception of one function. Goal: List all the items inside of a folder in AGOL for Organizations Because it doesn't seem to exist a method to list the items using the folders name I first need to make a request to get all the folders associated with my account/user to get their id. That is done by invoking the URL below: http://www.arcgis.com/sharing/rest/content/users/someuser (the token and f=json are also added as request parameters) Everything works fine. After discovering the ID of the folder I then issue a second request as follows: http://www.arcgis.com/sharing/rest/content/users/someuser/some_folder_guid (the token and f=json are also added as request parameters) and I get the following error: IncompleteRead(495 bytes read) The call in Python is as follows: urllib2.urlopen('https://www.arcgis.com/sharing/rest/content/users/' + portal_user + '/' + folder_id, urllib.urlencode(args)).read() What actually happens is that read() function is what is taking more time. The code above is standard in python. I have tested copying the request, args, and token into a browser and it seems to be returning the json properly. If I catch the exception (e.g. except httplib.IncompleteRead, e 🙂 and return the e.partial info it seems to have the entire json response. The problem is that it takes almost 1 minute to read it ... and I only have 1 item inside the folder. All other methods in AGOL seem to be fast except this one which is giving an exception... Can you guys see why only this method is not working properly? The create webmap, delete items, etc operations seems to be working properly ... Thanks, Jose Sousa If I try to list the items
... View more
07-04-2013
09:58 PM
|
0
|
2
|
717
|
POST
|
Hi Bubba, Glad to see that the bugs are already acknowledged as I have been finding some of them quite often and they are quite difficult to trace. I just don't have the time to create a thread for each issue as it is time consuming. Thanks for pointing me to those links. Cheers, Jose
... View more
07-03-2013
03:10 PM
|
0
|
0
|
202
|
POST
|
Hi, Thanks for the reply. The data store is appropriately registered and there is no problems with the MXD. I even created a new one with just one basic layer and it still doesn't work. I am validating the sddraft first and there aren't errors to the exception of the scale range. As mentioned before this works perfectly if the script is called by ArcGIS for Desktop (e.g. Tool or Geoprocessing Window). When it is called from outside (e.g. VS or PythonWin) it doesn't work. Cheers, Jose
... View more
07-03-2013
03:03 PM
|
0
|
0
|
579
|
POST
|
Hi, When executing the line arcpy.StageService_server(sddraft, sd) in ArcPy 10.1 using both PythonWin and VS2012 it fails with the error: ERROR:root:ERROR 001269: Compressing the service definition failed. I have noticed that this error is mentioned in the link thus it is not very helpful: http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002r001269 The folder where the service definition is being written has all the appropriate permission. If I execute the script inside ArcMap or ArcGIS for Server the line works just fine. Can I have more help here? Cheers, Jose
... View more
07-02-2013
09:16 PM
|
0
|
6
|
3200
|
POST
|
Hi, Just found out an odd behaviour of ArcGIS 10.1. My install (Development Environment): - ArcGIS for Server 10.1 SP1 - Authentication: Windows (Web Tier) - Web Adaptor for IIS (administrative access enabled) I have tried to setup the GIS Server admin connection in ArcGIS for Desktop using the Web Adaptor URL and noticed that it rejects that URL and replaces for the GIS Server site URL running on port 6080. Monitoring the requests that have been made I have noticed that ArcGIS for Desktop attempts to use the Web Adaptor URL, verifies that it has SSL enabled (???) and tries to invoke the generateToken method using HTTPS which is obviously denied since this is a dev environment and does not have the certificate installed. I actually haven't enabled SSL on the Web Adaptor. It just inherited the Default Web Site properties ... which did support HTTPS. Because he couldn't connect using HTTPS, ArcGIS for Desktop changes the request to the AGS Server site running on port 6080 and verifies that it works and ignores my setting. This means that anyone using that connection will go directly to the AGS site instead of the Web Adaptor. I have removed the SSL support on the Web Adaptor and ArcGIS for Desktop allowed me to change the connection ... finally. Without closing ArcGIS for Desktop I just enabled again the SSL and noticed that ArcGIS for Desktop allowed me to change it again ... odd. I have closed ArcGIS for Desktop and opened it again and tried to change the connection and it started working as previously and ignoring my settings. Not sure if this is an intended behaviour but is quite odd and took some time to figure out. Maybe ArcGIS for Desktop shouldn't be accepting the connection in first place if it considers it invalid? Instead of trying to guess and change it to something that I don't want and without telling me that an issue occured? It is a bit odd testing whether the Web Adaptor supports SSL or not and if it does assume that the GIS server site also supports ... these are separe components ... Hope 10.2 does not have similar behaviour. Cheers, Jose Because it is a development environment I haven't configured an SSL certificate on the AGS server site.
... View more
07-02-2013
08:58 PM
|
0
|
3
|
1860
|
POST
|
Removing the IE10 compatibility tag from the line below, closing and opening again the browser solves the issue. <meta http-equiv="X-UA-Compatible" content="IE=7, IE=9"> Cheers, Jose
... View more
05-22-2013
07:16 PM
|
0
|
0
|
562
|
POST
|
Hi, I am using v3.5 of the ArcGIS JavaScript API. Unfortunately IE10 is displaying white lines. This happens even to your own samples. E.g. When I opening this sample in IE10 (Win8 Pro) http://help.arcgis.com/en/webapi/javascript/arcgis/samples/layers_webtiled_one/ I get the result attached to the email. This does not happen to Chrome though. Is there any workaround for this? Cheers, Jose
... View more
05-22-2013
07:01 PM
|
0
|
1
|
2388
|
POST
|
Hi Rachel, Apologies for the late response. I am not sure whether I understood your question appropriately. I don't recall what were the outcomes of my testing at the time since it was some time ago. What I believe that is happening is: 1 - When you create data using ArcMap he will convert your local time into UTC and save that value in the geospatial repository. 2 - For display purposes the software will read your local time settings and translate the UTC values into your local time. This means that any application wherever it is located in the world can perform the same exercise. The problem that it seems to be happening is that the REST API or Flex API from Esri is not converting the values appropriately. I would say that it is the responsibility of the ArcGIS API for Flex to read your local time values and translate seamlessly the UTC values into the appropriate time format. If the API has a bug (not saying that it still has) then a workaround can be written on top the Flex Viewer that is one layer above the Esri Flex API. Note that the Flex Viewer uses the ArcGIS API for Flex internally. The workaround is provided in the link I have sent previously. If the Flex Viewer version that you have is the compiled version than you don't have many automatic options. Either you build a custom script (e.g. ArcPy) that runs periodically and passes all the new updates to date - 1 day or you write a workaround at the DB level (wouldn't recommend this). An example would be implementing a listener on the RDBMS for catching any CRUD operations and modifying the UTC date time to -1 day automatically. The implication of this is that it makes difficult to upgrade the geodatabase because the script will have to be maintained. I would suggest that you download the latest Flex Builder from Esri and test to see if the issue still occurs. http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&downloadid=974 Cheers, Jose
... View more
05-08-2013
07:33 PM
|
0
|
0
|
326
|
POST
|
Hi, Unfortunately the ArcGIS for Server Maps for Mobile does not have any future at this point. I strongly recommend you to adopt ArcGIS Online or Portal for ArcGIS. These products provide you all the functionality you require. If you want to support security on the ArcGIS Server Mobile Maps in a seamlessly manner you have to implement the coding. Fortunately, is not that much. You can secure ArcGIS for Server using AD (as an example). This will secure both the traditional REST endpoints as the Mobile Maps. The difference between both is that the Mobile Maps use a cookie for persisting the security key and ArcGIS for Server uses a token on the URL. You can request the ArcGIS for Server Mobile Server login endpoint using you AD account and get the token associated with your user. Then, you can use that token as a cookie in the next request (for getting the Mobile Maps content), and the request will be authorised. They both use the same Identity store. Cheers, Jose
... View more
05-01-2013
03:23 PM
|
0
|
0
|
273
|
POST
|
Hi Rachel, You should try to upgrade your API to the latest one (3.3). Not sure what version of ArcGIS for Server you are using. If the latest versions of AGS for Server, ArcGIS API for Flex and the ArcGIS Viewer for Flex (in case you are using it) don't solve the issue then you can try to apply the same workaround provided here: http://gisengineering.blogspot.co.nz/2011_09_01_archive.html Kind regards, Jose ESRI New Zealand
... View more
04-29-2013
02:54 PM
|
0
|
0
|
326
|
POST
|
Hi Vince, There is no reason for being upset. From my mind Esri could be using dynamic queries or functions to enable this functionality. Esri already implements other functions so this could be just one more ... E.g.: create view dbo.ViewName as select dbo.Function(parameter) from dbo.TableName The function could have the logic for reprojecting the geometries. I didn't knew there was a technical limitation for this as I haven't actually tested the script to see if that would work for this scenario. That was what I was trying to get from you guys and the reason I have addressed the post to Esri. This is a very specific question and I needed a response that I could trust. So I will have to assume considering your response that it is technically impossible to implement this functionality using Spatial Views. Because a versioned view cannot be used when I am using advanced features of the GDB that means that I will have to be searching for a different solution but that always includes data replication is some extent. Regards, Jose
... View more
04-07-2013
07:06 PM
|
0
|
0
|
315
|
POST
|
Dear Esri ArcSDE Team, I have ArcGIS 10.1 and have to use an enterprise geodatabase for storing some layers that require advanced capabilities of the gdb. I also have to provide a partial view of the data to 3rd party systems. I was thinking of creating a spatial view but have noticed that the Geometry Column is using Esri format. Is there any command I can use for reprojecting on the fly the esri format into SQL server native geometry type? I was thinking of applying that command on the spatial view. I know it will impact the performance but is much better than starting replicating data across all the different systems. Any thoughts on this? Cheers, Jose
... View more
04-07-2013
05:00 PM
|
0
|
3
|
949
|
POST
|
I am extremely disappointed that after having pointed out for the need of passing the token when open the Collector in the new release it hasn't been supported. Not just this does not work properly as I can't even log off from the app. One of the worst apps I have ever seen. After having convinced clients to adhere to Collector and AGOL (even Portal for AGS) for being able of having a front page where they could click and have any user accessing the application without being prompted for credentials I can see that all this effort was ruined by your latest release. I guess it is too much to ask for having Esri to provide any sort of minimum roadmap for the apps. You guys don't have any respect for any developer at all that is actually trying to use your solutions. Very disappointed, Jose
... View more
03-07-2013
03:30 AM
|
0
|
0
|
186
|
POST
|
Hi, If I expose a KMZ REST service network link through ArcGIS for Server. Is there any documentation whether Google Earth running on the mobile devices supports that? Will it include the layer inside it automatically as soon as I open the link? What are the supported devices and OS versions? Thanks, Jose
... View more
03-01-2013
09:14 PM
|
0
|
1
|
1887
|
POST
|
Hi, So Collector will be further improved and include a login for authenticating against ArcGIS Online/Portal. These are good news. I need to know whether Esri is going to continue supporting opening the Collector through an URL(e.g. arcgis-collect://www.arcgis.com/sharing/rest/content/items/f85ea11bd55d453b843ea2f66ad1ef94/data) as happens today. If that is the case will Esri support passing a token within the URL? Example: arcgis-collect://www.arcgis.com/sharing/rest/content/items/f85ea11bd55d453b843ea2f66ad1ef94/data?token=mytoken Because I have a front page that displays a list of web apps each referencing Collector using a different web map id. Problem is that the page already authenticates against ArcGIS Online to get the appropriate web maps so when users open the Collector shouldn't be asked for the credentials. How will this work in the new version? Since it contains the login I need to pass the token within the URL so that you can retrieve it and check that I have already a valid token. Thanks, Jose
... View more
03-01-2013
09:07 PM
|
0
|
2
|
397
|
Title | Kudos | Posted |
---|---|---|
1 | 02-14-2024 12:56 PM | |
1 | 07-25-2017 12:11 AM | |
1 | 09-10-2019 02:58 PM | |
2 | 10-21-2019 10:41 PM | |
1 | 12-01-2014 03:24 PM |
Online Status |
Offline
|
Date Last Visited |
03-10-2024
03:54 PM
|