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

This widget could not be displayed.

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.

This widget could not be displayed.
"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 Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

176 views 1 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