- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Import survey error
- TIJ
- Topic Author
- Offline
- New Member
Less
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?
{"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:
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 7 months ago #158342
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
6 years 7 months ago #158384
by DenisChenu
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.
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.
- ShelleyWard
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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.