POST
|
Arthur, I don't know if this will help you, but I thought I'd take a shot anyways. The query string parameters for your token request, specifically the 'client=requestip' part I believe binds that token to the IP address that made the request. If you're using that token from a different machine, that may contribute to your error. Have you tried making a token request using a referer? I do this all the time and its effective for my workflows. Instead of 'client=requestip' you would use 'client=referer&referer=<some url>'. Be sure that when you're querying your Survey123 feature service that the web request uses that same referer URL or you will be back where you started. Full disclosure, I don't use Survey123, but I did write a Windows service that syncs my company's proprietary geospatial data with ArcGIS Online's feature services. I hope this helps. Cheers.
... View more
09-15-2021
07:00 PM
|
0
|
0
|
421
|
POST
|
I embed Web AppBuilder applications into another application and I'm having an intermittent issue authenticating. Some of the underlying data needs to be protected so I generate a token for authentication. I had an issue where the credentials could be viewed with browser dev tools (a no-no), so I have a proxy page that, given an ID will fetch the credentials out of a secure data store and send the token request to AGO. This works well, except for an intermittent issue where I get the following JSON from my token request: {"error":{"code":400,"message":"Unable to generate token.","details":["Too many generate token requests. Please try again later."]}} When this happens, my apps will not load on the first try, but may load just fine on subsequent tries. We have a lot of these apps, so finding the cause of this issue is paramount. Is there anyone that can comment on how many token requests an AGO/portal organization can receive before sending this error? My google searches have turned up nothing.
... View more
07-19-2021
05:51 AM
|
0
|
1
|
686
|
POST
|
If you're working with the WAB SDK like I am, I constantly run into the 400 Invalid redirect_url issue. Here's how I resolve it: In AGO I create a new application. In the new UI select the 'other application' application type. Fill out the required fields and save it. If you've already done this, you can skip this step. Next I go to the settings tab for my newly created application and scroll to the bottom. There's a button labeled 'Update'. Click it. In the redirect URI field, I use the fully qualified domain name (http://mymachinename.domain.com:3344). If you don't know your machine name, you can open a command prompt and type in 'hostname' and hit ENTER. The 3344 port is the default port for WAB SDK. I also add a redirect URI for https connections as well (https://mymachinename.domain.com:3345). Adjust the ports appropriately if you're using different ones. Click Update button. In the WAB SDK folder, there is a file called signininfo.json. If you see it, delete it. Launch your WAB home page, enter the App ID and other required info, and you should be on your way to creating your next app. HTH
... View more
07-19-2021
05:29 AM
|
0
|
0
|
545
|
POST
|
Greetings Everyone! I seem to be running into a peculiar issue with my Portal for ArcGIS installation. I created some hosted feature services programmatically using the REST API. I am able to add and remove features from the service. When I add attachments to the objects, I get a positive response. When I view the data for a layer, the Photos and Files column shows 0 items. If I click on the Add link, all the attachments I was expecting to appear are in the list. I use the Query Attachments REST endpoint to query the attachments on a layer and I get "Error performing queryAttachments operation" message no matter what I input into the fields, even if it's a known attachmentID or globalID. What really makes me think this is a bug is the following errors in my admin logs: Type Message Time Target Machine User Code Time Elapsed Process Thread Method Name Request ID SEVERE Error performing queryAttachments operation operation not implemented yet. "layers/0: queryAttachments" 2020-03-25T15:12:51 Rest mygismachine 9000 11228 1 2f335940-db29-466c-90a5-bf9aa8850a1f I am running ArcGIS Enterprise 10.7.1 with my Portal federated to it. I don't have any external authentication set up like Active Directory or SAML. I have ArcGIS Data Store set up and it appears that my AGS server can talk to it. I doubt I'd be able to store feature service data without it. Anyone out there experience this, or have a workaround? Any help is greatly appreciated. Stay safe, Hasheen
... View more
03-25-2020
01:32 PM
|
2
|
2
|
1830
|
POST
|
Greetings, I have a Portal for ArcGIS that I am trying to add a feature service to using the REST API. So far I've had success creating the service itself. When I try to add layers to it, I get a peculiar error message: { "error": { "code": 403, "subcode": 2, "message": "Access to admin resources are not allowed, Signed Request needed for 'AddToDefinition' with table", "details": [] } } This message appears when I try to use the server admin interface to add the layer definition as well. Attached is the layer definition JSON. I should say that I have used the same definition to create layers on a hosted feature service in ArcGIS Online with success. Does anyone have suggestions on how I can add feature layers to a service using the REST API on Portal? Thanks in advance.
... View more
12-02-2019
06:41 AM
|
3
|
1
|
2008
|
POST
|
I did some research on signed requests and my sources suggest that the AddToDefinition endpoint on Portal may require a signature or HMAC hash added to the request header (Signing AWS API Requests - AWS General Reference ). If this is the case, does anyone know the ingredients to calculate this hash for Portal?
... View more
11-22-2019
07:36 AM
|
0
|
0
|
924
|
POST
|
Greetings, I have a Portal for ArcGIS that I am trying to add a feature service to using the REST API. So far I've had success creating the service itself. When I try to add layers to it, I get a peculiar error message: { "error": { "code": 403, "subcode": 2, "message": "Access to admin resources are not allowed, Signed Request needed for 'AddToDefinition' with table", "details": [] } } This message appears when I try to use the server admin interface to add the layer definition as well. Attached is the layer definition JSON. I should say that I have used the same definition to create a hosted feature service in ArcGIS Online with success. Does anyone have suggestions on how I can add feature layers to a service using the REST API on Portal? Thanks in advance.
... View more
11-22-2019
06:24 AM
|
0
|
1
|
1088
|
BLOG
|
Greetings all! Just so I'm clear on nomenclature, does this announcement affect users of the Web AppBuilder for Windows app? The screenshot doesn't look like anything I'm working with, but just want to be sure. Thanks for your help. Best, Hasheen
... View more
10-23-2019
09:59 AM
|
0
|
0
|
2365
|
POST
|
Is there a release date set for the ArcGIS apps coming in enterprise, namely Tracker? I would like to learn more about this feature. Thank you for your help.
... View more
07-16-2018
09:01 AM
|
0
|
1
|
537
|
POST
|
After consulting with ESRI support, this service is at the mercy of the data that created it. There was an enhancement request submitted that requested that the postal code value include all six characters that was later closed. The reason being is that the data supplied to create the locator doesn't provide 6 character postal codes. We'll work around it. Thank you for all who replied.
... View more
10-19-2017
06:12 AM
|
1
|
0
|
615
|
POST
|
Greetings, I should preface this question by stating that I live in the United States and I have a rudimentary at best understanding of international postal codes. That being said, I noticed what I think is a peculiar occurrence when searching for address candidates using the ESRI World Locator. I searched for an address in Fort Erie, Ontario, Canada using this locator and the JSON result featured only half of the postal code. Here is a part of what was returned: { "spatialReference": { "wkid": 102100, "latestWkid": 3857 }, "candidates": [ { "address": "168 Garrison Rd, Fort Erie, Ontario, L2A", "location": { "x": -8785206.4957934171, "y": 5297617.1858132156 }, "score": 100, "attributes": { "Loc_name": "World", "Status": "M", "Score": 100, "Match_addr": "168 Garrison Rd, Fort Erie, Ontario, L2A", "LongLabel": "168 Garrison Rd, Fort Erie, Ontario, L2A, CAN", "ShortLabel": "168 Garrison Rd", "Addr_type": "PointAddress", "Type": "", "PlaceName": "", "Place_addr": "168 Garrison Rd, Fort Erie, Ontario, L2A", "Phone": "", "URL": "", "Rank": 20, "AddBldg": "", "AddNum": "168", "AddNumFrom": "", "AddNumTo": "", "AddRange": "", "Side": "L", "StPreDir": "", "StPreType": "", "StName": "Garrison", "StType": "Rd", "StDir": "", "BldgType": "", "BldgName": "", "LevelType": "", "LevelName": "", "UnitType": "", "UnitName": "", "SubAddr": "", "StAddr": "168 Garrison Rd", "Block": "", "Sector": "", "Nbrhd": "", "District": "Fort Erie", "City": "Fort Erie", "MetroArea": "", "Subregion": "Niagara", "Region": "Ontario", "RegionAbbr": "ON", "Territory": "", "Zone": "", "Postal": "L2A", "PostalExt": "1M4", "Country": "CAN", "LangCode": "ENG", "Distance": 0, "X": -78.918852693173292, "Y": 42.90561948456368, "DisplayX": -78.918862500000003, "DisplayY": 42.905277000000012, "Xmin": -78.919862500000008, "Xmax": -78.917862499999998, "Ymin": 42.904277000000015, "Ymax": 42.90627700000001, "ExInfo": "" }, "extent": { "xmin": -8785318.9069751669, "ymin": 5297413.1613209005, "xmax": -8785096.2679935787, "ymax": 5297717.1135389088 } }, This is the URL that produced this result: https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?token=<token>&f=pjson&singleLine=168+Garrison+Rd%2c+Fort+Erie%2c+ON%2c+Canada&outSR=102100&outfields=* I have some code that is breaking due to an address with half of a postal code failing validation. I know that I can look for the "postalExt" outfield and get the rest of the postal code in a pinch. Should the address candidate display the entire postal code in its results?
... View more
10-16-2017
07:39 AM
|
0
|
1
|
873
|
POST
|
Greetings and Happy New Year to everyone! I was wondering if anyone knew of a library in JS, python, or really any other language that is capable of converting Lat/Long into Alberta Township System coordinates and vice-versa. My searches of the internet have not been fruitful so far. I just don't want to reinvent the wheel if there are wheels rolling out there. Thank you for your help. Best, HD
... View more
01-02-2017
12:07 PM
|
0
|
1
|
1773
|
POST
|
Hi Stephanie, The TimeSlider class itself has a method you can call called getCurrentTimeExtent() which returns a TimeExtent object that has your beginning and ending date/time for the current time slice. You can also subscribe to the time-extent-change event on the slider which passes the current time extent to your callback. I do the latter in order to format the time displayed on my time slider to whatever my end user configures it to. Some samples for that are here. HTH, Hasheen
... View more
11-02-2016
08:53 AM
|
1
|
0
|
895
|
POST
|
Hello, I believe I found a solution to the problem I was having. I should also better describe what I was trying to achieve: I wanted a way for a map service layer to only display data for a specified time extent, even if the layer had data outside of that time extent. The FeatureLayer object does exactly that with something called a time definition. Now I can constrain a dense time-aware data set (think historical weather data) to only a small time frame, potentially improving performance of my maps. Thanks to all who replied. Best, Hasheen
... View more
09-20-2016
12:59 PM
|
0
|
0
|
895
|
POST
|
Hi Rickey, Thank you for your reply. I can get the current time and thumb position on the slider. What I'm looking for specifically is when a time-aware operational layer is on the map and the time slider is advancing, I would like that particular layer to only display the features that match the rightmost thumb position. For example, if I have a radar layer on my map and the time slider is advancing the imagery west to east, I'd only like to display the feature(s) contained in the rightmost thumb position all the time, while other time-aware layers on that same map would display whatever features the current thumb position calls for. I should also point out that I do not have access to the layer in question. I'm essentially looking to do a temporal query on a time-aware layer that ignores the time slider's time-extent-change events. I hope my explanation isn't as clear as mud. Thanks again!
... View more
09-12-2016
10:49 AM
|
0
|
2
|
895
|
Title | Kudos | Posted |
---|---|---|
1 | 10-19-2017 06:12 AM | |
1 | 11-02-2016 08:53 AM | |
2 | 03-25-2020 01:32 PM | |
3 | 12-02-2019 06:41 AM | |
1 | 06-24-2016 06:09 AM |
Online Status |
Offline
|
Date Last Visited |
Monday
|