Getting error while inserting multiple select data into Airtable

Hello guys, I am trying to insert Multiple Select data into Airtable. When I select only ONE data, it successfully inserts it into Airtable. But selecting more than one data gives error. Yes, I have already checked and data is perfectly identical on both sides, not even a space difference.

(Note: I am not trying to insert new data, the same data is in the Airtable already)

Query:

mutation
{
insert_studentRecords(
studentPreferences: "{{student_preferences.value}}"
)
{
studentPreferences
}
}

Error:

"errors": [
{
"message": "Unexpected error value: { error: "INVALID_MULTIPLE_CHOICE_OPTIONS", message: "Insufficient permissions to create new select option \"\"Standard Selection,Premium Selection\"\"", statusCode: 422 }"

Thank you.

Hey @samundrashahi

I'm just going to give a guess here - I bet this is due to the extra quotations around {{student_preferences.value}}.

Could you try this query without that ?

1 Like

Hi there @samundrashahi. What is studentPreferences expecting as an input type? Looking at the error message it seems to be interpreting "Standard Select,Premium Selection" as one option as opposed to two, and throwing an error because that option doesn't exist. Perhaps, also, as @**JoeyKarczewski **mentioned, you'll need to remove the extra quotations.