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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

265 views 0 12
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot