Select to view content in your preferred language

Field Maps Crashing on Android Device After Collecting Point Feature

1499
6
Jump to solution
07-17-2023 02:17 PM
travisajohnson_wsp
New Contributor II

Hello,

I have a web map that has been configured for ArcGIS Field Maps using the field maps designer application on AGOL. It uses domain data capture and arcade expressions to auto name sample points that my field staff collect in a given sampling event. the arcade expression is set to look at various attribute fields and update the final sample nomenclature based on what was submitted.

The new web map/field maps has been working fantastically for my iOS users. Recently, we have had a staff member with an android phone start working within the web map. Every time they collect a GPS Point feature, Field Maps completely crashes without any error message. We also have polyline and polygon feature layers within this web map that the staff member is able to collect without any problem. The polyline and polygon features do not have any arcade logic associated with them and so that is why I am thinking it could be an issue related to that. Wondering if this is a bug related specifically with Field Maps Arcade expressions and Android devices. Hoping to either get some advice on fixes or raise awareness of a possible bug.

 

I can post the code if that would help. Again, we are only running into this issue on Android devices.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
ColinLawrence
Esri Regular Contributor

Hi Travis, I can reproduce the same crash using the map you shared on my samsung phone. I caught the following in the logs:

java.lang.IllegalStateException: Required value was null.



I am not positive that explicitly points to the issue. I took a look on iOS, which doesn't crash as you mentioned, and noticed the @ symbol in one of the fields and as part of the popup title. I assume this is added from your arcade expression? Can you try removing this symbol from the expression and see if the app still crashes?

Regards,
Colin

View solution in original post

6 Replies
ColinLawrence
Esri Regular Contributor

Hi @travisajohnson_wsp , what Android devices and OS versions are you seeing this on? Would you be able to share your Web Map with us? You can add the Map and Feature Service(s) to a Group and invite the user "Arcgisfieldmaps". Thanks!

Regards,
Colin
travisajohnson_wsp
New Contributor II

Hey Colin,

Apologies for the delay on this. I have invited the "Arcgisfieldmaps" user account to our Esri Troubleshooting group and shared the trouble-some web map and feature layer with the group. Any help troubleshooting the issue would be appreciated. Again this only seems to be an issue on android devices. The user who reported the issue is on a Samsung Galaxy smartphone, unsure of the version but would assume the most recent.

 

Thanks for your help on this!!

0 Kudos
ColinLawrence
Esri Regular Contributor

Hi Travis, I can reproduce the same crash using the map you shared on my samsung phone. I caught the following in the logs:

java.lang.IllegalStateException: Required value was null.



I am not positive that explicitly points to the issue. I took a look on iOS, which doesn't crash as you mentioned, and noticed the @ symbol in one of the fields and as part of the popup title. I assume this is added from your arcade expression? Can you try removing this symbol from the expression and see if the app still crashes?

Regards,
Colin
travisajohnson_wsp
New Contributor II

Thanks for looking into this! Apologies for the late response. I never received a notification of your response 🤔. Will test this out and let you know if the issue continues. Ideally, we want to keep the @ symbol as it is needed for the point nomenclature, but if it is the source of the crash, we can live without it.

travisajohnson_wsp
New Contributor II

Hey Colin,

I think we fixed the issue after running some tests! It appears it was tied to the "Form Title" within field maps. I had it populating based on data that was entered within the form (i.e. Form Title: {SampleNomenclature}). It may have been related to the @ symbol that is within the SampleNomenclature attribute field, or just it trying to actively populate the field as data was being entered since SampleNomencature is a calculated field itself. What I did was just change the Form Title to something static (i.e. "GPS Point") and that seems to have fixed the issue! Appreciate your help with this!

0 Kudos
ColinLawrence
Esri Regular Contributor

Thats great! Thank you for confirming.

Regards,
Colin
0 Kudos