related tables and offline editing

4855
8
Jump to solution
09-09-2015 07:17 PM
simoxu
by MVP Regular Contributor
MVP Regular Contributor

My map has one feature layers with several related tables, when I edit the related table online using Collector it works fine, but when I take the map offline, something strange happens:

IMG_0019.PNG

just for one related table,let's say the table is named Assessment_Complete,  when I click "New", instead of showing me the table, it shows me a message "No valid Location", and it seems thinking I intend to collect the location on the map!

IMG_0018.PNG

I am really confused, because I have already selected a location and this is only a related table without any spatial field what so ever. the most confusing thing is the other related tables seems work fine!

this is on my iPad air, on my Nexus 5, opening the offline map just simply crashes Collector, leaving me a message "Unfortunately, Collector has stopped"

Is it just me?

0 Kudos
1 Solution

Accepted Solutions
simoxu
by MVP Regular Contributor
MVP Regular Contributor

I am replying to myself

Good news, problem solved!

Problem solved.

I found the url for this table is different from the others, now I recall this table was added later by "Add Layer From Web",while the other tables were added automatically when adding the featurelayer.  this table's url pattern is like

http://services1.arcgis.com/xxxxxxxx/ArcGIS/rest/services/HostedFeaturelayerName/FeatureServer/15

while the other talbes's urls are slightly different

http://services1.arcgis.com/xxxxxxxx/arcgis/rest/services/HostedFeaturelayerName/FeatureServer/n

After I deleted the table and re-added it using the following url pattern, it started working!

http://services1.arcgis.com/xxxxxxxx/arcgis/rest/services/HostedFeaturelayerName/FeatureServer/15

So lessons learned:

1. Bring in the related tables all in once by adding the featurelayer

2. If you have to add a related table in your webmap, keep the url pattern consistent with the featurelayer and other related tables.

View solution in original post

0 Kudos
8 Replies
simoxu
by MVP Regular Contributor
MVP Regular Contributor

I am replying to myself

Good news, problem solved!

Problem solved.

I found the url for this table is different from the others, now I recall this table was added later by "Add Layer From Web",while the other tables were added automatically when adding the featurelayer.  this table's url pattern is like

http://services1.arcgis.com/xxxxxxxx/ArcGIS/rest/services/HostedFeaturelayerName/FeatureServer/15

while the other talbes's urls are slightly different

http://services1.arcgis.com/xxxxxxxx/arcgis/rest/services/HostedFeaturelayerName/FeatureServer/n

After I deleted the table and re-added it using the following url pattern, it started working!

http://services1.arcgis.com/xxxxxxxx/arcgis/rest/services/HostedFeaturelayerName/FeatureServer/15

So lessons learned:

1. Bring in the related tables all in once by adding the featurelayer

2. If you have to add a related table in your webmap, keep the url pattern consistent with the featurelayer and other related tables.

0 Kudos
danbecker
Occasional Contributor III

I had the same thing happen, Related tables in offline mode show "No Valid Location" just like in the 2nd screenshot above. Online mode the map works fine.

Collector 10.3.5

Server 10.3.1

Token secured feature service added as item to AGOL, with credentials stored in item

feat. service with archiving, editor tracking, attachments enabled

Reproduce problem:

New AGOL webmap

Add the feature service item from AGOL

Both the feature layers AND the related tables are auto. added to the map

Configure symbology, popups, ect...

Save webmap

download webmap to Collector 10.3.5

click on a feature service polygon, under the details/relationship, click "new" to add record to relationship table

Rather then displaying the fields for the related table, you get "No Valid Location"

Workaround:

New AGOL webmap

Add Layer From Web

Enter the URL to your secured feature service, example: hxxp://mydomain.com/arcgis/rest/folder/servicename/FeatureServer

When prompted, enter service credentials

Configure symbology, popups, ect...

Save webmap

download webmap to Collector 10.3.5

click on a feature service polygon, under the details/relationship, click "new", everything will work normally.

Problem:

  • There seems to be something incorrect with how AGOL is storing secured proxied service items?
  • I'm not sure if its related to secured services, or services that contain relationship classes and related tables?
  • Perhaps this is related to URL case sensitivity settings in IIS7?
  • But regardless, it seems like offline Collector related records that were added from a AGOL item with stored credentials does not work in offline mode
simoxu
by MVP Regular Contributor
MVP Regular Contributor

Thanks for sharing your experience Dan. Hope ESRI staff can clarify the concerns you raised here.

0 Kudos
MiaogengZhang
Esri Regular Contributor

Thanks for detailed steps. I can reproduce your error. I will enter an issue for our dev team to look at. I notice the issue only happens in iOS. I don't see it in Android.

simoxu
by MVP Regular Contributor
MVP Regular Contributor

Hi Maogeng,

Thank you for looking into the issue.

0 Kudos
MiaogengZhang
Esri Regular Contributor

I notice you said " my Nexus 5, opening the offline map just simply crashes Collector". Do you see the issue in latest Android Collector? If so, can you share your map to a group and invite the account Collector4ArcGIS into it?

0 Kudos
simoxu
by MVP Regular Contributor
MVP Regular Contributor

No worries, I will let you know when I see it again.

0 Kudos
danbecker
Occasional Contributor III

Hey guys,

any update on this from the dev team? will this be addressed in 10.3.6?

thanks.

0 Kudos