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

Más
8 meses 1 semana antes #180474 por boggiano
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

LimeSurvey Partners
Más
8 meses 1 semana antes - 8 meses 1 semana antes #180478 por jelo

boggiano escribió: 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
Última Edición: 8 meses 1 semana antes por jelo.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180479 por boggiano

jelo escribió: 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 escribió: 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 escribió: What exact PHP version is running on the webserver?


PHP 7.0.33-0ubuntu0.16.04.1

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180484 por jelo
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180485 por jelo
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180490 por boggiano

jelo escribió: 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 escribió: Please open a bug ticket now and attach the surveyfile.


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

jelo escribió: 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!)

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180491 por jelo

boggiano escribió: 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
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes - 8 meses 1 semana antes #180493 por boggiano

jelo escribió: 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!!
Última Edición: 8 meses 1 semana antes por boggiano.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Más
8 meses 1 semana antes #180495 por jelo

boggiano escribió: 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
El siguiente usuario dijo gracias: boggiano

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

¡Comenzar ahora!

Simplemente cree una cuenta y comience a usar LimeSurvey hoy mismo.

Registrarse ahora
¡Únase a nuestro boletín informativo!

Iniciar sesión