Skip to content

[Sentry: APP-EQF] NitroSQLite too many SQL variables on Android #94577

Description

@mountiny

Sentry

https://expensify.sentry.io/issues/APP-EQF

Impact (snapshot at filing)

  • Users (total since first seen): 2
  • Events: 3
  • Users (last 14d): 1
  • First seen: 2026-06-06
  • Last seen: 2026-06-22 (ongoing)
  • Platform: Android hybrid (org.me.mobiexpensifyg)
  • App version(s): 9.4.0-0, 9.4.16-2
  • Affected route(s) (parameterized): Settings_Troubleshoot
  • Mechanism: onunhandledrejection (reported as handled in Sentry tags)

Stack trace (top frames, first-party only)

No first-party stack frames available in Sentry for this issue.
Error: NitroSQLiteError: [NativeNitroSQLiteException][SqlExecutionError] too many SQL variables

Suspected cause

A NitroSQLite query is likely building an IN (...) clause (or equivalent bound-parameter list) that exceeds SQLite's variable limit (~999) when run against a large local Onyx database. Affected users appear to be power accounts (11–50 policies, 10,000+ reports, 1,001–2,500 personal details), which matches David Barrett's Android loading investigation where local DB work is a bottleneck.

Reproduction

Unknown — see Sentry events linked from the Sentry issue. Last known context: Android hybrid, Settings_Troubleshoot, production release new.expensify@9.4.16-2.

Related

  • Sibling Sentry IDs (if any): none identified
  • Prior GH issues: #87844 (Onyx storage errors umbrella), #87868 (NitroSQLite disk full)
Issue OwnerCurrent Issue Owner: @chrispader

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
SUBISSUE

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions