Skip to content

[Due for payment 2025-03-17] [Create Expense] Submits To Display Name Missing #56609

@grgia

Description

@grgia

Original Thread

Problem:

  • getAccountsByID is failing to retrieve the "Submits To" display name in workspaces with a large number of members.
  • Possible cause is Onyx might not fully load objects when an array (e.g., employeeList) contains many records, causing missing properties.

Repro Steps:

  1. Add yourself to a workspace with very large group of members. (e.g. policyID: 8A152FCBCD316665)
  2. Click on the FAB > Create Expense.
  3. Go to the participant list and verify that for most workspaces it shows Submits to but ones with large members doesn't show.

Debug Findings:

  • Adding debug logs in ReportUtils.ts confirms that submitsToAccountDetails is sometimes undefined.
Issue OwnerCurrent Issue Owner: @alexpensify / @slafortune

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions