JIRA Attachment Import via JSON - The filename, directory name, or volume label syntax is incorrect

Hi,

I am trying to import attachments to JIRA via the JSON import. The attachments are kept in a folder created in my JIRA_HOME/import/attachments folder

But I still get -

An exception occurred dealing with attachment 'file://D:/Jira/Data/import/attachments/380371/3416141.msg'.
com.atlassian.jira.plugins.importer.imports.AttachmentImportException: An exception occurred dealing with attachment 'file://D:/Jira/Data/import/attachments/380371/3416141.msg'.
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
	at java.io.WinNTFileSystem.canonicalize0(Native Method)
	at java.io.WinNTFileSystem.canonicalize(Unknown Source)
D:/Jira/Data -  Is my JIRA Home
I can access the file manually with the URI - file://D:/Jira/Data/import/attachments/380371/3416141.msg

Using JIRA 6.4.6 with jira-importers-plugin - 7.0.12. JIRA is installed on a Windows machine.

Any thoughts?

2 answers

1 accepted

I suggest you try the following 

file:/380371/3416141.msg

for the location of your attachments in the JSON file.

Thanks! That worked. The Atlassian documentation incorrectly states that we need to give the complete path.

"D:/Jira/Data -  Is my JIRA Home"

Is it also for the process running the import?

Same drive mapping?

same env-settings?

Process running the import? - I am using the JSON import facility which is within JIRA, the jira-importers plugin.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

84 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you