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
[$250] Expenses - Unable to create an expense after selecting a valid tax rate #80192
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: v9.3.6-0 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:#78358 Email or phone of affected tester (no customers):agexptest+pr210126@gmail.com Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Windows 11/ Chrome, Samsung S23FE/ Android 16, iPhone 13 Mini/ iOS 26.1 App Component: Money Requests
Action Performed:
Prerequisites: Have two workspaces with taxes enabled. One of them is the default workspace.
Add a new tax rate to the default workspace.
Launch the Expensify app
Go to selfDM
Create a new tracked expense
Set the tax rate to the newly created one
Tap on Submit to someone
Choose a different workspace with tax enabled
Fill in the merchant if needed
Tap on "Create X expense"
Verify that you see the error for the tax rate
Change the tax rate
Verify that after changing the tax rate no error appears and you can submit the expense
Expected Result:
The error message disappears, and the expense is successfully created.
Actual Result:
Unable to create an expense due to the error message.
👋 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.
Classification: Frontend bug Causing PR: #78358 - "fix: revert revert taxes field" by @koko57 (High confidence) Related Issues: None
Recommendation: REVERT
PR #78358 should be reverted. While it adds important tax validation for track expenses, it has a critical bug where tax validation errors are not cleared when the user selects a valid tax rate, making it impossible to submit expenses.
Labels: Removing DeployBlocker since this is a frontend bug. Keeping DeployBlockerCash.
📋 Detailed Analysis
Evidence
PR #78358 introduced tax tracking functionality for expenses being moved from track expenses to workspaces. The issue occurs in the exact scenario described in the PR's test plan (step 10-12 of the "Submitting the expense to a different workspace with taxes enabled" section).
Verification
The bug is in /src/components/MoneyRequestConfirmationList.tsx:
Lines 970-973 - Tax validation that sets the error:
Missing logic: There is NO equivalent code to clear violations.taxOutOfPolicy when the user changes to a valid tax rate.
Root Cause
PR #78358 added validation to check if a tax rate from one workspace exists in another workspace (line 970). However, it failed to add the corresponding cleanup logic in the useEffect (around lines 441-463) to clear the violations.taxOutOfPolicy error when the user fixes the issue by selecting a valid tax rate.
The error persists because violation errors starting with CONST.VIOLATIONS_PREFIX are intentionally preserved across focus changes (line 453), but there's no logic to clear them when the underlying issue is resolved, unlike the violations.missingAttendees case.
This is a missing validation-clearing pattern that exists for other violations but was not implemented for the tax validation.
changed the title [-]Expenses - Unable to create an expense after selecting a valid tax rate[/-][+][$250] Expenses - Unable to create an expense after selecting a valid tax rate[/+]on Jan 22, 2026
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jan 22, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #78358
melvin-bot commentedon Jan 22, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Jan 22, 2026
Triggered auto assignment to @johncschuster (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Jan 22, 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:
OSBotify commentedon Jan 22, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #78358 - "fix: revert revert taxes field" by @koko57 (High confidence)
Related Issues: None
Recommendation: REVERT
PR #78358 should be reverted. While it adds important tax validation for track expenses, it has a critical bug where tax validation errors are not cleared when the user selects a valid tax rate, making it impossible to submit expenses.
Labels: Removing
DeployBlockersince this is a frontend bug. KeepingDeployBlockerCash.📋 Detailed Analysis
Evidence
PR #78358 introduced tax tracking functionality for expenses being moved from track expenses to workspaces. The issue occurs in the exact scenario described in the PR's test plan (step 10-12 of the "Submitting the expense to a different workspace with taxes enabled" section).
Verification
The bug is in
/src/components/MoneyRequestConfirmationList.tsx:Lines 970-973 - Tax validation that sets the error:
Lines 458-461 - Example of clearing violations when user fixes them:
Missing logic: There is NO equivalent code to clear
violations.taxOutOfPolicywhen the user changes to a valid tax rate.Root Cause
PR #78358 added validation to check if a tax rate from one workspace exists in another workspace (line 970). However, it failed to add the corresponding cleanup logic in the useEffect (around lines 441-463) to clear the
violations.taxOutOfPolicyerror when the user fixes the issue by selecting a valid tax rate.The error persists because violation errors starting with
CONST.VIOLATIONS_PREFIXare intentionally preserved across focus changes (line 453), but there's no logic to clear them when the underlying issue is resolved, unlike theviolations.missingAttendeescase.This is a missing validation-clearing pattern that exists for other violations but was not implemented for the tax validation.
koko57 commentedon Jan 22, 2026
@parasharrajat were you be able to look into this persistent error issue we had for the category field on staging?
parasharrajat commentedon Jan 22, 2026
These errors happen with the Category field as well as reported on the PR. @cristipaval We should add that too, and remove DP.
2 remaining items
cristipaval commentedon Jan 22, 2026
Yes, this is a known bug that happens to the other fields as well. I'll demote it for now. We'll work on it with urgency.
[-]Expenses - Unable to create an expense after selecting a valid tax rate[/-][+][$250] Expenses - Unable to create an expense after selecting a valid tax rate[/+]melvin-bot commentedon Jan 22, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022014263718904725186
melvin-bot commentedon Jan 22, 2026
Current assignee @parasharrajat is eligible for the External assigner, not assigning anyone new.
koko57 commentedon Jan 22, 2026
this issue can be closed - it has the same root cause as #79902, so it could be handled there. I left my findings in that issue #79902 (comment)
koko57 commentedon Jan 23, 2026
It's a regression from #79050 - confirmed here #79902 (comment)
cc @cristipaval @parasharrajat
cristipaval commentedon Jan 23, 2026
Closing, since this is a dupe of #79902