Attempt to publish Hosted Feature Layer did not maintain attachments from desktop

384
2
Jump to solution
07-22-2021 09:33 AM
Henry
by
Occasional Contributor II

Hi,

I had a large (~5GB) feature layer stored in a geodatabase with an attachment table and relationship class that stores a ton of pictures. I attempted to publish to ArcGIS Online from ArcGIS Pro and the publishing succeeded after a long while, however none of the attachments are available in the data table.

The Service Definition has recorded the appropriate file size, however the Hosted Feature Layer itself lists the attachment size as 0KB.

Is there a setting I can enable to ensure that the attachments transfer over with the feature layer publishing as well? Or would it be recommended to upload the Geodatabase first and then publish the Hosted Feature Layer from that instead of going through Pro?

Thanks

Henry

Henry
0 Kudos
1 Solution

Accepted Solutions
Henry
by
Occasional Contributor II

Thanks for the article Davin, I did try a different method through ArcGIS Pro that ended up working -

What I did in my first unsuccessful attempt was right-click the layer in the Table of Contents and initiated the "Share as Web Layer" tool through that - which resulted in it not uploading the attachments.

What I did the second time was share the web map as a web layer (I think?):

1) Loaded all my data, confirmed attachments accessible in ArcGIS Pro on desktop

2) With Map selected in Table of Contents - navigated to Share tab on toolbar > Share as Web Layer > Publish Web Layer

3) Fill in details as normally, had the maintain attachments geoprocessing environment checked on just incase

4) Analyzed and published layer

5) Attachments for the Hosted Feature layer are now accessible in AGOL

I guess my problem was I was initiating the Share as Web Layer tool through from the Feature Layer in the Table of Contents, while sharing the Map as a Web Layer via the toolbar gave me the result I wanted - and kept the attachments for each record in the Feature Layer into the.Hosted version in AGOL.

It's possible the difference is documented somewhere - but its not immediately obvious what the difference is from Sharing a Layer as a Web Layer vs. Sharing Map as a Web Layer - although it seems clear to me now in hindsight. Unsure where its stated that one method or the other does or doesn't keep attachments stored in an attachment table with relationship class. I just assumed if I was sharing the Feature Layer I wanted from the Table of Contents that the attachments would come with.

Henry

View solution in original post

2 Replies
DavinWalker2
Esri Contributor

Hi Henry,

I know this article is for ArcMap but it might provide some clues as why it isn't working.

Problem: Feature Service attachments created in ArcGIS Desktop are not found in ArcGIS Online pop-up...

0 Kudos
Henry
by
Occasional Contributor II

Thanks for the article Davin, I did try a different method through ArcGIS Pro that ended up working -

What I did in my first unsuccessful attempt was right-click the layer in the Table of Contents and initiated the "Share as Web Layer" tool through that - which resulted in it not uploading the attachments.

What I did the second time was share the web map as a web layer (I think?):

1) Loaded all my data, confirmed attachments accessible in ArcGIS Pro on desktop

2) With Map selected in Table of Contents - navigated to Share tab on toolbar > Share as Web Layer > Publish Web Layer

3) Fill in details as normally, had the maintain attachments geoprocessing environment checked on just incase

4) Analyzed and published layer

5) Attachments for the Hosted Feature layer are now accessible in AGOL

I guess my problem was I was initiating the Share as Web Layer tool through from the Feature Layer in the Table of Contents, while sharing the Map as a Web Layer via the toolbar gave me the result I wanted - and kept the attachments for each record in the Feature Layer into the.Hosted version in AGOL.

It's possible the difference is documented somewhere - but its not immediately obvious what the difference is from Sharing a Layer as a Web Layer vs. Sharing Map as a Web Layer - although it seems clear to me now in hindsight. Unsure where its stated that one method or the other does or doesn't keep attachments stored in an attachment table with relationship class. I just assumed if I was sharing the Feature Layer I wanted from the Table of Contents that the attachments would come with.

Henry