Start a conversation

Troubleshooting - Survey Cannot Be Submitted

Overview

You may notice that a survey cannot be submitted using the ResponseTek API, and an HTTP error 400 (Bad Request) is returned.

 

Workflow

 

Instructions

Get The Latest Transactions

This step can only be performed by support agents since it requires access to the database. However, if you already have the requests sent to the ResponseTek API, proceed to the next step.

<supportagent>

Note: The steps in this section can only be performed by agents for SaaS customers. For on-premises customers, troubleshooting must be performed by the Professional Services team. If you need help determining if a customer is SaaS or on-premises, refer to Getting the List of ResponseTek Customers.

To obtain a list of the latest transactions, perform the following steps:

  1. Check which environment is used by the customer in the customer datasheet.
  2. Log in to SQL Server (check this page to get the server name or IP).
  3. Select the RT_Log database.
  4. Query the tblAPILog table to find the requests sent by the customer and the responses provided, which are stored in the responseContentBody column.

</supportagent>

 

Verify A Parameter Is Not Missing

Compare the parameters among the questions and check if one of them has fewer parameters than the others. If you need an example of this issue or help with how to identify if it is actually happening, please refer to Cannot Submit Survey - Missing Parameter.

 

Verify The Answer Matches The Question

Start from the request. On it, you are going to see something like this:

{
"surveyData":
[
{
"questionGuid":"380-6182ea629474",
"optionGuid":"28b-e51b06aae6bf",
"optionExternalRef":"",
"comment":""
}
...

Then, follow these steps:

  1. Log in to Survey Manager.
  2. For each question answered in the request:
    1. Get the question GUID from the questionGuid parameter. 
    2. Open the question by making the URL match the pattern below (replace [questionGuid] with the actual GUID you obtained in the previous step):
      ...responsetek.com/AdminPortal/QuestionManagement/QuestionManagement/Item?Guid=[questionGuid]&TypeName=Attribute
    3. Locate the answer options and click the Edit button:
      mceclip0.png
    4. On the page with the list of options, right-click it and select View Page Source.
    5. Search for the value of the optionGuid parameter. If you find it, the answer belongs to the question. Otherwise, refer to Cannot Submit Suvey - GUID Does Not Belong To The Question.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments