Import survey error

More
1 month 1 week ago #158330 by TIJ
TIJ created the topic: Import survey error
Was trying to import survey via remote api using java but encountered the following error during execution:
{"id":null,"result":null,"error":"unable to decode malformed json"}

Using the following method:
post.setEntity( new StringEntity("{\"method\": \"import_survey\", \"params\": [\""+sessionKey+"\", \"" +readXML()+ "\", \"lss\", \"20170906_TEST1\", \"999999\"], \"id\": 1}"));

I tried importing the lss file via gui and was successful.
Do we need to filter any special characters in the lss file generated from lime?
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago #158342 by jelo
jelo replied the topic: Import survey error
Perhaps this thread can give some insight. Looks similar.
www.limesurvey.org/forum/development/104...ey_properties-issues
The following user(s) said Thank You: TIJ

Please Log in to join the conversation.

More
1 month 1 week ago #158384 by DenisChenu
DenisChenu replied the topic: Import survey error
readXML() ? This don't update the xml readed ? You must send untouched xml.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
1 month 1 week ago #158411 by ShelleyWard
ShelleyWard replied the topic: Import survey error
Thank you DenisChenu for your reply and reminder about debug mode.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now