Trying to programatically create subitems on a monday board with a phone number column. I’m formatting the phonenumber as per the API documentation but I’m getting ColumnValueExceptionwith phone numbers
ClientError: GraphQL Error (Code: 200): {“response”:{“error_code”:“ColumnValueException”,“status_code”:200,“error_message”:“invalid value, please check our API documentation for the correct data structure for this column. https://api.developer.monday.com/docs/change-column-values",“error_data”:{“column_value”:"{"countryShortName"=>"GB", "phone"=>"+7777777777"}”,“column_type”:“PhoneColumn”},“status”:200,“headers”:{}},“request”:{“query”:“\\n mutation {\\n create_subitem (\\n parent_item_id: 3441762528, \\n item_name: "Test name",\\n column_values: "{\\"name\\":\\"Test name\\",\\"phone\\":{\\"countryShortName\\":\\"GB\\",\\"phone\\":\\"7777777777\\"},\\"email\\":{\\"text\\":\\"simon@keyzy.com\\",\\"email\\":\\"simon@keyzy.com\\"},\\"date\\":{\\"date\\":\\"2000-01-01\\",\\"time\\":\\"00:00:00\\"},\\"numbers\\":1,\\"numbers7\\":0,\\"status4\\":{\\"index\\":0},\\"dup__of_personal_details\\":{\\"index\\":null},\\"dup__of_dup__of_personal_details\\":{\\"index\\":null},\\"dup__of_dup__of_dup__of_personal_details\\":{\\"index\\":0},\\"dup__of_dup__of_dup__of_dup__of_dup__of_personal_details\\":{\\"index\\":0},\\"dup__of_dup__of_dup__of_dup__of_personal_details\\":{\\"index\\":null},\\"check\\":{\\"checked\\":\\"true\\"},\\"status5\\":{\\"index\\":2},\\"dup__of_right_to_uk\\":{\\"index\\":1},\\"dup__of_dup__of_right_to_uk\\":{\\"index\\":1},\\"dup__of_dup__of_dup__of_right_to_uk\\":{\\"index\\":1}}"\\n ) {\\n id\\n }\\n }\\n “}}
at /app/node_modules/graphql-request/src/index.ts:410:11
at step (/app/node_modules/graphql-request/dist/index.js:63:23)
at Object.next (/app/node_modules/graphql-request/dist/index.js:44:53)
at fulfilled (/app/node_modules/graphql-request/dist/index.js:35:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
If you notice, the request is sending the phonenumber WITHOUT the +symbol, yet the API error shows the + at the start of the string. What am I doing wrong here?
The situation looks like: I need to use real countries and country codes. That is, I can’t not include an alphabetic country code, or I can’t specify a non-existent phone number, for example, 00000
Why is that? we lose phones of customers who did not include the country code in the number, or for other reasons
Literally a week ago it was possible to specify any phone
The first time you see “phone”, should be your phone column’s ID (not the name of the column, the ID). The second “phone” should just be “phone” and not “site_telephone0”.
@bartwwww that is weird. It looks good but we might be missing something. Can you please try in the Playground a mutation including only the phone column (like the one I show here) and let me know what happens? Please send a screenshot of the mutation and response in the Playground.
Cheers,
Matias
Hi @Matias.Monday I am facing the same issue, I have used exactly what you have shared but I am still facing the same issue
Using the Playground, your suggested command responds with a “success”, but it does not seem to assign the telephone number value to the board “phone” column (even after a F5 refresh).
I only included the JSON method example as a point of comparison really.
My Java middleware generates a text based Phone column assignment, thus:
the response is
So, for text based assignments, is this GraphQL command, correct?
Thanks.
Hi,
We’re also seeing issues with writing to phone columns. This appears to be a regression in the Monday API.
We have not made any changes to our Monday.com integration, but today we started to see errors like the following:
"invalid value, please check our API documentation for the correct data structure for this column. https://api.developer.monday.com/docs/change-column-values","error_data":{"column_value":"{\\"phone\\"=\\u003e\\"+1234567897\\", \\"countryShortName\\"=\\u003e\\"US\\"}","column_type":"PhoneColumn"}}
We also have automated integration tests against your API which were previously passing and are also now failing with similar errors. Again, no code on our end has changed recently.
Putting phone first in the stringified JSON had no effect sadly
Hi everyone, I’m also running into this error (glad it’s not just me!)
This is the error I’m getting.
string(360) "{"error_code":"ColumnValueException","status_code":200,"error_message":"invalid value, please check our API documentation for the correct data structure for this column. https://api.developer.monday.com/docs/change-column-values","error_data":{"column_value":"{\\"phone\\"=\\u003e\\"+01234567899\\", \\"countryShortName\\"=\\u003e\\"GB\\"}","column_type":"PhoneColumn"}}"
I’m also seeing \\u003e\\ (which is ‘>’ in unicode). I wonder if there’s a ‘<’ missing somewhere on the backend?
This query format is able to update other column/s no problem so it’s definitely something specific with the Phone column.
Hello all,
We recently released a change to strictly validate the values sent to our columns.
@bartwwww, we’re now requiring that phone numbers and country codes be valid in order to properly populate the Phone column. If numbers are coming from your users, I suggest implementing a check on your end to ensure only proper values are sent to the API.
As far as I can tell, the phone numbers we’re passing to the API are valid US phone numbers.
I’m wondering if we need to provide them in a specific format, or if there’s some other checks that you’re applying to verify if the numbers are valid.
Can you share more information on what “valid” means - what are the validation rules you’re applying on your end?
Hi @alessandra, I took the same number and tried to enter it via both the Monday UI and via the Monday API.
The Monday UI happily accepted it
The Monday API did not
error_message":"invalid value, please check our API documentation for the correct data structure for this column. https://api.developer.monday.com/docs/change-column-values","error_data":{"column_value":"{\\"phone\\"=\\u003e\\"+2025550191\\", \\"countryShortName\\"=\\u003e\\"US\\"}","column_type":"PhoneColumn"}}
Any idea what is going on here? Like I said, the number seems to be valid and in a valid format. Here’s the full payload our tests are sending:
As of Today, my API automations (through Zapier) started working again. The Monday dev team mustve fixed the phone validation issue!
I did not change anything on my side.
Thanks Monday team!
Hello everyone!
The validation for the phone column has been temporarily removed.
We are preparing some specific documentation to help you with it, and will let you know before we implement it again.
Cheers,
Matias
We will turn the phone column validation on beginning December 1st, 2022. You can find more details in this announcement!
I´m experiencing the same problem:
Invalid value for {“phone”=>“+491765579XXXX”} on PhoneColumn. invalid value, please check our API documentation for the correct data structure for this column. Guide to Changing Column Values
Hello there @ovokevinxo and welcome to the community!
I hope you like it here 💪
Would you be able to please share with me your entire mutation so we can take a look into it?
Those look like the variables for your mutation, would you be able to send the mutation itself with the actual values of the variables you are using? (not with the names of the variables in it)