KB-1600 Illegal character in path at index X thrown by HTTP File Download Smart Service when file name contains spaces

Symptoms

The HTTP File Download Smart Service fails to download a file which contains spaces in the name and the following error is generated in the application server log:

HH:MM:SS INFO  [stdout] (Appian Work Item - 4 - ProcessExec01 : UnattendedJavaActivityRequest) YYYY-MM-DD HH:MM:SS [Appian Work Item - 4 - ProcessExec01 : UnattendedJavaActivityRequest] ERROR com.appian.integration.httpclient.smartnode.HttpSmartNode - ConnectorRuntimeException [title=Error calling HTTP File Download, com.appian.integration.core.exception.ConnectorRuntimeException: Illegal character in path at index X: <URL_TO_FILE>]

The following error is also seen in the errorInfo process variable:

Title: Error calling HTTP File Download, Message: Illegal character in path at index X: <URL_TO_FILE>, Details: 

Cause

The Endpoint input is set to include both the URL and file name which contains an illegal character at index X.

Action

To correct this issue, make the following adjustments:

  1. Configure the Endpoint input to contain the URL for the request.
  2. Configure the File Name input to contain the name of the file to download.

Affected Versions

This article applies to Appian 7.9 and later.

Last Reviewed: June 2018

Related
Recommended