• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

JSON parse error

fisto

Member
Your Task History ID
IjU3NjUwNTZlMDYzNTA0MzI1MjZlNTUzMjUxMzU1MTY0NTQzNzBmMzgi_pc
I am having a JSON parse error when I try to create an opportunity in Moxie.

The error is at Step 28.

Please help.
 

Preeti Paryani

Well-known member
Staff member
Hello @fisto,

Upon checking we have noticed that the description received from step 26 contains double quotes which leads the JSON to malfunction. Please add a text formatter action to replace the double quotes with single quotes from description and map the response to step 28 then and let us know if it works fine for you.

1742293926382.png


1742293941551.png
 

ArshilAhmad

Moderator
Staff member
Task History ID - IjU3NjUwNTZlMDYzNTA0MzI1MjZiNTUzMDUxMzc1MTYyNTQzNDBmMzci_pc

Try passing the Estimated Close Date in the 'YYYY-MM-DD' format and see if that resolves your issue.
 

fisto

Member
I did that, and now I got a new JSON error:

JSON parse error: Cannot deserialize value of type `app.struxture.api.domain.discovery.Answer` from Array value (token `JsonToken.START_ARRAY`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `app.struxture.api.domain.discovery.Answer` from Array value (token `JsonToken.START_ARRAY`) at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 746] (through reference chain: app.struxture.api.domain.integrations.api.OpportunityCreate["leadInfo"]->app.struxture.api.domain.discovery.FormData["answers"]->java.util.ArrayList[0])
 

fisto

Member
Task History ID - IjU3NjUwNTZlMDYzNTA0M2M1MjZjNTUzNDUxMzM1MTY3NTQzNjBmMzki_pc

Based on your Task History, it appears that you are not passing any data to the 'Answer' field, which seems to be causing the issue this time.


Thank you for sharing the video.

I made the fixes you suggested, and I made sure data is passing to all Answer fields.

However I continue to get the same error. Can you please help me with this? Thank you.
 

ArshilAhmad

Moderator
Staff member
We removed the square brackets present in your Answer field, and it appears to have fixed your issue.

1742422777618.png


1742422802417.png
 

fisto

Member
I got the JSON Parse Error again.

Task History ID: IjU3NjUwNTZlMDYzMjA0Mzc1MjZjNTUzMDUxMzA1MTYzNTQzODBmMzki_pc

Can you please help with this one?
 

ArshilAhmad

Moderator
Staff member
The description you are trying to pass to the Moxie action step contains double quotes, which appears to be causing the issue.
1742582418249.png


We have added a Text Formatter to your workflow to automatically replace double quotes with single quotes. Please check if this resolves the issue.
1742582591886.png
 
Top