Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Import survey error

More
6 years 7 months ago #158330 by TIJ
Import survey error was created by TIJ
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?
The topic has been locked.
More
6 years 7 months ago #158342 by jelo
Replied by jelo on topic Import survey error
Perhaps this thread can give some insight. Looks similar.
www.limesurvey.org/forum/development/104...ey_properties-issues

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: TIJ
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 months ago #158384 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
More
6 years 7 months ago #158411 by ShelleyWard
Replied by ShelleyWard on topic Import survey error
Thank you DenisChenu for your reply and reminder about debug mode.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose