ARTIFACTORY: How to overcome the “Invalid Import Directory” error

AuthorFullName__c
Vaibhav Jain
articleNumber
000005999
FirstPublishedDate
2024-01-25T06:26:09Z
lastModifiedDate
2025-07-22

ARTIFACTORY: How to overcome the “Invalid Import Directory” error

In this Knowledge Base article, we will be discussing the reason behind the error that occurs while importing or exporting data in/from the Artifactory server while performing Import-export.

User-added imageThe “Invalid Export/Import Directory” error can be thrown if the export/import path is an “Insecure Path”. An insecure path can be, for example, a path to an NFS server or a shared drive. As a result, Artifactory restricts the import/export operation against such paths by default for security reasons.

This policy, however, can be controlled and modified by adding the following system property and setting it to “true” in the artifactory.system.properties file.

artifactory.allow.export.import.insecure.paths=true

Note: A restart of Artifactory is needed to have the changes in effect.

After the above property is added, the error will not occur anymore, and we can perform import and export.

For more information on imports and exports, you can refer to the below articles.

  1. Introduction to Import/Export
  2. artifactory-how-to-migrate-artifactory-build-info-from-one-environment-to-another