Several of our production AppSheet apps using Google Sheets are failing to load for all tested users, including me as the app creator. Our MySQL-backed apps continue to work.
The error starts with:
Unable to fetch app definition.
It then reports the following error for multiple Google Sheets-backed tables:
{
"error": {
"code": 401,
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
Affected tables listed are only Google Sheet tables. My SQL tables are not mentioned and SQL only Apps are working fine
Configuration and impact
All affected tables use as app creator access mode.
The issue affects the creator as well as other users.
Google Sheets connections are failing, while MySQL connections remain operational.
Google does not appear as a separate source under My account → Sources. I don’t recall it previously appearing there either.
Troubleshooting completed
Tried adding Google again as a data source using my account, without resolving the issue.
Removed AppSheet’s access from my Google account connections.
Signed out of AppSheet and signed back in through Google. The AppSheet connection reappeared in my Google account, but the apps still fail.
Tried copying an existing app, which also fails immediately.
These apps support operational training, so this is affecting our production users.
Has anyone experienced this behaviour? What should we check next to distinguish between an AppSheet Google connection issue and a Google Workspace access restriction?
Is there a way to verify or refresh the primary Google connection used by existing apps, beyond removing and regranting AppSheet’s Google access?
Thanks for the reply. Unfortunately not, and it’s a weird error. Just spent 2 hours with Appsheet Support but we got nowhere. Wondering if it’s connected to my business, as I also cannot create new blank apps, but can with my personal account. And Appsheet support could view my apps but myself and my colleague could not, although cookie refreshes sometimes gave us access (and sometimes not)
The fact that MySQL-backed apps are still working while the Google Sheets-backed apps are returning 401 errors is a useful clue. Since the creator is also affected, I’d look beyond individual table permissions and focus on the Google Workspace authentication or OAuth connection being used by AppSheet.
The inability to create a new blank app with the business account, while the personal account works, makes the Workspace environment even more worth investigating. I’d compare the affected account’s OAuth/app access, admin restrictions, and authentication policies with the personal account, and check whether the issue persists in an incognito session or with another Workspace user.
The intermittent access after refreshing cookies is also interesting. That could point toward a session or authentication-token issue rather than a problem with the underlying Sheets data.
Thanks Jordan. My own research and chats with colleagues has been leaning that way as well. I am now waiting for my internal ticket to be updated with and findings. Thanks for the correlating info though - making me feel more confident that I’m on the right track
Hi Steve. I should have posted back. yes it was resolved
Google confirmed that it was because of Admin policies setup which tried to comply and evaluate backend requests by applications and in case of Appsheet, they failed device- and IP-based validation, resulting in an Access Denied status on the AppSheet OAuth client.
And the reason they have mentioned is that, unlike other Google apps, AppSheet utilises backend server-to-server processes to communicate with Google Workspace APIs (such as Google Sheets and Drive). Because these background sync operations originate from Google Cloud backend infrastructure rather than the end-user’s physical browser or workstation, they do not carry client-side device signals (such as device compliance, OS version, or public office IP addresses).
They mentioned that it failed to recognise device status and IP from Appspace at that instance that resulted the request not meeting the policy setup and eventually resolved on its own once the sync was re-established.
It was weird though, probably half a dozen users in my company affected, whilst others reported no issues