BLOG
|
Hi Marshall, Sorry for not responding sooner. My first thought is that the 403 error is related to the SSL certificate used by the host ArcGIS Server. Is the host AGS still using the self-signed certificate? If so, have you imported the self-signed certificate into the Trusted Root store on the AGS host server? Thanks Andy
... View more
01-12-2017
04:58 AM
|
0
|
0
|
831
|
POST
|
Hi Adrian, The SSL certificates only come into play when a client application (AGOL, web app, etc.) tries to access a map service using the HTTPS protocol. If you are unable to access non-SSL enabled map services within AGOL, then it sounds like it could be a firewall issue. Can you access the rest services using a URL similar to http://webserver.domain.com/ArcGIS/rest/services from your workstation using a web browser? If not, then your Web Adaptor might not be able to get outside of your firewall due to a security setting.
... View more
10-19-2016
06:33 AM
|
2
|
3
|
1882
|
BLOG
|
While working on a project that required the use of thegeoevent extension to send emails based on updates to a hosted feature service, we found that we needed to quickly stop the email output connectors before performing a server restart. To do this you can go through the GeoEvent Manager and manually stop the email output connectors, but this assumes that your GeoEvent admin will always be available when a server restart is needed. Also, many times server maintenance is performed late at night while staff are usually not around. Fortunately, there is a way to script the process of stopping and starting your GeoEvent input and output connectors. The attached zip file contains a sample script that will stop GeoEvent output connectors whose Name values are contained within a python list. This script requires that you have downloaded and installed the latest ArcREST python site-package which can be accessed on GitHub. The script has been developed to start or stop GeoEvent output connectors but can easily be modified to perform the same actions on input connectors. To get started with the sample script, please do the following: Download and unzip the attached StopGEEOutputs.zip file Open the StopGEEOutputs.py in your preferred python IDE application Locate the Input parameters comment and review the input parameter variables: Update the server variable with your GeoEvent host server name (e.g. myserver.domain.com) Update the username variable with your GeoEvent admin username Update the password variable with your GeoEvent password For runType, enter either stop or start depending on what action you want to perform on the output connectors The outputLst variable stores each output connectors Name value within a python list. The script will loop through the list of Name values and perform either the start or stop action on that specific output connector. First you need to access the Name parameter values, which are in a GUID format, by doing the following: Open a web browser and log into the GeoEvent Admin API using your GeoEvent admin credentials (e.g. https://myserver.domain.com:6143/geoevent/admin) Follow the directions to acquire a security token to access the GeoEvent Admin API Click on the Outputs link located on the top row of menu items In the list of Outputs, click on an output that will need to be started or stopped Copy the Name parameter value and paste it into the outputLst (be sure to put quotes around the Name string and separate with commas if adding more than one Name value) Perform steps 3 and 4 for each applicable output, when complete the outputLst should look similar to the one below Save your edits when you have finished The script is now ready to run against your GeoEvent Admin API and should stop or start the output connectors you have stored in the python list. You can schedule this script to run on a regular basis or import the arcpy module and create a GP tool. I hope this helps GeoEvent users with their administrative tasks.
... View more
10-19-2016
06:09 AM
|
2
|
7
|
2217
|
POST
|
Hi Adrian, Are you using a HTTPS URL when adding your map service data into the web map? If so, it sounds like AGOL is rejecting the service since the web browser that you are using to interact w/ AGOL doesn't trust the self-signed certificate the SSL service is providing. You now need to determine whether or not you really need to use the SSL or HTTPS enabled map services. When logged into the Server admin directory, go to security > config and look at the Protocol setting. Is it set to HTTP and HTTPS? If so, try loading a map service w/ the following URL format http://<servername>.<yourdomain>.com:6080/arcgis/rest/services/... into a web map (if using Web Adaptor the URL will omit the 6080 port and the server name might be different). For public access, you really should use a Web Adaptor that is running on a dedicated web server or have some other load balancing technology setup that distributes client requests to your ArcGIS Server. If you have to provide SSL enabled map services for public use, then you'll have to use a CA signed certificate in order for the public to access your content. The ArcGIS Server help talks about the various environments you can implement. I hope this helps Thanks Andy
... View more
10-18-2016
10:38 AM
|
1
|
5
|
1882
|
POST
|
Hi Adrian, When inputting the certificate parameters, make sure not to use invalid characters, specifically commas. Are you planning on importing your self-signed certificate into your enterprise trusted root store? If not, I doubt the client side web browser will accept the SSL content returned from it's request and you'll probably get the same error message in AGOL. Without going into a lot of web security detail, self-signed certificates should only be used within a testing environment where the same workstation will accessing the SSL content via client application. If your intentions are to have other users access your web maps and view the SSL content, then you will need to go down the route of accessing a CA signed certificate or domain certificate if the content will only be accessed within your organizations domain. Do your map services need to be SSL enabled? This might be an IT requirement that you can't get around but if not then try accessing the map service over HTTP. I hope this helps Thanks Andy
... View more
10-17-2016
01:05 PM
|
1
|
7
|
1882
|
POST
|
Hi Manjari, In the Layer properties under the Symbology tab, select all the approved symbols using the Shift key, right click on the selected symbol rows and select Group Values. This will condense all selected symbols into one symbol set which you can modify. You will need to do the same for the rejected symbols as well. Save this symbol configuration with your Sym_layer3 and it will get applied to the MW_Decision.lyr when you run your script. I hope this helps. Thanks Andy
... View more
10-03-2016
08:37 AM
|
0
|
1
|
828
|
POST
|
Hi Jeff, Check your token, if you aren't getting a URL string returned in your JSON object then chances are the token wasn't valid and your JSON object isn't getting built. I'm running the same code but am finding that during urlretreive method, I'm not getting JSON written to the file I'm specifying. Instead the file contains HTML that holds a div block showing restErrors with a value "Token Required". This code was working a few weeks ago but now seems to break due to no token authentication. Maybe others are experiencing the same behavior. Thanks Andy
... View more
03-25-2016
07:25 AM
|
0
|
1
|
1740
|
POST
|
Hi Rebecca, Although the AGS help states to disable the services directory to prevent someone from finding and accessing your services, however if you have services intended for public use disabling the directory may not be the route you want to take. Instead, I would recommend securing the applicable services and/or folders via ArcGIS Server Manager which in turn prevents them from appearing in the services directory. I hope this helps Thank you Andy
... View more
05-22-2015
07:52 AM
|
0
|
9
|
1153
|
POST
|
Hi Hani, Did you try repairing your 10.3 ArcGIS Desktop install? In Windows, go to Control Panel > Uninstall a program, locate ArcGIS 10.3 for Desktop and right click on it. Select the Uninstall/Change option and the Setup wizard should launch. Select the option to Repair and go through the wizard to start the repair process. Once complete check to see if the XY Tool initializes for you. I hope this helps. Andy
... View more
02-17-2015
08:32 AM
|
0
|
1
|
3488
|
POST
|
Hi Theo, The Field Calculator is the way to do this but you will need to check the code block option and input a rather simple function. Below I've provided steps using Python which I'm more familiar with: Open the attribute table and right click on column you need to update Select Field Calculator (You can run this outside an edit session but will not be able to undo the update) Select the Python parser option For Type, select String Check Show Codeblock In the Pre-logic Script Code text box, build a function similar to the one below: def replaceStr(string): newString = string.replace(string, string + "LOG") return newString In field text box, call the function you created in the Pre-logic Script Code text box, but pass in your actual column name (i.e. replaceStr(!FIELD_NAME!) Click OK When defining the function, be sure to use two spaces for each subsequent line under the function definition line (def replaceStr(string):) otherwise an error will be returned. The .replace() is the method used to append additional text to your input string field. I hope this helps and isn't too long winded for you . Andy
... View more
01-15-2015
05:47 AM
|
2
|
0
|
18338
|
POST
|
Hi Rachel, Have you looked into creating a Query Layer within ArcMap? This option would allow you to join multiple feature classes and tables into one view which you could then access in ArcGIS Desktop. They are also dynamic so any updates you make will be visible within the view. You could also look into creating a database view within your RDBMS. I hope this helps. Andy
... View more
01-13-2015
11:37 AM
|
0
|
0
|
937
|
POST
|
Hi Dane, For your AGS feature service, what are your Pooling properties set as? Specifically The Maximum time a client can use a service under the Timeouts portion of the Pooling page? If you kept the default value of 600 seconds (10 minutes) then I can't imagine it taking that long to upload more than 35KB of data. Also, check if there are any size constraints on the BLOB field within the RDBMS table. I hope this helps. Andy
... View more
01-13-2015
08:15 AM
|
0
|
0
|
940
|
POST
|
Hi Ryan, For the mxd.saveACopy method, try passing in parameters that build the output file path and don't forget to append ".mxd" at the end of the path string. See the example below: import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") for df in arcpy.mapping.ListDataFrames(mxd😞 mxd.activeView = df.name mxd.title = df.name mxd.saveACopy(r"C:\Project\Output\\" + df.name + ".mxd") del mxd In your case, if the third user input parameter is a file path string you could use something like: mxd.saveACopy(arcpy.GetParameterAsText(2) + ".mxd").
... View more
01-12-2015
06:15 AM
|
0
|
0
|
833
|
POST
|
Hi Edyta, Are you using the Set Data Source dialog via the Workspace button in the RBJM or pointing to the new feature class while editing the check? I've found that if you set the data source through the Set Data Source dialog that the check parameters appear while editing the check properties. Just click the Workspace button in the RBJM and the Set Data Source dialog will appear. Any data sources with broken paths will have a red "X" next to them which means you need to select that row and click Change Data Source. Navigate to the new feature class and you can then apply the update to all data sources. After doing this see if the regular expression configuration strings are still missing. I hope this helps. Andy
... View more
01-09-2015
08:38 AM
|
0
|
1
|
262
|
POST
|
Hi Ryan, The environment workspace probably doesn't matter since you are working with MXD layers, I was just trying to replicate the same parameters as you hard coded in the functional script. I think Xander might be on to something w/ the non-ASCII characters. Also, I would try defining the path input parameter outside of your for loop and pass it into the os.path.join method like you currently have it. Good luck! Andy
... View more
12-31-2014
04:55 AM
|
0
|
0
|
833
|
Title | Kudos | Posted |
---|---|---|
1 | 10-18-2016 10:38 AM | |
1 | 10-17-2016 01:05 PM | |
1 | 12-18-2014 01:06 PM | |
2 | 12-18-2014 08:16 AM | |
2 | 10-19-2016 06:09 AM |
Online Status |
Offline
|
Date Last Visited |
06-05-2024
07:10 PM
|