You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spend - Report paid by business bank account does not appear when filtered by bank account #95053
BugSomething is broken. Auto assigns a BugZero manager.EngineeringHot PickReady for an engineer to pick up and run withInternalRequires API changes or must be handled by Expensify staffMonthlyKSv2
Version Number: 9.4.25-1 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#90791 Email or phone of affected tester (no customers):applausetester+khcategory19@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Account has business bank account.
User has personal bank account.
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense above $100.00.
Click Submit, Approve and Pay with business bank account.
Open filters.
Click Bank account.
Select the bank account.
Close filters.
Expected Result:
The report paid by business bank account will appear when filtered by bank account.
Actual Result:
The report paid by business bank account does not appear when filtered by bank account.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Root Cause (likely backend): The App-side "Bank account" filter added in PR #90791 is internally consistent — it emits the correct query and the only accounts it offers are business accounts, so the report is not being dropped on the client. The report‑to‑bank‑account matching happens server-side, so the report failing to appear points at the backend half of this feature, not App code.
Here's what the App does, verified end-to-end:
The picker offers only BUSINESS bank accounts in a usable state, via isFilterableBankAccount — so a business account is exactly what's selectable, and a business‑paid report is what it's meant to match.
That value is serialized into the query as bankAccount:<bankAccountID> (SearchQueryUtils.ts:1003). The filter is documented to match past withdrawals that paid expenses (SearchQueryUtils.ts:1189-1201) — i.e. report → its settlement/withdrawal → the paying bankAccountID. That join is performed by the search backend.
Most likely mechanism: The bankAccountID the App sends does not match what the backend has recorded as the paying account on the settled report. The prime suspect is an ID mismatch for business/workspace withdrawal accounts — the ID in the admin's bankAccountList (what the picker sends) may differ from the ID stored on the report's settlement/withdrawal record that the search endpoint matches against. (An alternative to rule out: the report wasn't actually settled via "Pay via bank account", so there's no withdrawal row to match — but the repro steps do pay, so this is less likely.)
Recommended next step: This requires a change outside the Expensify/App repo — in the backend search handler for the bankAccount filter (the backend half is linked from PR #90791). An internal engineer with backend access should verify how bankAccount:<id> is resolved against a report's paying account, and specifically whether a business/workspace withdrawal account stores the same bankAccountID the App picker sends. I don't have access to that repo, so I can't propose the code fix here.
Investigation details & verification aid
Confidence: High that the App side is correct; Medium on the exact exclusion cause, which lives server-side.
To confirm quickly: Capture the actual Search API request when reproducing and check the query contains bankAccount:<expectedID> with the business account's ID, then compare that ID to the one stored on the settled report's withdrawal record. If they differ, that mismatch is the bug.
Alternative explanations considered:
Personal accounts missing from the picker → ruled out; the picker only shows business accounts by design.
Client serialization dropping the value → ruled out; bankAccount:<id> is emitted correctly and parses back.
Report not actually settled → possible but unlikely given the repro explicitly pays via business bank account.
Related:#88385 is the feature-tracking issue for this filter (not a duplicate).
Next Steps: This is a DeployBlockerCash. Since the fix is backend, escalate to an internal engineer to verify the server-side bankAccount filter matching for business accounts. Reply with @MelvinBot <feedback> to refine this analysis.
demoting - the root cause is likely in the backend. It's a bug revealed by a huge PR which I wouldn't revert for this issue. It is also a new feature that isn't promoted to the users so I think it's fine for this one to take the regular path
BugSomething is broken. Auto assigns a BugZero manager.EngineeringHot PickReady for an engineer to pick up and run withInternalRequires API changes or must be handled by Expensify staffMonthlyKSv2
Activity
applause-bot commentedon Jul 1, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/bd45a3e07c94a778bbae78996e2263f47a63ba64600d36309848e1f9a0f93778
melvin-bot commentedon Jul 1, 2026
@JS00001 recently merged #90791, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon Jul 1, 2026
Triggered auto assignment to @inimaga (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jul 1, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jul 1, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
inimaga commentedon Jul 1, 2026
@allgandalf Could you take a look?
MelvinBot commentedon Jul 1, 2026
Issue Analysis
Root Cause (likely backend): The App-side "Bank account" filter added in PR #90791 is internally consistent — it emits the correct query and the only accounts it offers are business accounts, so the report is not being dropped on the client. The report‑to‑bank‑account matching happens server-side, so the report failing to appear points at the backend half of this feature, not App code.
Here's what the App does, verified end-to-end:
isFilterableBankAccount— so a business account is exactly what's selectable, and a business‑paid report is what it's meant to match.bankAccountIDbecomes the filter value (BankAccountSelector.tsx:52-83).bankAccount:<bankAccountID>(SearchQueryUtils.ts:1003). The filter is documented to match past withdrawals that paid expenses (SearchQueryUtils.ts:1189-1201) — i.e. report → its settlement/withdrawal → the payingbankAccountID. That join is performed by the search backend.Most likely mechanism: The
bankAccountIDthe App sends does not match what the backend has recorded as the paying account on the settled report. The prime suspect is an ID mismatch for business/workspace withdrawal accounts — the ID in the admin'sbankAccountList(what the picker sends) may differ from the ID stored on the report's settlement/withdrawal record that the search endpoint matches against. (An alternative to rule out: the report wasn't actually settled via "Pay via bank account", so there's no withdrawal row to match — but the repro steps do pay, so this is less likely.)Recommended next step: This requires a change outside the Expensify/App repo — in the backend search handler for the
bankAccountfilter (the backend half is linked from PR #90791). An internal engineer with backend access should verify howbankAccount:<id>is resolved against a report's paying account, and specifically whether a business/workspace withdrawal account stores the samebankAccountIDthe App picker sends. I don't have access to that repo, so I can't propose the code fix here.Investigation details & verification aid
Confidence: High that the App side is correct; Medium on the exact exclusion cause, which lives server-side.
To confirm quickly: Capture the actual Search API request when reproducing and check the query contains
bankAccount:<expectedID>with the business account's ID, then compare that ID to the one stored on the settled report's withdrawal record. If they differ, that mismatch is the bug.Alternative explanations considered:
bankAccount:<id>is emitted correctly and parses back.Related: #88385 is the feature-tracking issue for this filter (not a duplicate).
Next Steps: This is a
DeployBlockerCash. Since the fix is backend, escalate to an internal engineer to verify the server-sidebankAccountfilter matching for business accounts. Reply with@MelvinBot <feedback>to refine this analysis.cristipaval commentedon Jul 1, 2026
demoting - the root cause is likely in the backend. It's a bug revealed by a huge PR which I wouldn't revert for this issue. It is also a new feature that isn't promoted to the users so I think it's fine for this one to take the regular path
31 remaining items
JS00001 commentedon Sep 23, 2026
Same
JS00001 commentedon Oct 2, 2026
Same
JS00001 commentedon Oct 12, 2026
Same
JS00001 commentedon Nov 16, 2026
Same, still a hot pick