AppSheet Authentication Error

Starting to see this error this morning, users are not able to login...

JMPeterson_0-1744722278528.png

 

1 23 570
23 REPLIES 23

GB
Bronze 5
Bronze 5

Getting the same issue. Native sign in with microsoft is giving exactly the same error

The error "Sequence contains more than one matching element" typically points to a server-side issueโ€”most likely a duplicate record in a database or identity provider mismatch where the system expects a single unique user entry but finds multiple.

 

Hereโ€™s a breakdown of whatโ€™s likely going on and steps to resolve it:

 

 

What It Means

 

The login process is querying a user record (by email, username, or some other key).

 

It expects exactly one match.

 

It found multiple matches.

 

This causes the system to throw an exception instead of handling the ambiguity.

 

 

Common Causes

 

1. Duplicate entries in the user database (same email/ID appearing more than once).

 

 

2. Misconfigured Identity Provider (IdP) integration (e.g., Azure AD, Google Workspace) returning multiple identity claims.

 

 

3. Database constraint or sync issues, possibly caused by recent changes in your auth/user setup.

 

 

4. Caching issue where stale user data is conflicting with updated identity data.

 

 

 

What You Can Do

 

If you have backend or admin access:

 

Check the user table (wherever itโ€™s storedโ€”SQL, Azure AD, etc.) for duplicates.

 

Search by the email address or user identifier of the person trying to log in.

 

 

Remove or merge duplicates if found.

 

 

If you're using Azure AD / SSO:

 

Go into Azure Portal > Azure Active Directory > Users.

 

Check for users with the same email but different object IDs.

 

Also look at "Enterprise Applications" > [Your App] > Users and Groups.

 

 

If youโ€™re the app admin but not backend admin:

 

Report the issue to your IT team or the app developer.

 

Provide a screenshot and the email of an affected user.

 

Mention that duplicate records are likely the issue.

 

 

Short-Term Fix

 

If you can identify a user with the issue, try:

 

Deactivating one of their duplicate records (if possible).

 

Clearing any cached tokens/sessions from the identity provider.

 

 

I will follow up with this, but the only time we see the error is when trying to login via AppSheet. Any other SSO login or authentication works without issue. Thank you for this context.

We verified no duplicate records on our end. More and more convinced its not on our end where the error is occurring.

We also looked into this, but this is not the case. The authentication with Azure AD works with appsheet, according the sign-in logs of the Azure AD Application. There are no duplicate users. 

Different error we have come across. It looks like the way AppSheet is handling authentication has changed, either how it passes the parameters or how its checking them.

JMPeterson_0-1744732438960.png

@Aleksi @lizlynch @Aurelien 

AppSheet support has been unhelpful, and our apps are facing various issues. It seems there's a problem in the backend. The worst part is that the apps have been locked for over 24 hours, causing operations to come to a halt. Their response is always to escalate to a specialist. Do they even grasp the severity of the situation?

https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/App-Blocked-Operations-were-halted-all-day-due-...  

We also see the same error since today. We use Microsoft for authentication. All other applications with Microsoft work fine.

Error Message: Sequence contains more than one matching element

Along these lines we're also seeing the error and have USER_SETTINGS configured but we're unable to view the USER_SETTING fields to query the affected tables.  Has anyone experienced this too? 

Daisy_Ramirez_0-1744751732280.png

 

User are unable to work - We need help urgently.

Same error - Microsoft used for authentication. No issues with other MS applications.

Error Message: Sequence contains more than one matching element

we having the same issues also. Error Message: Sequence contains more than one matching element.

and after pressing the Azure AD button (or microsoft button) for 11 times, it totally crashes, especially in InPrivate mode.


We have a ticket in with AppSheet as well and are still seeing the issue with several users - not all. @AleksiAlkio can you help us escalate? Clients dealing with operational issues as a result since yesterday morning. Case ID is 9-7086000038317  Here is the troubleshooting completed from the client's side on the device thus far:

Iโ€™ve done two logins on the same device.  One login works (email1) and the other does not (email2)

Here is the process.

Clear AppSheet cache and data
Clear Chrome cache and data
Log in with respective email address
I can repeat this process over and over.  email1 shows both the LIV_DS_Manager and Route app in the App Gallery.   

I repeat the process.   email2 receives the error message  โ€œSequence contains more than one matching elementโ€

When I repeat the clear cache steps and then log in again, email2 ALWAYS receives the error message and email1 NEVER has the error message.

This is on the same device.   Using a different device the result is exactly the same.  If I login with email2 on a different device I receive the same error.   If I clear the cache and data as I described on this same device that just failed, and login with email1, both DS and RS app display in app gallery.

This is not device specific, it is something to do with the user login.   Uninstalling and reinstalling the AppSheet app does not change the behavior. 

Please let us know what updated AppSheet can give. 

Yes this is a known issue and devs have found out the main cause. They are trying to get it fixed by today's deployment.

In my communication with the support team, they have identified the issue and are targeting deploying a fix today.

Are there any updates on the deployment of the fix? As of 638pm US Eastern time - we're still experiencing the same issue.

The fix seems to have been deployed today, around 2PM CST. Our users have been able to successfully log back in.

Hi Daisy, are you still suffering from this or has it started to work after the fix was released?

As of 6pm last night we still had the issue


Just confirmed we're still unable to login with some users and getting the same "new" error as the others: 

Daisy_Ramirez_1-1744922084101.png

 

 

 

Same for us, just for a single account right now.

@AleksiAlkio we have a different error now during login. It is the same as one month ago: https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/Appsheet-ID-on-existing-default-UserAuth-does-n...

Error: AppSheet id on existing default UserAuth does not match.

We are seeing this same error, but only for one account so far.