You are currently reviewing an older revision of this page.

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

Symptoms

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

05:12:36,656 INFO  [stdout] (Appian Work Item - 4 - ProcessExec01 : UnattendedJavaActivityRequest) 2018-05-29 05:12:36,655 [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.