I have an ArcGIS Online hosted feature layer containing point features that have attachments enabled. Could someone help me with some advice for how to use the ArcGIS Online feature reader that will allow me to access the features and their associated attachments (if there are any-not all features have an attachment)? It is easy enough to get the features, but I can't see a way to access the attachments. Thank you!
Reading ArcGIS Online feature attachments
- May 17, 2016
- 25 replies
- 719 views
- 5 replies
Best answer by mark2atsafe
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
25 replies
- Contributor
- 45 replies
- May 18, 2016
Reading attachments from features is not currently possible using the ArcGIS Online reader (nor can you write them with the Writer). Within FME, your options are to either use the Pythoncaller or to request the attachments from the relevant features using the HTTPCaller (or equivalent transformer).
- Contributor
- 5 replies
- September 27, 2016
Reading attachments from features is not currently possible using the ArcGIS Online reader (nor can you write them with the Writer). Within FME, your options are to either use the Pythoncaller or to request the attachments from the relevant features using the HTTPCaller (or equivalent transformer).
- Safer
- 2547 replies
- September 29, 2016
- Contributor
- 167 replies
- March 18, 2017
Would you have any update on PR#65120 , I don't think it was released in 2017.0 . Do you think its on the radar for 2017.1
Thanks
- Safer
- 2547 replies
- March 20, 2017
Would you have any update on PR#65120 , I don't think it was released in 2017.0 . Do you think its on the radar for 2017.1
Thanks
- Contributor
- 167 replies
- March 20, 2017
Thanks @Mark2AtSafe I will keep an eye out for it
- Supporter
- 321 replies
- June 20, 2017
Thanks!
- Safer
- 2547 replies
- Best Answer
- June 20, 2017
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
- Supporter
- 321 replies
- June 21, 2017
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
- Contributor
- 3 replies
- August 4, 2017
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
I could use a little help... I think I have all the pieces to the puzzle but.... file folder is empty....hmmm???
Jeff N
- 2 replies
- October 10, 2017
Thanks!
- Enthusiast
- 314 replies
- October 12, 2017
I agree, a template workbench would be cool. I'm not sure how to grab the attachment.
- 2 replies
- November 30, 2017
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
- Safer
- 158 replies
- November 30, 2017
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
- Enthusiast
- 314 replies
- December 1, 2017
Someone told me about the RasterReplacer though and it works great! You need arcgisonline_attachment{}.data of course. You attach a Writer to this and that's it!
- 2 replies
- December 6, 2017
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
Would it be possible to get some screengrabs of the attributefilewriter . Each record could have different type of file attachment e.g. word doc and a jpg. I've tried using the list option but I can't get it to work. Thanks. Caroline.
- 2 replies
- December 18, 2017
Someone told me about the RasterReplacer though and it works great! You need arcgisonline_attachment{}.data of course. You attach a Writer to this and that's it!
- 5 replies
- September 17, 2018
I have an AGOL service with attachments and want to copy that data to a SDE feature class with attachments. Getting the points across is no problem, but I'm struggling with breaking out hte attachments and sending them to the SDE attachments table and dealing with the relationship class etc. Has anyone done similar work?
- Author
- 5 replies
- September 18, 2018
I have an AGOL service with attachments and want to copy that data to a SDE feature class with attachments. Getting the points across is no problem, but I'm struggling with breaking out hte attachments and sending them to the SDE attachments table and dealing with the relationship class etc. Has anyone done similar work?
I was able to use the explanations, the additional post links, and a provided sample workspace to build my own workspace in which I read my features w/attachments from AGOL and then rebuild those attachments to point features through the relationship class in a file geodatabase. I would think doing so in SDE should be very similar. In the end, you are writing to 3 targets: The point feature class as it sounds like you are doing now, the attachment file itself into an attribute in the __ATTACH object class, and then the relationship class record in __ATTACHREL to tie the two together.
- 3 replies
- January 20, 2021
- Add AGOL Reader, include the specific layer that has attachments and expose all related Attachment attributes (i.e. arcgisonline_attachment{}.content_type).
- Enure that Feature Types>Parameters>Format>Include Attachments is set to Yes.
- Add RasterReplacer transformer and set Blob Attribute: arcgisonline_attachment{0}.data
- Add Writer to the format you require, and set the Raster File Name: arcgisonline_attachment[0].name
Voila, you'll see your attachments in an output directory as configured.
I used FME build 2019.1
- 3 replies
- October 6, 2021
Is there another transformer I need to use to expose the attachment attributes? I've set the 'Include Attachments' of my reader to 'Yes' but the attachment attributes don't show in the attributes. When I tried using the Inspector, I could see that the attributes are there..
- Safer
- 485 replies
- October 6, 2021
Is there another transformer I need to use to expose the attachment attributes? I've set the 'Include Attachments' of my reader to 'Yes' but the attachment attributes don't show in the attributes. When I tried using the Inspector, I could see that the attributes are there..
Hi @poalgura,
After setting the Include Attachments parameter to 'Yes" you will want to expose the arcgisonline_attachment{} Format Attributes by going to the Format Attributes tab and exposing each one.
- 3 replies
- October 10, 2021
Hi @poalgura,
After setting the Include Attachments parameter to 'Yes" you will want to expose the arcgisonline_attachment{} Format Attributes by going to the Format Attributes tab and exposing each one.
Thanks, @danminneyatsaf !
Are you familiar with this workflow too? I tried following the steps written by @magnust66 but i run into an issue with the RasterReplacer, "INVALID_FEATURE_CANNOT_READ_BLOB". Any idea how to resolve this one?
- 3 replies
- October 18, 2021
To expose the attachment attributes, you can use the AttributeExposer transformer, or right-click on the AGOL Reader, and access the Format Attributes tab to also expose the hidden attributes.
- Contributor
- 19 replies
- August 1, 2025
Happy Friday FMEers, Just wanted to share some knowledge on this old school topic….. We noticed after upgrading to 2025.1 that the arcgisonline_attachement().data (using the old first class now depreciated way to get attachments) is throwing an error: “transcoding the binary string to another encoding can not be done”. The simple workaround I found is to put an AttributeManager on arcgisonline_attachement().data to force it to be binaryBuffer and not String.

