Skip to main content
Question

Getting ArcGISAttachment Connector to attach pdfs from a path

  • September 1, 2026
  • 1 reply
  • 46 views

nakky
Participant
Forum|alt.badge.img

Hi community,

I am working on a prototype workbench where I read spatial locations, process data, and write them out to a brand-new layer in ArcGIS Online. My primary goal is to attach local PDF documents (using a file path attribute named path_windows) to these newly created features as they are uploaded.

I am using the FeatureWriter (Esri ArcGIS Feature Service) transformer set to Create If Needed / Insert. However, I have hit a roadblock when trying to pass the written records downstream to the ArcGISAttachmentConnector:

  1. The individual feature type output port on the FeatureWriter does not exist (or doesn't pass the individual features downstream with the required AGOL metadata).
  2. The Summary port outputs a single feature containing the _dataset URL, but it drops the individual spatial features and row-level attributes like path_windows.
  3. Because the ArcGISAttachmentConnector requires both the individual feature stream (carrying the generated OBJECTID) and the layer's REST endpoint URL, I am struggling to combine these two pipelines effectively right after a fresh layer initialization.

I have attached a screenshot of my current workspace layout for context as well as the configuration of my featurewriter. What is the recommended best practice for delaying the features or joining the Summary port metadata back onto the individual records so they can safely pass into the AttachmentConnector?

1 reply

salvaleonrp
Enthusiast
Forum|alt.badge.img+22
  • Enthusiast
  • September 1, 2026

#1 is not supported .. See my comments on this questison. 

Been asking for that feature for a while now. 

You can see the Format Attributes in the feature service feature type properties in the FeatureWriter but they do not serve a purpose.

@andreaatsafe 

To fix your workspace,

#2. If you enable Output ports to one per feature type in your FeatureWriter, your spatial features will appear in its own output port on the FeatureWriter.

#3. merge the output port from the FeatureWriter to the output port of the FeatureReader to a FeatureJoiner, something like below. The Joined port should have what you need to configure the AttachmentConnector.

 

 

In this workflow, the FeatureWriter and FeatureReader need to be run separately.

First, run the workspace up to the FeatureWriter to create the feature layer. Once the layer is created, configure the FeatureReader to read from that new feature service, then run the rest of the workspace.

Alternatively, you can split the process into two workflows: one for creating the feature layer and another for handling attachments, which is similar to your current approach.

Another option is to add an ArcGISOnlineConnector after the FeatureWriter. Use the List action to retrieve all services, identify the newly created feature service, and pass its URL or item ID downstream to the attachment workflow.