Suddenly receiving an RuntimeError in Monday.com in a GraphQL that worked just fine until a few weeks ago

I have a GraphQL module to perform a move_item_to_board which worked great, but a some time ago it started giving me a RunTime Error:

[200] [{“message”:“Argument ‘group_id’ on Field ‘move_item_to_board’ has an invalid value (topics). Expected type ‘ID!’.”,“locations”:[{“line”:2,“column”:3}],“path”:[“mutation”,“move_item_to_board”,“group_id”],“extensions”:{“code”:“argumentLiteralsIncompatible”,“typeName”:“Field”,“argumentName”:“group_id”}}]

Nothing changed on my end and this suddenly started happening. Would really appreciate the community’s help on this. I’m lost and no matter what I’ve tried, it didn’t work.

Thank you!

Blueprint attached:
blueprint.json (165.1 KB)

the mutation is:

mutation {
move_item_to_board(
item_id: {{3.id}},
board_id: 1526815206,
group_id: topics,
columns_mapping: [
{source: “name”, target: “name”},
{source: “creation_log1”, target: “creation_log1”},
{source: “date”, target: “date”},
{source: “color6”, target: “color6”},
{source: “color”, target: “color”},
{source: “dropdown”, target: “dropdown”},
{source: “label”, target: “label”},
{source: “text2”, target: “text2”},
{source: “text6”, target: “text6”},
{source: “text28”, target: “text28”},
{source: “text5”, target: “text5”}
]
) {
id
}
}

Hiya @tomazaria;

Per the API documentation, what are allowed values for group_id?

Is it text like topics per the error message or must it be a numeric ID like 5432?

It’s possible that the system has changed how information is sent, such as text versus ids.

Hi @tomazaria

Try enclosing the group ID in double quotation marks.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

Hi thanks, I tried that but then received a 500 err. Not sure what is going on with monday api lately, I made a workaround that changes a “helper” status in monday, to then use a monday automation to move an item to a different board. It’s slow, but it works.

Hi, so group_id is always created automatically by the system, I pull a list of board groups, and whatever is there is the group_id. in this case the group id was “topics”. I used double quotations as described in the reference, but I then received a 500 err.

@tomazaria; where are you getting the group_id from?

I’m curious because ID typically implies a unique numeric or alphanumeric identifier; and “topics” seems more like the group name to me.

I know, what you’re saying makes sense. However look at this part from monday.com api reference:

1 Like

Good day, @tomazaria. What does the settings of your Monday module look like?
22a6b1de39fb809718a009752334107846a28257

In particular where that group id is mentioned.

I’m beginning to think you need to JSON.stringify or Transform to JSON the outgoing data.

Hi @tomazaria
Attaching the corrected blueprint here.
blueprint (23).json (197.2 KB)
We have made changes in both graphQL module :


We removed the column_mapping as it is not required if the column ids are same.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

Thanks all! @Msquare_Automation @ImMichaelCannon

Your suggestion of removing the column mappings argument is indeed great in some cases and it let’s the api map the fields “on its own”. However the issue starts what I don’t want to map all the columns in one call as some information needs to be received from elsewhere to the target board.

After discussing with Monday API support we realized that the issue lied when trying to map the formula column, as it is the only column not supported by the move item to board call. The formula column “backend” actually sits on the client side of the platform, making it impossible for the API to read.

I really appreciate the help! Thank you.

3 Likes