Hope this helps. Best Reed
I have an ArcGIS Online hosted feature layer containing point features that have attachments enabled. Could someone help me with some advice for how to use the ArcGIS Online feature reader that will allow me to access the features and their associated attachments (if there are any-not all features have an attachment)? It is easy enough to get the features, but I can't see a way to access the attachments. Thank you!
Reading attachments from features is not currently possible using the ArcGIS Online reader (nor can you write them with the Writer). Within FME, your options are to either use the Pythoncaller or to request the attachments from the relevant features using the HTTPCaller (or equivalent transformer).
Reading attachments from features is not currently possible using the ArcGIS Online reader (nor can you write them with the Writer). Within FME, your options are to either use the Pythoncaller or to request the attachments from the relevant features using the HTTPCaller (or equivalent transformer).
Would you have any update on PR#65120 , I don't think it was released in 2017.0 . Do you think its on the radar for 2017.1
Thanks
Would you have any update on PR#65120 , I don't think it was released in 2017.0 . Do you think its on the radar for 2017.1
Thanks
Thanks @Mark2AtSafe I will keep an eye out for it
Thanks!
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark

Looks like build 17475 is the one to use. It has the most recent fixes. See safe.com/beta for the newest betas. The functionality has been checked and verified by the quality team.
@runneals - I don't see any documentation, but according to the notes I have seen there is a new parameter on each reader feature type. It's called 'Include Attachments' and defaults to No (in case you're wondering, it's quicker and more backwards compatible to not default to yes).
So, if you set that, it should return features with the following format attributes:
New format attributes on all features:
- arcgisonline_objectid (always)
- arcgisonline_globalid (when globalids present)
New format attributes for attachments, present on features that have attachment(s):
- arcgisonline_attachment{}.id
- arcgisonline_attachment{}.globalid
- arcgisonline_attachment{}.size
- arcgisonline_attachment{}.name
- arcgisonline_attachment{}.content_type
- arcgisonline_attachment{}.data
So it looks to me like the attachment will be in the form of a data attribute, which you could then write to an output file using the AttributeFileWriter transformer.
Let me know if this doesn't help and I can investigate further,
Regards
Mark
I could use a little help... I think I have all the pieces to the puzzle but.... file folder is empty....hmmm???
Jeff N
Thanks!
I agree, a template workbench would be cool. I'm not sure how to grab the attachment.
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
Someone told me about the RasterReplacer though and it works great! You need arcgisonline_attachment{}.data of course. You attach a Writer to this and that's it!
Hi - I have 2017.1 beta version. I have an AGOL feature service which has attachments. I would like to set up an FME job that can extract and save these attachments - is this possible?
I have ticked on include attachments as outlined above but can you advise what I do next to save the attachments which could be documents or images.
Many thanks
Caroline
Would it be possible to get some screengrabs of the attributefilewriter . Each record could have different type of file attachment e.g. word doc and a jpg. I've tried using the list option but I can't get it to work. Thanks. Caroline.
Someone told me about the RasterReplacer though and it works great! You need arcgisonline_attachment{}.data of course. You attach a Writer to this and that's it!
I have an AGOL service with attachments and want to copy that data to a SDE feature class with attachments. Getting the points across is no problem, but I'm struggling with breaking out hte attachments and sending them to the SDE attachments table and dealing with the relationship class etc. Has anyone done similar work?
I have an AGOL service with attachments and want to copy that data to a SDE feature class with attachments. Getting the points across is no problem, but I'm struggling with breaking out hte attachments and sending them to the SDE attachments table and dealing with the relationship class etc. Has anyone done similar work?
I was able to use the explanations, the additional post links, and a provided sample workspace to build my own workspace in which I read my features w/attachments from AGOL and then rebuild those attachments to point features through the relationship class in a file geodatabase. I would think doing so in SDE should be very similar. In the end, you are writing to 3 targets: The point feature class as it sounds like you are doing now, the attachment file itself into an attribute in the __ATTACH object class, and then the relationship class record in __ATTACHREL to tie the two together.
- Add AGOL Reader, include the specific layer that has attachments and expose all related Attachment attributes (i.e. arcgisonline_attachment{}.content_type).
- Enure that Feature Types>Parameters>Format>Include Attachments is set to Yes.
- Add RasterReplacer transformer and set Blob Attribute: arcgisonline_attachment{0}.data
- Add Writer to the format you require, and set the Raster File Name: arcgisonline_attachment[0].name
Voila, you'll see your attachments in an output directory as configured.
I used FME build 2019.1
Is there another transformer I need to use to expose the attachment attributes? I've set the 'Include Attachments' of my reader to 'Yes' but the attachment attributes don't show in the attributes. When I tried using the Inspector, I could see that the attributes are there..
Is there another transformer I need to use to expose the attachment attributes? I've set the 'Include Attachments' of my reader to 'Yes' but the attachment attributes don't show in the attributes. When I tried using the Inspector, I could see that the attributes are there..
Hi @poalgura,
After setting the Include Attachments parameter to 'Yes" you will want to expose the arcgisonline_attachment{} Format Attributes by going to the Format Attributes tab and exposing each one.
Hi @poalgura,
After setting the Include Attachments parameter to 'Yes" you will want to expose the arcgisonline_attachment{} Format Attributes by going to the Format Attributes tab and exposing each one.
Thanks, @danminneyatsaf !
Are you familiar with this workflow too? I tried following the steps written by @magnust66 but i run into an issue with the RasterReplacer, "INVALID_FEATURE_CANNOT_READ_BLOB". Any idea how to resolve this one?
To expose the attachment attributes, you can use the AttributeExposer transformer, or right-click on the AGOL Reader, and access the Format Attributes tab to also expose the hidden attributes.
Happy Friday FMEers, Just wanted to share some knowledge on this old school topic….. We noticed after upgrading to 2025.1 that the arcgisonline_attachement().data (using the old first class now depreciated way to get attachments) is throwing an error: “transcoding the binary string to another encoding can not be done”. The simple workaround I found is to put an AttributeManager on arcgisonline_attachement().data to force it to be binaryBuffer and not String.

