My Products
Help
iizy
CONTRIBUTOR ***

The query availableCompanies stopped working

by iizy

Hi,

The query availableCompanies doesn't work anymore.

 

 

query GetAvailableCompanies {
   availableCompanies {
      totalCount
      items {
         name
         vismaNetCompanyId
      }
   }
}

 

 

Response

 

{
    "errors": [
        {
            "message": "The request could not be executed!",
            "path": [
                "availableCompanies"
            ]
        }
    ],
    "data": {
        "availableCompanies": null
    },
    "extensions": {
        "vbnxt-trace-id": "00000000000000000d5a802f6e67bbc3"
    }
}

 

 

 

We have reported the issue couple months ago: https://community.visma.com/t5/Diskusjon/The-request-could-not-be-executed-get-available-companies/m...

 

but then the query returned list of available companies, even though an error occured

 

 

 

 

3 REPLIES 3
iizy
CONTRIBUTOR ***

by iizy

Do you have any idea what might be the root cause?

omelhus
PARTNER

by omelhus

Does it work if you use something like first: 10? Have you tried fetching just the customers first, then just batching out the companies? My guess is that there's a tenant with issues, and this will smoke out which one.

 

query GetAvailableCustomers {
   availableCustomers {
      totalCount
      items {
         name
         vismaNetCustomerId
      }
   }
}
iizy
CONTRIBUTOR ***

by iizy

No, it didn't help.

 

The same query works here:

 

iizy_0-1725859469145.png