|
POST
|
We are experiencing a production issue with a long-running Survey123 survey whose parent hosted feature layer contains 907 fields and currently has approximately 503 records. The survey and feature layer worked previously, but multiple Survey123 and ArcGIS Online functions recently began failing with the following error: Cannot perform query. Invalid query parameters.
'SQL query is nested too deeply. Rewrite the query or break it up
into smaller queries.' parameter is invalid
Error Code: 400 We performed controlled testing through the ArcGIS REST Services Directory to isolate the problem. Controlled REST query results Test settings: where=1=1
returnGeometry=false
resultRecordCount=1
Request method=POST Results: 796 explicitly requested fields = succeeds
797 explicitly requested fields = fails
907 fields / outFields=* = fails We tested multiple different field combinations rather than only the first fields in the schema. The following all succeeded: First 796 fields Last-heavy combination of 796 fields Middle-field combination of 796 fields Split beginning/end combination of 796 fields Evenly distributed 796 fields Multiple randomized combinations of 796 fields Multiple different combinations containing exactly 797 fields failed with the same nested-SQL error. We also tested the field located at position 797: That field works when requested by itself. The first 795 fields plus that field also work because the total is 796. Therefore, we have not identified a particular defective field. The failure appears to be based on the total number of requested fields. Survey123 Field App Inbox refresh fails with: Cannot perform query.
Invalid query parameters.
Code 400 We tested two different Field App versions, and both produced the same result: Survey123 Field App 3.1
Survey123 Field App 3.25 Survey123 website The Survey123 Data page recognizes the record count and displays approximately: 503/503 However, the attribute table is blank. Because the rows contain no visible data, records cannot be selected for report generation. ArcGIS Map Viewer The parent-layer geometries and record count load, but the attribute table is blank. Using Chrome Developer Tools, we confirmed the attribute table sends this query: where=1=1
outFields=*
returnGeometry=false
resultRecordCount=50
f=pbf Because outFields=* requests all 907 fields, the table does not populate. A configured Map Viewer pop-up still works. We captured its requested field list and confirmed that it requests only 201 fields, not all 907. Survey123 Feature Report service A report request for one specific record was submitted successfully and received a valid job ID. The job then failed during preparation: jobStatus: esriJobFailed
detailedStatus: prepareFailed
progress: 0 The report request was limited to one ObjectID: "queryParameters": {
"objectIds": "5068"} The returned message was: An error occurred when querying data from the feature layer.
400: Cannot perform query. Invalid query parameters.
'SQL query is nested too deeply. Rewrite the query or break it up
into smaller queries.' parameter is invalid This occurred before the Word document was created. ArcGIS API for Python A custom Python export process also failed while querying the same single parent record with: ft.query(
where="objectid=5068",
out_fields="*",
return_geometry=False) The ArcGIS API for Python returned the same Code 400 and nested-SQL error. Changing the Python process so it requests only the ObjectID and GlobalID allows it to avoid that specific full-width query. Confirmed behavior summary Operation Requested fields Result REST query 796 Succeeds REST query 797 Fails REST query * / 907 Fails Map Viewer pop-up 201 Succeeds Map Viewer attribute table * / 907 Blank Survey123 Data page Full parent schema Blank Survey123 Inbox Full parent schema Code 400 Feature Report for one ObjectID Full parent record preparation Fails Python query with out_fields="*" 907 Fails Questions for Esri Is there a known ArcGIS Online or Survey123 issue that causes hosted feature-layer queries to fail when 797 or more fields are requested? Has there been a recent backend or query-processing change that could explain why this survey worked previously with the same schema? Is the 796/797 boundary associated with a known defect? Can Esri review the hosted service logs to determine why the generated query is considered “nested too deeply”? Is there a supported workaround for Survey123 Inbox, the Data page, and Feature Reports other than rebuilding the survey with fewer parent-layer fields? Can these Survey123 operations be changed to request attributes in smaller batches rather than using the complete parent schema? At this time, the only confirmed distinction is that operations requesting a limited field list continue to work, while operations requesting 797 or more fields fail.
... View more
10 hours ago
|
0
|
1
|
58
|
|
POST
|
Your results appear very similar to ours. The fact that your survey has 808 fields and subset queries work is especially significant. The FeatureServer/0/1 URL uses the individual Feature resource rather than the layer’s /query operation, so it may explain why one feature can display all attributes while wide queries fail. Could you test the following through FeatureServer/0/query using POST? where=1=1
returnGeometry=false
resultRecordCount=1
f=json Then test: An explicit list of the first 796 fields An explicit list of the first 797 fields outFields=* Our 907-field layer consistently succeeds with 796 fields and fails with 797. It would be very helpful to know whether your 808-field layer has the same boundary. Also, does your Excel export contain all 808 parent-layer columns?
... View more
Thursday
|
0
|
1
|
45
|
|
POST
|
We began experiencing what appears to be the same issue this week. Our long-running Survey123 parent layer has 907 fields. Controlled POST queries show that every tested combination of 796 fields succeeds, while every tested combination of 797 fields fails with “SQL query is nested too deeply.” Survey123 Inbox, the Data page, Map Viewer tables, and Feature Reports are all affected. Did you determine how many fields are in your parent layer?
... View more
Thursday
|
0
|
3
|
48
|
|
POST
|
We are experiencing a production issue with a long-running Survey123 survey whose parent hosted feature layer contains 907 fields and currently has approximately 503 records. The survey and feature layer worked previously, but multiple Survey123 and ArcGIS Online functions recently began failing with the following error: Cannot perform query. Invalid query parameters.
'SQL query is nested too deeply. Rewrite the query or break it up
into smaller queries.' parameter is invalid
Error Code: 400 We performed controlled testing through the ArcGIS REST Services Directory to isolate the problem. Controlled REST query results Test settings: where=1=1
returnGeometry=false
resultRecordCount=1
Request method=POST Results: 796 explicitly requested fields = succeeds
797 explicitly requested fields = fails
907 fields / outFields=* = fails We tested multiple different field combinations rather than only the first fields in the schema. The following all succeeded: First 796 fields Last-heavy combination of 796 fields Middle-field combination of 796 fields Split beginning/end combination of 796 fields Evenly distributed 796 fields Multiple randomized combinations of 796 fields Multiple different combinations containing exactly 797 fields failed with the same nested-SQL error. We also tested the field located at position 797: That field works when requested by itself. The first 795 fields plus that field also work because the total is 796. Therefore, we have not identified a particular defective field. The failure appears to be based on the total number of requested fields. Survey123 Field App Inbox refresh fails with: Cannot perform query.
Invalid query parameters.
Code 400 We tested two different Field App versions, and both produced the same result: Survey123 Field App 3.1
Survey123 Field App 3.25 Survey123 website The Survey123 Data page recognizes the record count and displays approximately: 503/503 However, the attribute table is blank. Because the rows contain no visible data, records cannot be selected for report generation. ArcGIS Map Viewer The parent-layer geometries and record count load, but the attribute table is blank. Using Chrome Developer Tools, we confirmed the attribute table sends this query: where=1=1
outFields=*
returnGeometry=false
resultRecordCount=50
f=pbf Because outFields=* requests all 907 fields, the table does not populate. A configured Map Viewer pop-up still works. We captured its requested field list and confirmed that it requests only 201 fields, not all 907. Survey123 Feature Report service A report request for one specific record was submitted successfully and received a valid job ID. The job then failed during preparation: jobStatus: esriJobFailed
detailedStatus: prepareFailed
progress: 0 The report request was limited to one ObjectID: "queryParameters": {
"objectIds": "5068"} The returned message was: An error occurred when querying data from the feature layer.
400: Cannot perform query. Invalid query parameters.
'SQL query is nested too deeply. Rewrite the query or break it up
into smaller queries.' parameter is invalid This occurred before the Word document was created. ArcGIS API for Python A custom Python export process also failed while querying the same single parent record with: ft.query(
where="objectid=5068",
out_fields="*",
return_geometry=False) The ArcGIS API for Python returned the same Code 400 and nested-SQL error. Changing the Python process so it requests only the ObjectID and GlobalID allows it to avoid that specific full-width query. Confirmed behavior summary Operation Requested fields Result REST query 796 Succeeds REST query 797 Fails REST query * / 907 Fails Map Viewer pop-up 201 Succeeds Map Viewer attribute table * / 907 Blank Survey123 Data page Full parent schema Blank Survey123 Inbox Full parent schema Code 400 Feature Report for one ObjectID Full parent record preparation Fails Python query with out_fields="*" 907 Fails Questions for Esri Is there a known ArcGIS Online or Survey123 issue that causes hosted feature-layer queries to fail when 797 or more fields are requested? Has there been a recent backend or query-processing change that could explain why this survey worked previously with the same schema? Is the 796/797 boundary associated with a known defect? Can Esri review the hosted service logs to determine why the generated query is considered “nested too deeply”? Is there a supported workaround for Survey123 Inbox, the Data page, and Feature Reports other than rebuilding the survey with fewer parent-layer fields? Can these Survey123 operations be changed to request attributes in smaller batches rather than using the complete parent schema? At this time, the only confirmed distinction is that operations requesting a limited field list continue to work, while operations requesting 797 or more fields fail.
... View more
Thursday
|
1
|
1
|
109
|
|
POST
|
I have completed several steps, including downloading a File Geodatabase to back up my surveys and attachments. Next, I added a repeat to my existing survey, which resulted in the loss of all my data. I then appended the layers, but since the pre-existing related tables were using the Global ID to relate to other tables, I had to reconfigure the parents' global ID to match the newly generated Global IDs. However, even though I had set the environment to Maintain Attachments in ArcGIS Pro, I noticed that none of my attachments were present once the tables were related. I am not sure if I am missing something to successfully add a repeat to an existing survey without loosing the data and attachments.
... View more
04-26-2023
08:26 AM
|
0
|
1
|
2785
|
|
POST
|
How can I edit the attachment tables of my Survey123 survey in ArcGIS Pro. Can anyone provide a step-by-step guide on how to do this? Specifically, I want to know how to view and then edit data in the attachment tables and ensure that my changes are reflected in the related records in the main survey form. Any tips or best practices for editing attachment tables in ArcGIS Pro would be appreciated.
... View more
04-26-2023
07:51 AM
|
0
|
3
|
2814
|
|
POST
|
Does Survey123 have a built-in "Track Changes" feature like Microsoft Word to be able to track data changes and be able to see the changes to the data, and to then be able to approve or deny these changes.
... View more
03-29-2023
10:18 PM
|
0
|
1
|
1267
|
|
POST
|
Is Images alt text currently supported for XLSForm when generating reports?
... View more
06-02-2022
01:50 PM
|
0
|
0
|
1935
|
|
POST
|
I will mark this Error corrected once is passed onto the general use Survey123 website, not the Beta.
... View more
07-08-2020
10:06 AM
|
0
|
0
|
3960
|
|
POST
|
The Beta website fixed the Internal server-side error. Now I am able to generate Feature Reports for surveys with repeats. Thanks, Zhifang
... View more
07-08-2020
10:04 AM
|
0
|
0
|
3960
|
|
POST
|
Here is a copy of the "Show details" of the error. I also found out that if I remove all of our repeats groups and only leave one on the Feature Report template, it works. If I have two or more repeats groups then it gives me the same error. We have a total of 4 repeats groups, so this is definitely an issue. Please let me know what you are able to find out from your ends why the repeats are creating such error.
... View more
07-06-2020
10:47 AM
|
0
|
0
|
6227
|
|
POST
|
That is correct. If I generate a sample template and I use it to generate a Feature Report it still give the same error, even when I try do "Review sample report", or Generate in the format of "Microsoft Word (.docx), or Portable Document Format (.pdf) they all fail the same way.
... View more
07-06-2020
09:56 AM
|
0
|
2
|
6227
|
|
POST
|
The issue appears to be related to additional features that have been added to the Survey over the period of this year. When I produce feature reports from the end of last year on older Surveys they are able to be generated just fine. But when I use the newest Surveys that used to generate feature report 2 days ago it then give me the same Internal Server-side Error. Not sure if it’s due to new incompatible, off the top of my head JavaScript has been added and some other minor fields that calculates. is anyone else having this issue, not able to generate reports?
... View more
07-03-2020
10:51 AM
|
0
|
0
|
6227
|
|
POST
|
For some reason since today I have not been able to generate a single feature report from Survey123, it give me an error "Internal server-side error" every single time. I have generated the same report yesterday just fine but no luck today.
... View more
07-02-2020
11:49 PM
|
1
|
28
|
13848
|
|
POST
|
I was hoping to have some type of parent-child relationships, or composition that would allow multiple changes happening simultaneously.
... View more
01-25-2019
10:41 AM
|
0
|
1
|
1157
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | 01-10-2019 12:50 PM | |
| 1 | 07-02-2020 11:49 PM | |
| 1 | 01-15-2019 04:37 PM |
| Online Status |
Online
|
| Date Last Visited |
10 hours ago
|