PROBLEM

Unable to add attachments to feature services hosted in ArcGIS Enterprise

Last Published: March 14, 2023

Description

When attempting to add attachments to a feature service in a web map, only files less than 100 KB can be added. Attachments above 100 KB cannot be attached without returning error messages.

The DEBUG level ArcGIS Server logs returns the error message below after attempts to add an attachment over 100 KB in the Portal for ArcGIS web map fail.

Error:
Unable to process request. Error parsing multi-part request.

Following attempts to add the attachments in ArcGIS Collector, another error message is returned.

Error:
Attachment failed to upload

Attempts to add the attachments to the feature service in ArcGIS Pro also fail and the error message below is returned.

Error:
Edit operation failed. Internal Server error. (Status code 500).

Cause

  • A value lower than the size of the attachment is set in the uploadReadAheadSize property in Internet Information Services (IIS) Manager. Refer to Microsoft: UploadReadAheadSize for more information.
  • There is insufficient disk space on the drive hosting the ArcGIS Server site.

Solution or Workaround

Increase the uploadReadAheadSize property value in Internet Information Services (IIS) Manager

  1. On the hosting machine, open Internet Information Services (IIS) Manager.
  2. In the Connections pane, select the site hosting the web application.
  3. On the Features View tab, double-click Configuration Editor under Management.
The Configuration Editor under Management
  1. In the Section drop-down menu, expand system.webServer and select serverRuntime.
  2. Increase the uploadReadAheadSize value. In this example, the value is increased to 20000000 bytes (20 MB).The uploadReadAheadSize property value increased
  3. Under Actions, click Apply Apply icon.

Increase the disk space of the ArcGIS Server site machine

The following measures can be taken to increase the disk space on the ArcGIS Server site machine:

Add attachments using the ArcGIS Server REST services

An alternative is to upload attachments using the ArcGIS Server REST services. Refer to How To: Add large attachments to a feature using the ArcGIS REST Services Directory for more instructions and information.

Article ID: 000028045

Software:
  • ArcGIS Data Store
  • Portal for ArcGIS
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options