Invalid Survey Structure XML file

More
10 months 6 days ago #158471 by TIJ
TIJ created the topic: Invalid Survey Structure XML file
Hi All,
I am trying to import a survey template in .lSS but encountered the following error message.
I tried importing via the GUI and the survey was imported successfully.

Are there any ways to know what structure issue are in the XML file?

{"id":1,"result":{"status":"Error: This is not a valid LimeSurvey survey structure XML file."},"error":null}

Regards
Attachments:

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #158742 by TIJ
TIJ replied the topic: Invalid Survey Structure XML file
Anybody can help?

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #158761 by LouisGac
LouisGac replied the topic: Invalid Survey Structure XML file
My 2 cents: the file is very big

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #158763 by TIJ
TIJ replied the topic: Invalid Survey Structure XML file
I managed to resolved the issues.. Thanks..

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #158768 by LouisGac
LouisGac replied the topic: Invalid Survey Structure XML file
so, what was the problem?

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #158824 by TIJ
TIJ replied the topic: Invalid Survey Structure XML file
I re-do the whole survey one by one... re-importing each time after creating new questions....
Suspecting that the cause is the html widget generating some special char which cause the problem...

Please Log in or Create an account to join the conversation.

More
1 month 2 days ago #169942 by liu_yifan
liu_yifan replied the topic: Invalid Survey Structure XML file
I ran into the same error even using the sample survey downloaded from LimeSurvey.

Could you share your code using API?

Please Log in or Create an account to join the conversation.

More
1 month 2 days ago #169976 by liu_yifan
liu_yifan replied the topic: Invalid Survey Structure XML file
I found the solution. It works with PHP. With Python, need an extra line of decode("utf-8").
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!