IDEA
|
This essential WAB developer functionality. I’d love to be able to sell my custom widgets and be able to support both ArcGIS OnPrem and ArcGIS Online releases.
... View more
02-21-2022
03:41 PM
|
0
|
0
|
1058
|
POST
|
change l.query(return_all_records=False, result_record_count=5, return_ids_only=True) to l.query(return_all_records=True, return_ids_only=False) and it does not work
... View more
02-19-2022
08:38 AM
|
0
|
0
|
710
|
POST
|
Thanks Josh, cleaner code (updated above), but it didn't solve the issue. Yes, I've tried providing parameters, including 1=1 This is on AGOL. I haven't tried it on a Portal instance Thanks!
... View more
02-18-2022
01:43 PM
|
0
|
2
|
916
|
POST
|
Hello and greetings: Executing the code below will explain everything (I hope). When the API consumes a Feature Layer with multiple sublayers, it fails to execute a query on the second thru nth sublayer. The API complains that there it cannot perform the operation because I'm using invalid query parameters. More importantly, I just want to perform a query on a sublayer and to be able to specify the which sublayer to query. Any thoughts? def main():
target_item_string = "_USE_AN_ITEM_ID_TO_GET_A_FEATURE_LAYER_"
gis = GIS("https://YOUR_DOMAIN.maps.arcgis.com", "superuser", "T0p5Ecr3T")
result = gis.content.get(target_item_string)
for layer in result.layers:
query_result = layer.query()
# do something with the query_result TIA
... View more
02-18-2022
01:17 PM
|
0
|
4
|
946
|
POST
|
In ArcGIS Enterprise 10.8.2. I have a Feature Layer that is a hosted feature service that was created by publishing a Survey123 from Survey123 Connect. It is hosted in the ArcGIS DataStore. The survey/feature layer has over 400 questions/fields. Unbeknownst to us until after the Survey123 had been in production and collected lots of data, the capabilities did not include the Query Capability (we're not sure exactly when this happened or if it's always been that way). Although this has not affected Survey123, the maps, and the dashboards, the APIs are affected affected. because there is no query capability. I cannot query the Feature Layer in code. I have attempted to use the REST API, ArcPy, and the Python API for ArcGIS. In all cases I get an error with the content "Capability 'Query' is not set on the layer.". The REST API exposes it as a 500 error. I can tell that there is no query capability by looking at the Feature Layer's REST endpoint. At the bottom of the page under "Supported Operations", there is no "Query". All I want to do is rescue the Feature Layer by enabling Query. This is not documented anywhere that I can find. The other options to migrate and publish a new Feature Layer is unappealing because we already have several month of production data, and because there is no query capability, I cannot script it. TIA
... View more
11-10-2021
12:27 PM
|
4
|
5
|
4717
|
POST
|
None of the existing geonet posts searching on "An error occurred while generating reports" seem to address the issue I am experiencing. I have a Survey123 that is long and moderately complex: 400+ line items, a handful of calculations and a handful of relevant calculations. Sorry, I can’t share the template, as it is proprietary. In survey123.arcgis.com, I select the survey, select the “Data”, generate a sample template (successful), then generate a sample report . At the end of the process I get an error : with no other information. When I attempt to Generate a report . After attempting to generate the report I get the error with no other information. When I click on the “Show details” link I see this: Clicking “More details” shows this: If I remove all fields from the report template, it successfully creates the report. If I leave just one field in the report template, it fails to successfully create the report with the error: Questions: How do I troubleshoot this, especially for such a long survey? Any idea what’s causing this issue and how to resolve it? TIA
... View more
09-24-2021
08:40 AM
|
1
|
1
|
737
|
POST
|
I have a TEXT field with a calculated value: The value is based on the selected value of a SELECT_ONE field named “structure_type”. The calculation is essentially serial string of if statements checking the selected value of “structure_type” and calculating the value of the TEXT field to some value. if(selected(${structure_type}, "B-85"), "34 ft 7 in", "") or if(selected(${structure_type}, "B-85OP"), "34 ft 7 in", "") or if(selected(${structure_type}, "B-90"), "34 ft 7 in", "") or ... In a device Survey123 the TEXT field is correctly calculated: In the web Survey123, the TEXT field is incorrectly calculated: Note that the web Survey123 treats the calculation as a Boolean, whereas the device Survey123 performs the desired calculation. My question is: How can I perform the calculation correctly on both the device and the web? TIA
... View more
09-21-2021
01:49 PM
|
0
|
1
|
392
|
POST
|
Update: I've accomplished this with the ArcGIS REST API and a POST and the import requests What I'd really like to do is use the Python API for ArcGIS: e.g., cr_lyr.attachments.add(1, 'C:\\Users\\rohit\\AppData\\Local\\Temp\\AppTemplate.png')
... View more
09-21-2021
07:26 AM
|
0
|
0
|
777
|
POST
|
By "local" content, I mean (mostly) files. JPGs, spreadsheets, text files, etc. These artifacts can be obtained requesting a REST endpoint which can return the contents of a file (the binary) On ArcGIS Notebook Server I would like to obtain a file's binary, and do something with it, like attach it to a feature. According to the documentation (https://developers.arcgis.com/python/guide/using-attachments-with-feature-layers/) the attachments.add method requires a path to a file (e.g., C:\\Users\\rohit\\AppData\\Local\\Temp\\AppTemplate.png) , however Notebook Server is not aware of the file system. I've attempted to write the binary to a Python tempfile (https://docs.python.org/3/library/tempfile.html), which successfully writes the file but, it's not usable as an attachment. Notebook Server on AGOL throws an error of : Exception: Unable to complete operation.
Adding of attachment failed.
(Error Code: 400) Executing the on ArcGIS Python API on my local box returns an error of: [WinError 2] The system cannot find the file specified: 'C:\\Users\\XXXXXXX\\AppData\\Local\\Temp\\tmpikjawae3' tmpikjawae3 is the name of the file in my temp directory There are tons of other things I'd like to do: carve into text files, create attachments, connect with automations... Is what I'm asking about possible?
... View more
09-17-2021
03:17 PM
|
0
|
2
|
842
|
POST
|
Thank you for your prompt response, Zhifang! I will answer your questions below (pardon the bolding). I have also attached a Survey123 design in which I reproduced the error. If you are not able to recreate the error, that indicates something systemic on my side. Also, I was able to reproduce the issue in Survey123 Connect on a different computer - both using the survey I attached here and a new survey. Edit: I changed the question type to file and I am able to select multiples. When I change it back to image I am no longer able to select multiples. Using the type file is not an option because users will sometimes use the device camera. When/how long did this issue occur? The issue "suddenly" appeared yesterday and was noticed by one of our users. Around the time when the issue occurred, is there any update to the survey (e.g. republishing), browser, Windows OS (the screenshot you shared is in Windows), or ArcGIS Enterprise? I had added a constraint (count-selected(${photos})<100) to the image question. However, other surveys where I made no changes in months showed this issue as well. For those users who encountered this issue, what browser do they use? Chrome, Firefox, new Microsoft Edge, IE11 or Edge legacy? Generally our users are on Chrome, although some use Edge. What is the version of your ArcGIS Enterprise and what type of authentication does it use (e.g. built-in, IWA, LDAP...)? 10.8.1 and both Enterprise and internal logins have show this issue. Which version of Survey123 Connect did you use to publish the survey? 3.12.232 IIRC I upgrades a couple of months ago. Can you please share a portion of your XLSForm that can reproduce this issue? Attached. Thanks again for you help and I look forward to hearing from you soon. Regards, Dirk Vandervoort
... View more
07-15-2021
07:29 AM
|
0
|
1
|
1173
|
POST
|
We are using Portal and not AGOL. I have numerous surveys that have an image question with a multiline appearance. Users are on the web flavor of Survey123 - they need to be able to attach up to several 10's of photos to a survey. These are photos sitting on a file folder. Therefore, to make things easier for the user, he/she will select numerous photo from the pick images dialog. This has worked well - see attached photo Now, and all of a sudden, this functionality is not working in Survey123 web - the pick image dialog only allows users to select one - and only one - photo. Because we have so many surveys in the field, it is difficult to determine which ones work and which one's don't (some do and some don't - even with identical question type configurations). So this is very frustrating and we're getting complaints from our users that the "select multiple photos" is no longer working. It seems to have occurred spontaneously - which is even more frustrating. My question is: How can I ensure that the select multiple dialog works for our Survey123 users? Setting Appearance to "multiline" no longer seems to "just work", and - most annoyingly - appears to have ceased working spontaneously. Any guidance or experience with these conditions would be greatly appreciated.
... View more
07-14-2021
03:43 PM
|
0
|
4
|
1238
|
POST
|
Greetings all: I'm working with On-prem Enterprise Portal, Integromat and Survey123 on devices (no web Survey123 edits): Looking that the contents of a Survey123 in an Integromat watch survey module, when a survey is submitted or edited, it carries with it a Portal for ArcGIS token: I would like to use that token later - say hours or days later - to perform edits on the feature service using the REST API. My questions are: How long is the token valid for before it times out (by default? Can I specify the token timeout in a Portal or Survey123 setting? Thanks in advance!
... View more
10-20-2020
09:32 AM
|
0
|
1
|
421
|
POST
|
Survey123 v. 3.10.323 We have a workflow where an inspector will need to edit and resend a survey. There are times when an inspector will want to add an additional photo to the survey. In the spreadsheet, the image is given an appearance of multiline and given bind::esri:parameters of allowUpdates=true allowAdds=true, thereby enabling edits (in theory – see https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm). However, when the inspector opens an existing survey from the Sent box, the multiline image is not enabled. The screenshot shows no edit tools (add/remove). The 3-dot menu only allows the photo to me moved: Is there a setting where I can override this default behavior? Or is this just how Survey123 works.
... View more
09-24-2020
03:39 PM
|
0
|
2
|
692
|
POST
|
At the UC they were saying July 23. Today is August 4. I have users that are requesting functionality that's in this new release. Cheers!
... View more
08-04-2020
03:54 PM
|
1
|
8
|
1091
|
POST
|
I would like populate an answer for an existing survey based on the value entered previously when the survey was opened and edited before. For example I have text box named mytime that uses a function to pre-populate the answer with the string "First Time" when the survey is created the first time. Then, when the survey is opened subsequent times, the following pseudo-function get fired if(${PREVIOUS_VALUE_FOR_mytime} = "First Time", "Another Time" ,${PREVIOUS_VALUE_FOR_mytime}) value from first opening gets checked against "First Time" and either changes it to "Another Time" sets the initial value to "First Time" In other words, I need to get values for the survey that are persisted in storage before the existing survey gets opened in Survey123. Can this be done? If yes, how? In particular, how do I "see" those persisted values to do things and make decisions with. TIA
... View more
06-30-2020
01:32 PM
|
0
|
1
|
329
|
Title | Kudos | Posted |
---|---|---|
4 | 11-10-2021 12:27 PM | |
1 | 10-02-2019 10:47 AM | |
1 | 09-24-2021 08:40 AM | |
1 | 06-10-2015 08:10 AM | |
1 | 01-29-2016 11:14 AM |
Online Status |
Offline
|
Date Last Visited |
05-05-2023
03:51 AM
|