Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.1.99-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-442/folder/13176670/41237098/861421037
Email or phone of affected tester (no customers): ibellicotest+1677@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 / Android 12 / Chrome ( mWeb / Hybrid app) - Windows 11 / Chrome
App Component: Money Requests
Action Performed:
Prerequisite: Account has at least two workspaces available.
- Open the staging.new.expensify.com website.
- Open any workspace chat.
- Submit a manual expense to it.
- Navigate to "Account" > "Troubleshoot"
- Tap on "Clear cache and restart"
- Click on "Reset and refresh"
- Return to workspace chat and open the report of the previously created expense.
- Tap on "More" > "Change Workspace"
- Select any workspace to move the expense to.
- Note that an "Oops, something went wrong and your request could not be completed" error message appears at the bottom of teport.
- Navigate to "Workspaces" and open the workspace where the expense was created.
- Note that a RBR is displayed on "Members"
- Tap on "Members"
- Note that an "There was a problem adding this member" error message is displayed below the owner´s Email.
- Clear the error and return to "Inbox"
- Note that fallback avatar is displayed on "Account" on navigation bar.
- Note that both workspaces are displayed as "Chat Report" with fallback avatar.
- Open any workspace and return to "Inbox"
- Note that now, both workspaces are correctly displayed.
Expected Result:
User should be able to move a report to a different workspace after clearing cache and data without any error during the process.
Actual Result:
When user tries to move a report to another workspace after clearing cache on the app, an "Oops, something went wrong and your request could not be completed" error message appears on report.
Also, when navigating to workspace after this action, a RBR appears on "Members" section and an "There was a problem adding this member" error message appears below the owners Email on members list.
After returning from workspaces section, the "Account" section displays fallback avatar on navigation bar, and both workspaces are displayed as "Chat Report" on "Inbox".
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
1.mp4
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021990741952170914223
- Upwork Job ID: 1990741952170914223
- Last Price Increase: 2025-11-18
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Aug 27, 2025
Triggered auto assignment to @greg-schroeder (
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.[-]Report - Error message when trying to move report to another WS after clearing cache.[/-][+] Report - Error message when trying to change report Workspace after clearing cache.[/+]thelullabyy commentedon Aug 27, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports return an error message when attempting to change their workspace after the app cache has been cleared.
What is the root cause of that problem?
The issue stems from the logic used to determine whether the user is a member of the target policy. In the
ReportChangeWorkspacePage, we use theisPolicyMemberfunction, which relies on theemployeeList. However, in certain cases—particularly after the cache has been cleared—theemployeeListisn't fetched in time, causingisPolicyMemberto returnfalse. This leads the app to treat the user as if they are not a member of the policy, resulting in an invalid API call that triggers the error mentioned in the original post.What changes do you think we should make in order to solve the problem?
We should adjust the logic to skip this check if the current user matches the
report.ownerAccountIDand is either an admin or owner of the target policy. This way, we can bypass the unreliableemployeeListstate when we have sufficient information about the user’s role.The
shouldSkipcondition can be defined as either:or more simply:
The stricter version adds an extra layer of validation based on user role, while the simpler one prioritizes user ownership regardless of role.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
Option 1: Update the
isPolicyMemberfunction itself to include a fallback that checks whether the current user is an admin or owner of the policy. This would broaden the definition of membership to reduce reliance onemployeeList.Option 2: Besides the membership check, we can use
getPolicyExpenseChatto determine whether a policy expense chat already exists between thereport.ownerAccountIDand the target policy. If it exists, the user can be assumed to be a valid member of that policy:Note: All the suggestion code changes only target on our current bug. We can also apply the fix to other places, such as here.
melvin-bot commentedon Sep 1, 2025
@greg-schroeder Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Sep 2, 2025
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
melvin-bot commentedon Sep 2, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)melvin-bot commentedon Sep 5, 2025
@rojiphil Whoops! This issue is 2 days overdue. Let's get this updated quick!
63 remaining items
rojiphil commentedon Nov 17, 2025
@greg-schroeder BZ Checklist done. Thanks.
greg-schroeder commentedon Nov 18, 2025
Handling
[-][Due for payment 2025-11-17] Report - Error message when trying to change report Workspace after clearing cache.[/-][+][$250] [Due for payment 2025-11-17] Report - Error message when trying to change report Workspace after clearing cache.[/+]melvin-bot commentedon Nov 18, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021990741952170914223
melvin-bot commentedon Nov 18, 2025
Current assignee @rojiphil is eligible for the External assigner, not assigning anyone new.
greg-schroeder commentedon Nov 18, 2025
Payment summary:
Author: @thelullabyy - $250 - Upwork
Reviewer: @rojiphil - $250 - ND
Approved for payments as outlined above ☝️
garrettmknight commentedon Dec 7, 2025
$250 approved for @rojiphil
thelullabyy commentedon Jan 30, 2026
Kindly bump for payout on upwork
garrettmknight commentedon Feb 3, 2026
Upwork job paid out and closed.