Page 1 of 1

Cannot import :-(

Posted: 09 Jan 2014, 12:37
by Reinder
All,

I can't seem to import issues into MAntis via csv files. I am trying to import issues from another database (gemini) into mantis,but I get hte following error:

SYSTEM WARNING: XMLReader::read(): /tmp/phpjDXwle:1: parser error : Document is empty

SYSTEM WARNING: XMLReader::read(): id,Reporter,Priority,Severity,Category,Summary,Status,Resolution,Fixed in Versio

SYSTEM WARNING: XMLReader::read(): ^

SYSTEM WARNING: XMLReader::read(): An Error Occured while reading

Importing file, please wait...
SYSTEM WARNING: XMLReader::read(): An Error Occured while reading

Done
Processing cross-references for 0 issues... Done


The format I use is (added just 1 line);

Code: Select all

id,Reporter,Priority,Severity,Category,Summary,Status,Resolution,Fixed in Version
TYRE-5264,Reinder Otter,Low,Minor,Shared Code,hoe omgaan met Q_LBF etc,Assigned,Open,
What is the format that mantis accepts?

Re: Cannot import :-(

Posted: 09 Jan 2014, 14:24
by atrol

Re: Cannot import :-(

Posted: 09 Jan 2014, 14:41
by Reinder
I actually wanted to use the plugin from mantis itself (import/export). I just noticed that it only accepts xml formats? Having a problem with converting xls (or csv) to XML...somehow the xml maps are not exported....(but thats another problem).

I'll give the plugin a go (if IT decides to enable it....)

Re: Cannot import :-(

Posted: 10 Jan 2014, 12:38
by Reinder
ok, tried the csv importer, but I get freaky errors for the import... e.g. Invalid e-mail address.???

Do i need to give a primary key? and how is this used? I presumed that new issue numbers would be created which are primary keys..?

Re: Cannot import :-(

Posted: 10 Jan 2014, 21:43
by atrol
I can't provide more help as I don't use this plugin myself and have no time to have a deeper look at this 3rd party development.

Maybe there is some information in doc that helps.
https://github.com/mantisbt-plugins/csv ... readme.txt

There are also some known issues, see http://www.mantisbt.org/bugs project "Plugins - CsvImport"