Hope this helps. Best Reed
Related Topics
Off Axis Telescope Image Simulation Muliconfigurationicon
Got a question?June 2022 Community Updates
User News & AlertsJitter Series Part 1: Using OpticStudio STAR module to analyze drift of Line of Sight due to temperature variation
People & PointersMicrolens Array in Sequential Modeicon
Got a question?Bayer Sampling for Image Simulationicon
Got a question?
Helpful Members This Week
- takashi
25 votes
- nielsgerrits
13 votes
- hkingsbury
11 votes
- jdh
8 votes
- ebygomm
7 votes
- redgeographics
7 votes
- virtualcitymatt
7 votes
- panda
6 votes
- desiree_at_safe
5 votes
- david_r
5 votes
Recently Solved Questions
OneDrive single tenant web connection is approved but will not authenticate
1 ReplyGeocoder with ArcGIS Online
2 RepliesAvoiding overlaps and gaps when buffering line segments to polygons
2 RepliesGIS FC (FGDB) to Excel Spreadsheet
1 Reply'Feature Types to Read' not listing all selected input files
2 Replies
Community Stats
- 31,840
- Posts
- 120,936
- Replies
- 39,474
- Members
Latest FME
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Scanning file for viruses.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKThis file cannot be downloaded
Sorry, our virus scanner detected that this file isn't safe to download.
OKCookie policy
We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.
Cookie settings
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.