Quick Report new feature upload error after adding subtypes

692
1
Jump to solution
08-08-2020 03:53 PM
JaguarDigital
New Contributor III

Hi

I'm using Quick Report template on Appstudio, the reports were working ok, but after I added subtypes to the Feature Layer through ArcGIS Pro desktop, the reports are now generating an error at the upload page, and the data never arrives to the server, as seen on the right image (the error message in spanish in the next image says "Add new feature - Error"). This error appears equally on the desktop and in the Appstudio Player on iPhone. I tried without adding an attachment, but it doesn't work either. 

At some point of the development I compiled the Data Collection app (Data Collection | ArcGIS for Developers) in Xcode and when I run it on an iPhone it can connect to exactly the same Feature Layer URL and upload the reports without error (even including a photo attachment). That's why I doubt there is any configuration error of the Feature Layer. The next image shows the report being saved on Data Collection:

When I try to debug the Appstudio project in QT Creator, it shows these lines on the Debugger Console (I suppose the 405 error is the origin of the issue, but I can't be sure): 

I haven't found any other clue to solve the error, and given the fact that it works fine in the Data Collection app, I'm currently puzzled why this is happening. Any help will be appreciated

Oscar

0 Kudos
1 Solution

Accepted Solutions
JaguarDigital
New Contributor III

Ok, I found the error. It was because the Feature Layer didn't have a GlobalID field created before adding the attachments tables. On ArcGIS Pro I deleted the attachments tables, created the GlobalID field on the Feature Layer and regenerated the attachments.

 

Curiously enough, neither the Data Collection App nor the Crowdsource Reporter Web App had any issue submitting the reports, but the Quick Report did have it.

 

Maybe this answer will help someone, I found a similar one here: Enable Apply Edits With Global Ids on ArcGIS Feature Services 

View solution in original post

0 Kudos
1 Reply
JaguarDigital
New Contributor III

Ok, I found the error. It was because the Feature Layer didn't have a GlobalID field created before adding the attachments tables. On ArcGIS Pro I deleted the attachments tables, created the GlobalID field on the Feature Layer and regenerated the attachments.

 

Curiously enough, neither the Data Collection App nor the Crowdsource Reporter Web App had any issue submitting the reports, but the Quick Report did have it.

 

Maybe this answer will help someone, I found a similar one here: Enable Apply Edits With Global Ids on ArcGIS Feature Services 

0 Kudos