|
POST
|
That's definitely JSON, so I'm not sure why the error is being thrown. The thing I haven't seen before is how you're constructing the parameters for the getToken request. url = "https://{}:{}/arcgis/admin/generateToken?f=json".format(server, port) query_dict = {
'username': adminUser,
'password': adminPass,
'expiration': str(expiration),
'client': 'requestip'
} f=json is a parameter sent along with the request, so it should be included in the query_dict: url = "https://{}:{}/arcgis/admin/generateToken".format(server, port) query_dict = {
'username': adminUser,
'password': adminPass,
'expiration': str(expiration),
'client': 'requestip',
'f':'json'
} What if you give that a try?
... View more
05-30-2017
03:53 PM
|
0
|
2
|
1189
|
|
POST
|
A folder is a non-transportable dataset, which will be set as a constant when the task is published, so you won't see it as an available input option. Non-transportable datasets are anything other than features, rasters, tables, and files. There are two categories of non-transportable datasets. Complex datasets are datasets such as geometric networks, network datasets, topologies, TINs, and so on. These data types are known as complex datasets because they model complex relationships between simple features. Container datasets are items such as folders, file and personal geodatabases, and map documents (.mxd). These data types contain a mixed collection of other datasets—hence their name, containers. Complex datasets and container datasets are non-transportable and do not support the User defined value input mode.
... View more
05-30-2017
12:12 PM
|
2
|
0
|
1812
|
|
POST
|
So add print(jsonResponse.read()) after line 55 so you can see what the variable stores, and determine why it's not JSON, (or at least the string representation of JSON).
... View more
05-26-2017
02:23 PM
|
0
|
4
|
4436
|
|
POST
|
What line is it failing on? Right before you convert the string to JSON, print the variable that stores the string to make sure it's JSON. This could happen on either line 56 or 82.
... View more
05-26-2017
01:55 PM
|
0
|
6
|
4436
|
|
POST
|
Take note that backing up your deployment with the Web GIS DR tool won't work, as all components need to write to the same path exact path, (same string), which won't be the case if you have mixed OS.
... View more
05-25-2017
09:43 AM
|
4
|
0
|
5003
|
|
POST
|
I've never tried to update the parameters of a GP service after it has been published but I don't think it will work. I would imagine that there are other references to the parameters somewhere other than the script and script tool, and you'll likely get a "Parameters need repair" error if you add, edit, or delete any. Can't hurt to try though. The other issue is what edits did you need to make to get the script to work after publishing?
... View more
05-25-2017
09:40 AM
|
0
|
1
|
1112
|
|
POST
|
I think that information will be specific to the item type. For example, the information from the item page does return a download counter as long as it's an item that can be downloaded: This particular item is an upload shapefile. When searching, the same information is returned: For an item that can't be downloaded, (for example, a hosted feature service), the "downloads" value is changed to "views". What item are you trying to download? If it's a hosted feature service, are you exporting the data?
... View more
05-23-2017
11:57 AM
|
0
|
0
|
826
|
|
POST
|
Technically, I think your best bet would be to use Python or another scripting language to make requests to the JSON of the item. You can then look at the created or modified date as well as the number of reviews to determine if the item should be deleted or not. Whether it's possible to do or not aside, there's no "undo" button for deleting items, (as long as you don't take backups). If you want to clean up your portal for people searching items, a better approach may be to unshare items that are shared to a group, organization, or everyone and only have them accessible by the item owner. That way, you're not deleting any users data automatically, but instead, making sure that other people within your organization can't access an item that may be out of date. Going back to my first sentence, I would also run regular backups to make sure that mistakes can be undone.
... View more
05-22-2017
05:32 PM
|
1
|
1
|
1065
|
|
POST
|
Sorry, I may have misspoken. I don't typically deal with ArcGIS Online but I am familiar with embedding credentials in items. You may be entirely right in that subscriber services don't cost credits, only premium services do, I can't speak to confirm that, though.
... View more
05-22-2017
05:27 PM
|
0
|
0
|
1914
|
|
POST
|
You can remove it through the Sharing API: https://<portal>.<domain>.com/<context>/sharing/rest/portals/0123456789ABCDEF/servers/<id>/unregister This is only something that should be done if you know that the Server should no longer be federated to Portal. You shouldn't unfederate as part of a troubleshooting process for your Portal and Server. If you're troubleshooting something and considering unfederating, I suggest you reach out to Technical Support first.
... View more
05-22-2017
05:25 PM
|
10
|
2
|
6943
|
|
POST
|
ArcGIS Online and Portal will generally have the same functionality/features available, especially in this case. Here's another blog that may help, giving you some different options. I think you'll want to look at the "Authorize the layer" section. Be aware that usage of subscriber services costs credits.
... View more
05-19-2017
02:44 PM
|
1
|
2
|
1914
|
|
POST
|
You don't need the web adaptor if you're using ADFS. You'll only need the web adaptor if you want to use IWA. You can take a look at the deployment strategies page for more information.
... View more
05-18-2017
02:06 PM
|
0
|
0
|
831
|
|
POST
|
Yes, only a certificate that's trusted by browsers by default, (Verisign, Go Daddy, etc), will avoid certificate issues with external users, until they trust the certificate, at least, but that's not ideal. Your internal users will be fine, as it's likely already trusted through Group Policy settings.
... View more
05-18-2017
08:26 AM
|
2
|
1
|
1416
|
|
POST
|
You'll need two web adaptors for your deployment, (one for Server and one for Portal), and yes, you'll definitely need a valid CA signed certificate on your web server to support HTTPS.
... View more
05-17-2017
08:02 PM
|
2
|
3
|
1416
|
|
POST
|
None of your pictures came through but it sounds like you're interested in script tool validation, which is only possible using Python and a script tool. If that's the case, you'll want to use a filter to find the fields in the input and then update a parameter based on those fields.
... View more
05-17-2017
10:07 AM
|
0
|
1
|
873
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-28-2026 06:05 AM | |
| 1 | 08-26-2016 10:10 AM | |
| 2 | 02-22-2024 07:22 AM | |
| 1 | 06-07-2024 07:11 AM | |
| 4 | 12-12-2024 08:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
07:43 AM
|