I have a Collector app. The data are held on our ArcGIS Server and published via AGOL. I have a domain that controls a reference field.
I have just spent the morning getting a nice Python script that recreates the Domain daily to add new possible values. Yet, these values do not appear in Collector or when viewed in AGOL. How can I force a refresh?
I've had this issue before. What I have done in the past is just go back to the Map in AGOL removed the feature layers and readded them. Not the best solution but is effective.
mmm not good - My domain updates every night with reference values that have been added to a different system.
Yeesh, that isn't good. I've found Collector to be very handy but has a lot of little bugs. Right now mine is saying update failed and I can't figure out the reason behind it.
When you take a map offline, in addition to creating a tile package for tiled layers, the system creates a replica of the geodatabase each feature layer, which is then downloaded to the device. If the schema for the database is changed online and republished then the offline replicas will no longer be able to sync.
The best way to make a schema change when you have users with offline replicas is to make sure all offline maps have synced their local changes (so their updates get pushed up). Then make your domain or schema change and republish. The offline Collector users will then have to delete that map and download it again to get the new schema. The basemap (or TPK) doesn't have to be deleted, that can be reused.
Gary, do you think that perhaps this is my problem with not being able to update?
Did you republish the feature service after you downloaded the map to your device? If so, that's probably it.
I didn't download a map to my device. I'm using Collector online.
Has anyone had any bright ideas regarding this one in the last 6 months?
I think this question requires some more information to troubleshoot:
1. You update domains in the geodatabase. Can you confirm that the updated list of values is available in an ArcMap editing session?
2. You re-published/overwrote the feature service. Can you confirm that the updated list of values is available at the REST url of the feature service?
3. You still have that feature service as a layer in a webmap. Can you confirm that the updated list of values is available in an ArcGIS Online mapviewer editing session?
4. If you now refresh Collector, open the same webmap, and the updated list is not available in the Collector app's webmap this discussion is in the right Geonet "Place" and should be addressed by the Collector team. If you can't confirm point 1,2, or 3, then this issue is not caused by Collector and should be moved to a different "Place".
Hope this helps. Tobias