Select to view content in your preferred language

How to best publish an editable referenced feature layer with attachements

276
4
10-04-2024 06:46 AM
CarolineLindhe
Frequent Contributor

Since lots of years back my organization has published feature layers by sharing the whole map. This has been done since it historically have been said that the attached table that handels attachements need to be in the Contents Pane when publishing. If not, attachements will not work. Is this still the case?

This is how we have done it so far:

  1. We create a feature class.
  2. We go to Manage for the feature class and checks Attachements.
  3. We add both the feature class and attach-table to the Contents Pane in a Map
  4. We change the name of the Map and adds metadata to the Map
  5. We got the the Share ribbon menu and clicks on Web Layer and Publish web layer.
  6. We publish the map as a Reference registered data both as a Map Image and as a Feature. 
  7. Looking in the Content in the Share pane both the map image+feature class+table is listed.

This way of working means that we need to create one ArcGIS Pro project for every editable feature class that we need to publish. We would like to have several feature classes in one project instead (grouped be theme) and share them by right clicking the feature class in the Contents Plane and choosing Share web layer from there.

Back to the initial question does the table need to be in the Contents Pane when publishing for attachements to work? If yes, will it work if all feature classes and related tables are in the same Contents Pane, but each feature class is published seperately?

0 Kudos
4 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

one option: https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#ESRI_SECTION1_F878B830119B4...

If data is in your related table then yes the table and the layer need to be published together. If you want to keep it all in a map and individually publish just highlight the layer and corresponding table and right click share. 

0 Kudos
CarolineLindhe
Frequent Contributor

Thanks for the reply @Laura

I have a remote colleague publishing editable referenced feature layers to another portal. He does step 1 and 2, but then only adds the feature class to the Contents Pane before sharing by right-clicking the layer in the Contents Pane and sharing that way. He has never added the related table and hasn't had any reports of issues with attachements.

Shouldn't the feature layer be smart enough having the related table in the same database that the service is refered to?

The picture "database..." shows what it looks like in the database. 

Picture "1_..." shows how we do it today.

Picture "2_..." shows how it could be done with the same result. Note that it is enough with only the feature class being selected in the Contents Pane.

Picture 3_..." shows how my colleague does it and it seems to work. 

0 Kudos
CarolineLindhe
Frequent Contributor

Note that we don't use hosted services only referenced.

0 Kudos