Skip to content

[Due for payment 2026-08-31] [$250] [Exploratory] 92180 - IOU - First split after create expense from FAB open not here page RHP #92466

Closed

Description

@applause-bot

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: v9.3.90-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-36581/folder/13177049/41237811/1453338248?sort=%2Bidentifier
Email or phone of affected tester (no customers): leungbratt6+01061@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Windows 10/Chrome
App Component: Money Requests

Action Performed:

  1. Open the New Dot app
  2. Click on the FAB - Create expense - Manual - enter any amount
  3. Click next and enter a new user, not DM before
  4. Click Create expense
  5. Click on the + button in the chat - Split expense
  6. Enter any amount, then Split
  7. Open the Split expense

Expected Result:

Split expense detail appears

Actual Result:

Not here page RHP appears

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7168521_1780316637459.not_here.mp4
not_here_3.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7168521

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. applause-bot commented on Jun 3, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/e66ae6d1bd3414ffccae1bd170f523347eebd89013bf18ac23e54e85cdec4706

  2. added
    Bug
    on Jul 17, 2026
  3. MelvinBot commented on Jul 17, 2026

    @MelvinBot
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Creating an expense from the FAB with a brand-new user optimistically creates a 1:1 DM. Splitting an expense in that fresh chat and then opening the split shows the "Hmm... it's not here" NotFound page in the RHP. It only happens for the first split right after the chat is created, and it heals on refresh — the classic signature of an optimistic-reportID that got reconciled to a real one, leaving something orphaned under the old key.

    What is the root cause of that problem?

    When the server reconciles the optimistically-created DM, replaceOptimisticReportWithActualReport deletes the optimistic REPORT and copies its data to preexistingReportID — but for the DM branch (!parentReportActionID) it never re-keys REPORT_ACTIONS from the optimistic reportID to the real one.

    The split's IOU report action was written under the optimistic chat's reportID (Split.ts:1502-1530). After reconciliation the active route becomes /r/{realReportID}/split/{splitReportActionID}, but that split action still lives under REPORT_ACTIONS${optimisticReportID}. withReportAndReportActionOrNotFound looks up the action under the real reportID, finds nothing, and renders NotFoundPage. On refresh, the SPLIT_BILL response repopulates the action under the real reportID, so it heals.

    Evidence & data flow

    Flow: FAB → create expense w/ new user → optimistic DM created → split expense (action keyed under optimistic reportID) → server reconciles DM to real reportID, REPORT_ACTIONS left orphaned → tap split → route uses real reportID → action not found → NotFound.

    What changes do you think we should make in order to solve the problem?

    In the DM branch of replaceOptimisticReportWithActualReport, when clearing the optimistic report also migrate its report actions: merge allReportActions?.[optimisticReportID] into REPORT_ACTIONS${preexistingReportID} and set REPORT_ACTIONS${optimisticReportID} to null, so any actions created against the optimistic chat (like the split's IOU action) survive the re-key. This mirrors what already happens for in-flight requests in HandleUnusedOptimisticID, which rewrites queued request reportIDs but not local Onyx keys.

    What alternative solutions did you explore?

    Deferring/guarding the split-preview navigation until the split action resolves under the active reportID (e.g. fall back to the optimistic reportID if the action isn't found under the real one). This is more of a band-aid at the navigation layer; migrating the report actions during reconciliation fixes the underlying data inconsistency for all consumers, not just this screen.

    Possibly related open issues

    These share the split → NotFound symptom but appear to have different triggers (self-DM / delete-after-submit) than this new-user-DM reconciliation race.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/92466) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  4. added
    External
    on Jul 17, 2026
  5. added
    Help Wanted
    on Jul 17, 2026
  6. melvin-bot commented on Jul 17, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

  7. wildan-m commented on Jul 17, 2026

    @wildan-m
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2026-07-17 21:45:52 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    After creating an expense from the FAB with a brand-new user, then creating a Split expense in that same chat, opening the Split expense shows the "Not here" (Not Found) page in the RHP instead of the Split expense details.

    What is the root cause of that problem?

    The Split expense details screen looks up the split action inside the report you are currently viewing, rather than the report that actually owns the split action.

    When you tap the split preview, navigation builds the split-details route from the currently active report route by appending the dynamic suffix split/:reportActionID:

    onPreviewPressed={() => {
    if (shouldShowSplitPreview) {
    Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.SPLIT_BILL_DETAILS.getRoute(action.reportActionID)));
    return;
    }

    Because createDynamicRoute appends the suffix to Navigation.getActiveRoute(), the resulting route is r/<viewedReportID>/split/<reportActionID>, so the route's reportID param is the currently-viewed report.

    The Split details screen is wrapped by withReportAndReportActionOrNotFound, which reads the report actions of the route's reportID and looks the split action up there. If the action is not found under that report, it renders the Not Found page:

    const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${props.route.params.reportID}`);
    const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
    const parentReportAction = useParentReportAction(report);
    let linkedReportAction: OnyxEntry<OnyxTypes.ReportAction> = reportActions?.[`${props.route.params.reportActionID}`];

    if (shouldHideReport || (parentReportAction !== undefined && isEmptyObject(linkedReportAction))) {
    return <NotFoundPage />;

    The problem only appears in this specific flow because of report-action merging. When a chat has a single expense (exactly the state produced by "create expense from FAB"), the transaction-thread actions are merged into the report you are viewing, so the report you are viewing is not the report that owns each displayed action. This is documented in useOriginalReportID, and ActionContentRouter already computes the correct owner as actionOwnerReportID = originalReportID ?? reportID:

    import useOnyx from './useOnyx';
    import useTransactionsAndViolationsForReport from './useTransactionsAndViolationsForReport';
    /**
    * This hook is for finding the "original reportID" for a given reportActionID. The reportID usually is the report we are looking at,
    * and in most cases it will be the same as the original reportID. However, in these cases the original reportID is different:
    * - When viewing an expense report with a single transaction, the reportActions from the transaction thread and the expense report are merged, so in that case the
    * reportAction's report may be different from the report we are viewing.
    * - When viewing a thread report, the original reportID is the parent reportID, because the reportAction that created the thread belongs to the parent report.
    *
    * @param reportID The reportID of the report we are viewing
    * @param reportAction The reportAction we want to find the original reportID for

    const actionOwnerReportID = originalReportID ?? reportID;

    Because the split route is built from the viewed report instead of the action owner, the split action lives in a different report than the one the route points at, so withReportAndReportActionOrNotFound cannot find it and shows "Not here". In a plain chat where the viewed report already owns the action (originalReportID === reportID) the two are identical, which is why the bug does not reproduce outside this "first split after creating an expense" flow.

    What changes do you think we should make in order to solve the problem?

    Look the split action up in the report that owns it, while keeping the currently-viewed report as the screen's context (so back-navigation and chatReportID stay correct).

    ActionContentRouter already derives the owner as actionOwnerReportID = originalReportID ?? reportID. We thread that value down to ChatTransactionPreview and, only when it differs from the viewed reportID, pass it to the split route as an extra actionReportID param:

    <ChatTransactionPreview
    action={action}
    reportID={reportID}
    chatReport={report?.type === CONST.REPORT.TYPE.CHAT ? report : chatReport}
    iouReport={report?.type === CONST.REPORT.TYPE.CHAT ? iouReport : report}
    shouldShowSplitPreview={shouldShowSplitPreview}
    transactionID={shouldShowSplitPreview ? moneyRequestOriginalMessage?.IOUTransactionID : undefined}
    />
    );

    Concretely:

    • Add an optional actionReportID argument to ROUTES.SPLIT_BILL_DETAILS.getRoute(reportActionID, actionReportID?) (appended as a query param) and to the SPLIT_DETAILS.DYNAMIC_ROOT param type.
    • In ActionContentRouter, pass the already-computed actionOwnerReportID to ChatTransactionPreview.
    • In ChatTransactionPreview, when actionOwnerReportID differs from the viewed reportID, pass it as actionReportID when building the split route.
    • In withReportAndReportActionOrNotFound, read the split action's report actions from actionReportID ?? reportID (defaulting to the viewed report), while still using the viewed reportID as the screen's report.

    With the action looked up in the report that actually contains it, withReportAndReportActionOrNotFound resolves the split action and the Split expense details render instead of the Not Found page. In the normal case actionReportID is absent, so actionReportID ?? reportID equals the viewed report and every other flow is byte-for-byte unchanged.

    Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/92466-split-details-owner-report?expand=1

    What alternative solutions did you explore? (Optional)

    Alternatively, the split lookup could be made resilient inside withReportAndReportActionOrNotFound by recomputing the single-transaction thread and searching the action there when it is not found under the route's reportID. This duplicates the (relatively expensive) merge logic from useOriginalReportID inside a shared HOC, so passing the already-known owner report ID from the navigation source is the more targeted and lower-risk fix.

  8. 60 remaining items

  9. melvin-bot commented on Aug 30, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  10. melvin-bot commented on Aug 30, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    Upwork Job

    • Reviewer: @mukhrr owed $250 via NewDot
    • Assignee: @dmkt9 requires payment (Needs manual offer from BZ)

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  11. mallenexpensify commented on Sep 1, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @mukhrr due $250 via NewDot
    Contributor+: @dmkt9 paid $250 via Upwork.

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022094888804635479796

  12. flaviadefaria commented on Sep 2, 2026

    @flaviadefaria
    Contributor

    Approved: @mukhrr due $250 via NewDot

  13. dmkt9 commented on Sep 2, 2026

    @dmkt9
    Contributor

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.

    @mallenexpensify Thanks. I've accepted the offer.

  14. melvin-bot commented on Sep 4, 2026

    @melvin-bot

    @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  15. melvin-bot commented on Sep 5, 2026

    @melvin-bot

    @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  16. mallenexpensify commented on Sep 7, 2026

    @mallenexpensify
    Contributor

    @dmkt9 paid, summary updated above. Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternalNot a priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions