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] Expense - Error after holding expense and approving unheld expense as vacation delegate #65003
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Version Number: 9.1.71-8 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 TestRail:#61845 Email or phone of affected tester (no customers):sdnjoidsjosdjsojo2@gmail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Create a workspace.
Invite User B to the workspace.
Go to Account > Status > Vacation delegate.
Add User B as vacation delegate and click Save.
Go to workspace chat.
Submit an expense to the workspace chat.
Click Submit on the expense preview.
As User B, open the expense report.
Click More > Split > Save.
Refresh the page.
Open any expense row.
Click More > Hold > Enter reason and save it.
Close the RHP.
Click Approve.
Approve only the pending amount.
Dismiss the error.
Expected Result:
In Step 16, no error will show up after approving only the pending amount.
Actual Result:
In Step 16, error shows up after approving only the pending amount.
In Step 17, after dismissing the error, the unheld expense is approved.
👋 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.
So this is a new feature and it doesn't look like there were any changes to the backend related to it in this deploy. I'm going to remove the DeployBlocker label (but keep DeployBlockerCash) so it won't block our deploy. Also cc @deetergp since I think you're looking at these ones?
changed the title [-][HOLD App #65838][$250] Expense - Error after holding expense and approving unheld expense as vacation delegate[/-][+][$250] Expense - Error after holding expense and approving unheld expense as vacation delegate[/+]on Aug 1, 2025
I've spent some time with this today and have figured out what is happening, and I think I've also figured out why it's happening.
I suspect this is some kind of race condition, though I’m not entirely certain why it has anything to do with the Vacation Delegates feature. Here are the steps:
Create the expense & submit it to the reviewer/vacation delegate
The expense goes on a report
The reviewer/vacation delegate splits the expense
Two new split transactions are created on that same report
The original expense is moved to a phony report (reportID -2)
Reviewer selects one of the splits and puts it on hold
Splits are still on the same report
Reviewer clicks Approve for the un-held expense
The held report is put on a new reportID
The Report no longer exists error is thrown here when we try to load the new report via its reportID
When we create that new report for the held expense, we are not sharing it with the vacation delegate/reviewer:
The code for this is pretty nearly done. Spent today learning how to use Cursor/Claude while writing a test for this. Likely have it out for review later tonight or in the morning.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review
Activity
melvin-bot commentedon Jun 26, 2025
Triggered auto assignment to @bfitzexpensify (
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.melvin-bot commentedon Jun 26, 2025
Triggered auto assignment to @madmax330 (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jun 26, 2025
👋 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:
melvin-bot commentedon Jun 26, 2025
💬 A slack conversation has been started in #expensify-open-source
dangrous commentedon Jun 26, 2025
So this is a new feature and it doesn't look like there were any changes to the backend related to it in this deploy. I'm going to remove the
DeployBlockerlabel (but keepDeployBlockerCash) so it won't block our deploy. Also cc @deetergp since I think you're looking at these ones?47 remaining items
[-][HOLD App #65838][$250] Expense - Error after holding expense and approving unheld expense as vacation delegate[/-][+][$250] Expense - Error after holding expense and approving unheld expense as vacation delegate[/+]deetergp commentedon Aug 1, 2025
#65838 has been deployed so this is now off hold and back to being a daily. Per this convo I am going to start working on this issue first.
deetergp commentedon Aug 2, 2025
I've spent some time with this today and have figured out what is happening, and I think I've also figured out why it's happening.
Report no longer existserror is thrown here when we try to load the new report via its reportIDWhen we create that new report for the held expense, we are not sharing it with the vacation delegate/reviewer:
Now I just need to figure out how to make sure we share when the delegate/reviewer clicks the Approve button…
melvin-bot commentedon Aug 5, 2025
@deetergp Whoops! This issue is 2 days overdue. Let's get this updated quick!
deetergp commentedon Aug 6, 2025
The code for this is pretty nearly done. Spent today learning how to use Cursor/Claude while writing a test for this. Likely have it out for review later tonight or in the morning.
deetergp commentedon Aug 13, 2025
Asked for a retest here https://expensify.slack.com/archives/C9YU7BX5M/p1755104698096419
m-natarajan commentedon Aug 13, 2025
Unable to reproduce this on Web, Android and iOS in v9.1.93-3
https://github.com/user-attachments/assets/015addb7-9c04-464f-bf63-e2c03fb88a1c
https://github.com/user-attachments/assets/1dadec9e-7c1c-4f6c-9728-97bf1a40a8f3
https://github.com/user-attachments/assets/38b678bb-1ce8-4342-8444-dcafd923fcf0
deetergp commentedon Aug 13, 2025
Thanks @m-natarajan! Closing this one out.