Error in import : This is not a valid LimeSurvey survey structure XML file.

Mehr
2 Monate 4 Tage her #180474 von boggiano
COM_KUNENA_MESSAGE_CREATED_NEW
I am trying to import a very large exported survey ( ~ 15MB).

But as soon it finished upload, I am getting the message:

"
Success
File upload succeeded.
Error
This is not a valid LimeSurvey survey structure XML file.
"

I am on:
Linux Mint 18
Limesurvey Version 3.15.8+190130
Mysql Ver 15.1 Distrib 10.0.38-MariaDB


I tried to modify php.ini with memory_limit, post_max_size, upload_max_filesize... but no luck.
Xml file seems good to me (xmllint has no complains about it)

Here the link to the lss file :
http://s000.tinyupload.com/download.php?file_id=97395941513994626910&t=9739594151399462691057618


Thanks

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
2 Monate 3 Tage her - 2 Monate 3 Tage her #180478 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW

boggiano schrieb: But as soon it finished upload, I am getting the message:
Success
File upload succeeded.
Error
This is not a valid LimeSurvey survey structure XML file.
"


There is currently no indication for uploadsize issues around PHP.
You would then receive different issues (e.g. Entity Too Large from the webserver).
You can see the max limit when looking at the import dialog.
"Select survey structure file (*.lss, *.txt) or survey archive (*.lsa) (maximum file size: X.XX MB)

The file is uploaded, but the file itself seems to be incompatible or buggy.
A bug inside LimeSurvey is possible too.

What exact PHP version is running on the webserver?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 2 Monate 3 Tage her by jelo.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180479 von boggiano
COM_KUNENA_MESSAGE_REPLIED_NEW

jelo schrieb: You would then receive different issues (e.g. Entity Too Large from the webserver).
You can see the max limit when looking at the import dialog.

Yes I agree with you!
Right now I have:
upload_max_filesize = 520M
(just for testing, of course!)

jelo schrieb: The file is uploaded, but the file itself seems to be incompatible or buggy.
A bug inside LimeSurvey is possible too.


I used xmllint just to be sure about the syntax and it's seems ok!
Also I tried to delete some records by hand and I come up that the problem is the size of the file (or the number of records).
I deleted a bunch of records until I managed to import it, than adding a single "simple" (no strange chars) record I add the same issue.

jelo schrieb: What exact PHP version is running on the webserver?


PHP 7.0.33-0ubuntu0.16.04.1

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180484 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
Do you know the exact version of LimeSurvey, where this export is from?
The XML file contains 410464 lines.
Looks to me like a bug in the export and/or import routines.

I can reproduce the issue. I currently rule out the server stack.
Please open a bug ticket now and attach the surveyfile.

We had such issues in the past. Can be certain char which breaks the import, but not the export. XML can be fine for the XML parser, but not for the LimeSurvey import routines. So please open the bug ticket now.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180485 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
Update: I was able to import a LSS file after deleting stuff inside the XML file. Will need to reproduce some steps to be sure.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180490 von boggiano
COM_KUNENA_MESSAGE_REPLIED_NEW

jelo schrieb: Do you know the exact version of LimeSurvey, where this export is from?

2.72.2+171017.
But keep in mind that I can't even import it in the same environment or copy the survey.


jelo schrieb: Please open a bug ticket now and attach the surveyfile.


I already did it! :)
https://bugs.limesurvey.org/view.php?id=14527

jelo schrieb: We had such issues in the past. Can be certain char which breaks the import, but not the export.



It could be but, I as wrote before, I deleted records from the file until I was able to import it.
Than adding a single clean record the import failed again (so I am thinking about file size or number of records/fields rather than bad chars!)

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180491 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW

boggiano schrieb: It could be but, I as wrote before, I deleted records from the file until I was able to import it.

What do you mean be record?

I didn't delete xml rows, just content inside. So no questions where removed.



The questioncodes need to be converted. D18_1 will become D181. LimeSurvey will do that for your.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her - 2 Monate 3 Tage her #180493 von boggiano
COM_KUNENA_MESSAGE_REPLIED_NEW

jelo schrieb: What do you mean be record?
I didn't delete xml rows, just content inside. So no questions where removed.


I deleted a bunch of "<row></row>".
You did better!!

Which size has the new file, now ?

So, maybe, it is really a file size matter !


EDIT:
as written in the ticket I deleted all contents inside the tags:

<surveyls_welcometext>
<surveyls_endtext>
<surveyls_url>
<surveyls_email_remind>
<surveyls_email_invite>
<email_admin_responses>


And it worked!!
Last edit: 2 Monate 3 Tage her by boggiano.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Tage her #180495 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW

boggiano schrieb: So, maybe, it is really a file size matter !

No, it's a character/content issue. At least for LimeSurvey it is an issue. The XML itself is fine, so no external tool will flag an issue inside the XML file.

Case closed.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Folgende Benutzer bedankten sich: boggiano

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha