POST
|
Hi Geonet community, I am trying to use the Python API in Jupyter Notebook to test the availabilit of ArcGIS Server feature services. When a service is inaccessible an error message in pink is output from the notebook cell, but no exception is raised. I would like to capture these issues to use elsewhere, is there a way to capture either the error outputs from the cell, or have the API raise an exception? Thanks Andrew
... View more
03-15-2024
07:15 AM
|
0
|
1
|
144
|
POST
|
Hi @MohammedZaki , no - I came to the same conclusion that this is a bug but wasn't able to have it logged. Good to know it works on SQL Server so the bug report can be targetted. Andrew
... View more
12-21-2023
12:46 AM
|
1
|
0
|
214
|
POST
|
It's a few years now, but thank you for sharing the answer to your own question Carlos. I came across it looking for a postgres equivalent for these examples in the documentation which are only given for Oracle and MySQL:, Example: Resolving domain codes to description values using SQL
... View more
12-01-2022
05:59 AM
|
0
|
0
|
651
|
POST
|
Hi @PeterDelgado, You are not alone - I have the exact same problem - I created a sample survey with just two questions and a choice filter on the second. The second question is saved correctly. When a survey response is loaded from the inbox, the response on the filtered question is empty, and you have to select another option in the previous question, select the original, and reselect the option in the filtered question. In the much more complex survey where I have this problem, you can actually see the choice being loaded where it appears in red, then disappearing. Questions that are readonly are not affected and retain their values. The basic survey is pretty much the same as your example; type name label choice_filter select_one canton admin1 Select a Canton select_one village village Select a village admin1=${admin1} I'm using Survey123 Connect 3.15.165, and the field app 3.15.145, with ArcGIS Enterprise 10.9.1. This worked before so I think was possibly introduced at v 3.15 I have logged a case with ESRI support who have logged BUG-000150592. For now the workaround is to either to disable the choice filter when the survey is being edited, or remove the minimal appearance from the question; if(pulldata("@property", 'mode')='new',admin1=${admin1},true()) This doesn't delete the responses any more, however the user then sees the entire choice list. Andrew
... View more
07-02-2022
06:40 AM
|
0
|
0
|
538
|
POST
|
It's strange, on the response tab I can see the sum's being calculated and returned by number, but somehow they aren't parsed into the featureset. t3 is the quantity field: and the request: [{"onStatisticField":"quantity","outStatisticFieldName":"T3","statisticType":"sum"},{"onStatisticField":"objectid","outStatisticFieldName":"T4","statisticType":"min"}] Comparing the response from the hosted and non-hosted feature services, the non-hosted service includes these additional properties describing the service. Possibly this is what's causing arcade to have trouble parsing the response - as otherwise the responses are identical from the two services; exceededTransferLimit, globalIdFieldName, objectIdFieldName
... View more
06-28-2022
03:59 AM
|
0
|
0
|
628
|
POST
|
Thanks Josh for replying, the expression wasn't to count on objectid, I have updated my pseudocode with a better example. I'm actually trying to pivot from the repeat table in a Survey123 survey, and sum up different attributes like a quantity that is recorded in the repeat. We did try to use database views but these have limited support in dashboard - usually problems with the summary statistics being disabled on the resulting feature service, hence trying the expressions approach. The postgres db is handling the request well, and I can see the values being returned by the query to the feature layer, it just seems the arcade engine (?) isn't able to parse them when it's from a non-hosted service and I can't see why.
... View more
06-24-2022
08:34 AM
|
0
|
2
|
655
|
POST
|
Hi dashboard community, I'm trying out Arcade data expressions in ArcGIS Enterprise 10.9.1 (so Arcade 1.15). When looking for statistics/summary values with the GroupBy function on a non-hosted feature layer, the data expression doesn't seem to parse the results of the statistics. var portal = Portal('https://myportalurl/portal');
var fs = FeatureSetByPortalItem(
portal,
'b10d26459a3e415f856a8310da14accc',
1,
[
'parentrowid',
'quantity'
],
false
);
return GroupBy(fs, ['parentrowid'],
[{name: 'count_features', expression: 'quantity', statistic: 'SUM' }]); Returns: The same data expression against a hosted feature layer works correctly. The feature layers support statistics, and I see them returned correctly by the rest service, but they dont appear in my expression. Is there a known limitation using Arcade with these feature services? Thanks, Andrew
... View more
06-24-2022
04:48 AM
|
0
|
6
|
728
|
POST
|
Hi Ken, My reply isn't super focussed, but I thought I'd chip in as a neighbour 😉 Did you recently upgrade to 10.9.1? We had a similar issue where following the upgrade the server behaved as if it was short of resources, some feature services (with the data in an enterprise geodatabase/Postgres) performing very poorly, or not starting at all. Publishing new services was difficult. The logfiles in the ArcGIS Server Manager had lots of unhandled exceptions like "Failed to construct instance of service 'service_name.MapServer'. Unable to instantiate class for xml schema type: CIMMap" etc.. Although the server did have plenty RAM and CPU capacity available it seemed to be due to some size limits being hit as this machine was also serving a near global audience with lots of services. Behaviour similar to in this forum post - https://community.esri.com/t5/arcgis-enterprise-questions/large-arcgis-server-site-stability-issues/td-p/178852. For us the solution was to switch to shared instances instead of dedicated, and this really helped. It may be an option, though doesn't explain the incredibly chatty requests to the REST service that you are seeing I'm afraid.. Other suggestions from me would be to check that the data is indexed, possibly drop and rebuild the spatial index if appropriate? Andrew
... View more
04-22-2022
05:39 AM
|
2
|
4
|
1522
|
POST
|
Hi Survey123 community, Has anyone else experienced this error since upgrading to 10.9.1? We are using Survey 123 with Feature Services in Portal, against an enterprise geodatabase (not hosted). Our users are encountering an intermittent error when refreshing the inbox, that survey 123 is unable to retrieve related records. The feature service is working correctly, and we can query the relationship for the desired objectid's fine using the rest API. When looking at the Survey123 logs it seems to be mixing up the relationship id's and querying the wrong relationship - because the query contains attributes that don't exist in the other relationship, the query fails with error 400. Republishing the Survey123 form with the most recent Survey123 Connect seems to resolve the issue. The Survey123 field app log shows; <10>1 2022-02-15T13:13:18Z L999 ArcGISSurvey123 18372 - [AppStudio@11205 category="PortalRequest" function="onFailed" filename="PortalRequest.qml" line="116"] PortalRequest: PortalRequest failed url: https://myportal.org/server/rest/services/myservice/FeatureServer/1/queryRelatedRecords error: { "code": 400, "details": [], "extendedCode": -2147467259, "message": "Unable to complete operation." and when we look at the query being constructed, it is building a query to the wrong relationship vs the feature service. That relationshipId is for another layer, that doesn't contain the same attributes. If I submit the same query against the feature service, for the wrong relationshipId I get the same error as Survey123. <15>1 2022-02-15T13:13:18Z L489 ArcGISSurvey123 18372 - [AppStudio@11205 category="SurveyFolderPageInbox" function="addRelatedQueries" filename="SurveyFolderPageInbox.qml" line="711"] SurveyFolderPageInbox: relatedQueries: 3 <15>1 2022-02-15T13:13:18Z L489 ArcGISSurvey123 18372 - [AppStudio@11205 category="PortalRequest" function="next" filename="SurveyFolderPageInbox.qml" line="456"] PortalRequest: related query body: { "objectIds": "5602,5603,5604,5605", "relationshipId": 3, "outFields": "objectid,globalid,last_edited_date,last_edited_user,created_date,created_user,activity_task_id,activity_id_points,task_point_label,parentrowid", "outSR": 4326, "returnGeometry": true, "returnZ": true, "returnM": false ... Looking at the feature service page, the attributes in bold belong to a different relationship (in this case it's relationshipId 4). The relationships section of the feature layer; "relationships": [
{
"id": 2,
"name": "activity_polylines",
"relatedTableId": 3,
"cardinality": "esriRelCardinalityOneToMany",
"role": "esriRelRoleOrigin",
"keyField": "uniquerowid",
"composite": true
},
{
"id": 3,
"name": "activity_polygons",
"relatedTableId": 4,
"cardinality": "esriRelCardinalityOneToMany",
"role": "esriRelRoleOrigin",
"keyField": "uniquerowid",
"composite": true
},
{
"id": 4,
"name": "activity_points",
"relatedTableId": 2,
"cardinality": "esriRelCardinalityOneToMany",
"role": "esriRelRoleOrigin",
"keyField": "uniquerowid",
"composite": true
},
{
"id": 0,
"name": "tasks",
"relatedTableId": 0,
"cardinality": "esriRelCardinalityOneToMany",
"role": "esriRelRoleDestination",
"keyField": "parentrowid",
"composite": true
} Appreciate any tips on how to avoid this happening, as it isn't ideal to republish and re-download the survey when it occurs. We are publishing using connect version 3.13.251, and field app 3.13.246. The surveys were originally published some time ago with an older version of connect, and it seems republishing them with the latest version (following the portal upgrade) corrects the issue. Thanks, Andrew
... View more
02-15-2022
05:52 AM
|
1
|
1
|
559
|
POST
|
Hi Zach, Thanks for your response, sorry I've taken a bit of time to get back to you after the holiday period. I'll update the remaining services through the rest API. In the meantime tech support have logged BUG-000145620 in case anyone else encounters the same issue and wants to be associated with it. Happy new year to all in the Survey 123 space 🙂 Andrew
... View more
01-03-2022
03:46 AM
|
0
|
0
|
2343
|
POST
|
Hi Survey123 community, Following an upgrade of our ArcGIS Enterprise to ArcGIS Portal/Server 10.9.1, hosted feature services that were created from Survey 123 Connect with a survey start and end time started returning an error on query; {"error":{"code":500,"message":"JSONObject[\"respectsDaylightSaving\"] not found.","details":[]}} This error is only returned for queries with the the start and end times in the outputFields, if manually querying the feature service for different attributes then the data is returned OK. In the feature service definition, Survey123 Connect has created the feature service with a time zone defined, and the property: respectDaylightSaving (note the difference from the error, where it is looking for respectsDaylightSaving). The timeInfo section of the layer definition in the feature service looks like this; "timeInfo": {
"startTimeField": "survey_start_dt",
"trackIdField": null,
"endTimeField": "survey_end_dt",
"timeInterval": 0,
"timeExtent": [],
"timeReference": {
"timeZone": "UTC",
"respectDaylightSaving": false
},
"hasLiveData": false,
"timeIntervalUnits": "esriTimeUnitsMilliseconds" Using the Server Administration API I can change the time zone definition to instead have the property respectsDaylightSaving. This corrects the error, and all queries return correctly. The new timeInfo section of the service is below; "timeInfo": {
"timeReference": {
"timeZone": "UTC",
"respectsDaylightSaving": false
},
"timeInterval": 0,
"timeIntervalUnits": "esriTimeUnitsMilliseconds",
"hasLiveData": false,
"trackIdField": null,
"startTimeField": "survey_start_dt",
"endTimeField": "survey_end_dt",
"timeExtent": []
} While that resolves the problem, it isn't ideal to manually edit all services created by Survey123. Does anyone know which is the correct definition? Is the bug with ArcGIS Server 10.9.1 in looking for respectsDaylightSaving, or is the bug in Survey123 connect for creating the service with the respectDaylightSaving property on the time zone? The only reference I can find is in this ESRI blog post from last year that indicates it should be respectsDaylightSaving. Recreating the Error We are using Survey 123 Connect 3.13.246, and i can recreate the issue by publishing a new service using any template and adding the survey start and end times to the XLSForm; type name label start survey_start_dt Survey Start Time end survey_end_dt Survey End Time Once the survey is published, and the hosted feature service created by Survey123 connect, if I then submit some records into the new hosted feature service it will start returning the respectdaylightsavings error above. Thanks for any help resolving this, I have also submitted a support case for the issue (#02958232). Andrew
... View more
12-16-2021
05:20 AM
|
7
|
12
|
2759
|
POST
|
Thanks for adding support for file attachments in surveys 🙂 Of course this leads to other ideas.. Is it possible to use or access the contents of an attached file within the Survey? Either through a calculation, or I guess more likely in a pulldata javascript function? I have a file question in my survey, and when referring to it in calculation only the file name + i guess its internal item id is returned. Before I pursue other options to parse the files after submission, i just wondered if there was a way to do so in the survey? I'm thinking along the lines of validating a CSV using Javascript and using some of the content to populate repeat questions. Thanks Andrew
... View more
03-04-2021
02:01 PM
|
0
|
1
|
349
|
POST
|
Hi all, I have a feature service published from ArcGIS Pro with some attributes set as read only to prevent editing. These fields have editable:false in the feature service as expected. activity_start_dt ( type: esriFieldTypeDate, alias: Activity Date, editable: false, nullable: true, length: 8, defaultValue: null, modelName: activity_start_dt ) When publishing a Survey123 with the same questions also as read only (this survey is for Inbox use), Connect returns the error that the read only attributes are read only, yet this is for read only questions. Is this a known issue or is there something else I can do in my Survey XLSForm to enable publication? I would prefer the read-only nature of some attributes to be enforced at the feature service to prevent editing by users directly through the portal. Thanks for any suggestions, Andrew
... View more
12-23-2020
06:07 AM
|
1
|
1
|
620
|
BLOG
|
Thanks for the detailed post Ismael, which almost a year on is still super helpful When using the grid theme on select_multiple question, they seem to default to horizontal appearance - this can cause problems with longer labels or choice lists. Is there a way to set the appearance of a select multiple in a grid back to the normal 'vertical' appearance? I tried to set a height or defaultHeight style but this had no effect. e.g. see precipitation from the grid example below where the words in the labels are split as the options are compressed into the row:
... View more
10-16-2020
05:47 AM
|
1
|
0
|
53710
|
POST
|
Hi Philip, Is there any updates on when or if this is possible? I have a similar user requirement where surveys are reviewed via the inbox, and sometimes there accidental duplicates of repeats, or repeats that should be removed. If there's an update that delivers this coming soon we can hold on a bit, but otherwise I can implement a different workflow e.g. with the user adding a delete flag on the record that deletes it further down the line. Thanks Andrew
... View more
10-06-2020
06:43 AM
|
1
|
3
|
3144
|
Title | Kudos | Posted |
---|---|---|
1 | 12-21-2023 12:46 AM | |
1 | 10-06-2020 06:43 AM | |
1 | 02-15-2022 05:52 AM | |
2 | 04-22-2022 05:39 AM | |
7 | 12-16-2021 05:20 AM |
Online Status |
Offline
|
Date Last Visited |
03-18-2024
09:34 AM
|