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

0 votes
Accepted answer

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

77 views 3 3
Join discussion

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