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
FE Expense - Two "moved this expense from another report" after deleting report #90618
Version Number: 9.3.74-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:#90131 Email or phone of affected tester (no customers):sdsdjoijdoisnjodis@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Create two expenses.
Open the report.
Bulk select both expenses.
Click More > Hold.
Enter reason and save it.
Click More > Delete.
Delete the report.
Go to self DM.
Open any unreported expense from the deleted report.
Right click on the first "moved this expense from another report" message > Reply in thread.
Expected Result:
In Step 11, only one "moved this expense from another report" will appear in the expense.
Actual Result:
In Step 11, two "moved this expense from another report" appear in the expense.
In Step 12, "Auth OpenReport returned an error" shows up on the first "moved this expense from another report".
👋 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: #87991 - "Refactor: isolate allReports from shouldReportActionBeVisible function" by @shubham1206agra (High confidence) Related Issues: #66406
Recommendation: REVERT
PR #87991 removed the guard that filtered out MOVED_TRANSACTION report actions when the source or destination report no longer exists, which now causes duplicate "moved this expense from another report" messages to appear after the original report is deleted.
Assigned: @shubham1206agra (PR author), @DylanDylann, @tgolen (approving reviewers) from highest-confidence causing PR only Labels: DeployBlockerCash kept (frontend App PR is the cause). DeployBlocker is not present and should not be added.
Detailed Analysis
Evidence
The issue reproduces only on staging (version 9.3.74-0), not on production — consistent with it being introduced by a staging-only PR.
The melvin-bot initially assigned PR fix: resolve distance edit regressions #90131, but that PR only touches IOURequestStepDistance.tsx (distance editing logic) and has no relation to report action visibility or "moved this expense" messages. It is not the cause.
PR Refactor: isolate allReports from shouldReportActionBeVisible function #87991, merged 2026-05-13, directly modifies shouldReportActionBeVisible in src/libs/ReportActionsUtils.ts and the visibleReportActions derived value config in src/libs/actions/OnyxDerived/configs/visibleReportActions.ts. Both files control which MOVED_TRANSACTION report actions are rendered.
The bug reproduction steps (create expenses, hold, delete report, open unreported expense) produce exactly the scenario that PR Refactor: isolate allReports from shouldReportActionBeVisible function #87991 changed: when the original report is deleted, the MOVED_TRANSACTION action that previously would have been hidden (because fromReport no longer exists) is now always shown.
Verification
Files affected by the bug:
src/libs/ReportActionsUtils.ts — shouldReportActionBeVisible function
src/libs/actions/OnyxDerived/configs/visibleReportActions.ts — visibleReportActions derived value
src/components/ReportActionItem/MovedTransactionAction.tsx — rendering of the moved transaction message
This meant that if the report was deleted (and thus absent from allReports), the MOVED_TRANSACTION action was hidden.
PR #87991 removed this guard entirely — the intent was to always show the "moved this expense from another report" audit trail message even when the report is deleted. However, the implementation introduced a regression: because the visibleReportActions derived value no longer listens to ONYXKEYS.COLLECTION.REPORT changes (that dependency was also removed), and because the action's visibility is no longer filtered by report existence, two separate MOVED_TRANSACTION actions (one per expense that was bulk-held before deletion) are both rendered without any deduplication or report-existence guard. This causes two "moved this expense from another report" entries to appear.
The Auth OpenReport returned an error on right-click reply is a secondary symptom: the MovedTransactionAction previously returned emptyHTML when no report could be resolved — this emptyHTML prop was also removed by PR #87991, so the action now renders with a dangling childReportID pointing to a report that was deleted.
When deleteAppReport runs, the client creates an optimistic UNREPORTED_TRANSACTION action in each transaction thread (Report/index.ts:6477-6484). The server processes DeleteAppReport and likely also creates a MODIFIED_EXPENSE action with movedFromReport field (the legacy mechanism for tracking expense moves). Both action types render as "moved this expense from another report":
The "Auth OpenReport returned an error" occurs because the server-created MODIFIED_EXPENSE action likely references the now-deleted report in its thread context, so OpenReport fails when trying to reply in that thread.
What changes do you think we should make in order to solve the problem?
Add a visibility filter in shouldReportActionBeVisible to hide MODIFIED_EXPENSE actions that have movedFromReport set when an UNREPORTED_TRANSACTION action already exists in the same transaction thread for the same move event. This would prevent the duplicate message on the client side.
Alternatively, the backend DeleteAppReport handler should be updated to not create a MODIFIED_EXPENSE action when it already uses the client-provided movedReportActionID for the UNREPORTED_TRANSACTION action — this would fix it at the source.
What alternative solutions did you explore?
Filtering out MODIFIED_EXPENSE actions with movedFromReport when movedFromReport points to a deleted report. This is less precise and could hide legitimate MODIFIED_EXPENSE actions from other flows.
Deduplicating at the visibleReportActions derived value level instead of shouldReportActionBeVisible. This would work but adds more complexity to an already expensive computation.
For held transactions, it creates an UNHOLD action (line 6393-6417)
It re-parents the transaction thread to self DM (line 6451-6458)
It creates an UNREPORTED_TRANSACTION action in the transaction thread (line 6477-6484)
It sends movedReportActionID to the server (line 6498-6504)
The server likely also creates a MODIFIED_EXPENSE with movedFromReport (legacy path, per OriginalMessage.ts:855-859)
Both actions are pushed to the client and rendered as separate "moved" messages
Confidence: Medium — the client-side code evidence is clear, but server-side behavior (creating MODIFIED_EXPENSE) cannot be confirmed without backend code or log verification.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Thanks for the BE response data — this changes the analysis significantly.
Key finding: The DeleteAppReport response does NOT contain any UNREPORTED_TRANSACTION or MODIFIED_EXPENSE actions for the transaction threads. The movedReportActionIDs (6011398714879481171, 861575958276410440) sent by the client are not referenced anywhere in the server response. Only UNHOLD actions appear in the thread updates.
This means:
The client's optimistic UNREPORTED_TRANSACTION actions persist after the API call (successData just clears pendingAction at Report/index.ts:6486-6490)
The duplicate does NOT come from the DeleteAppReport response itself
Updated hypothesis: The server is creating its own action (either UNREPORTED_TRANSACTION with a different ID, or a MODIFIED_EXPENSE with movedFromReport) and storing it, but not returning it in the DeleteAppReport response. When the user later opens the transaction thread (triggering OpenReport), the server returns ALL stored actions including the server-created one. The client then has both:
Its own optimistic UNREPORTED_TRANSACTION (from deleteAppReport line 6478)
The server's separately-created action
Both render as "moved this expense from another report" with no dedup.
To confirm this: Could you check the OpenReport response for one of the transaction threads (8467642844301769 or 3544254813942894) after navigating to the expense? Specifically, look for any UNREPORTED_TRANSACTION or MODIFIED_EXPENSE reportActions returned. If the server returns an action with a different reportActionID than the client's movedReportActionID, that confirms the root cause is the backend not using the client-provided movedReportActionID when creating the action.
Next Steps: Reply with @MelvinBot <your feedback> or share the OpenReport response to confirm the hypothesis.
Thanks for sharing the OpenReport response — this clarifies the root cause significantly. I'm updating my earlier analysis.
The server response for reportActions_8467642844301769 (the transaction thread) contains exactly ONE UNREPORTEDTRANSACTION action (ID 1580421272610261). But the client also created an optimistic UNREPORTEDTRANSACTION with a different ID via rand64() at Report/index.ts:6478.
The problem: the successData only sets pendingAction: null on the optimistic action — it never removes it. When the server's DeleteAppReport response merges in a newUNREPORTEDTRANSACTION action with a different reportActionID (1580421272610261), the client ends up with twoUNREPORTEDTRANSACTION actions in the same thread. Both render as "moved this expense from another report."
The "Auth OpenReport returned an error" on the first message likely occurs because the optimistic action's thread context references the now-deleted report.
Fix: The server should use the client-provided movedReportActionID (sent via transactionIDToReportActionAndThreadData) as the actual reportActionID instead of generating a new one. This is how other optimistic actions work — the client generates the ID, and the server adopts it. Alternatively, the successData could null out the optimistic action when the server returns its own version, but that's a workaround rather than a fix.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
@shubham1206agra I agree that the backend fix sounds best. Do you agree that it's OK to remove this as a deploy blocker? My thinking is that this is a very specific flow, that is very rarely touched, so it's not worth holding up the deploy to get the BE fix done, nor is it worth reverting the FE PR.
Issue: I cannot access the backend repository (Expensify/Auth) — my clone attempt returned a 403. The fix for this issue lives entirely on the server side, not in the App repo.
Root Cause (confirmed by investigation above): The DeleteAppReport backend handler creates its own UNREPORTED_TRANSACTION action with a server-generated reportActionID, ignoring the client-provided movedReportActionID sent via transactionIDToReportActionAndThreadData. This causes duplicates — the client's optimistic action and the server's separately-created action both persist.
Backend fix needed: In the DeleteAppReport command handler, when creating the UNREPORTED_TRANSACTION report action for each moved transaction, the server should use the movedReportActionID from the transactionIDToReportActionAndThreadData parameter (which the client already sends) as the reportActionID, instead of generating a new one. This ensures the server's action replaces the client's optimistic action rather than creating a duplicate.
Next steps: Someone with access to the Auth repo needs to implement this change in the DeleteAppReport command handler.
changed the title [-]Expense - Two "moved this expense from another report" after deleting report[/-][+]FE Expense - Two "moved this expense from another report" after deleting report[/+]on May 14, 2026
Activity
melvin-bot commentedon May 14, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #90131
melvin-bot commentedon May 14, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 14, 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 May 14, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #87991 - "Refactor: isolate allReports from shouldReportActionBeVisible function" by @shubham1206agra (High confidence)
Related Issues: #66406
Recommendation: REVERT
PR #87991 removed the guard that filtered out
MOVED_TRANSACTIONreport actions when the source or destination report no longer exists, which now causes duplicate "moved this expense from another report" messages to appear after the original report is deleted.Assigned: @shubham1206agra (PR author), @DylanDylann, @tgolen (approving reviewers) from highest-confidence causing PR only
Labels:
DeployBlockerCashkept (frontend App PR is the cause).DeployBlockeris not present and should not be added.Detailed Analysis
Evidence
IOURequestStepDistance.tsx(distance editing logic) and has no relation to report action visibility or "moved this expense" messages. It is not the cause.shouldReportActionBeVisibleinsrc/libs/ReportActionsUtils.tsand thevisibleReportActionsderived value config insrc/libs/actions/OnyxDerived/configs/visibleReportActions.ts. Both files control whichMOVED_TRANSACTIONreport actions are rendered.MOVED_TRANSACTIONaction that previously would have been hidden (becausefromReportno longer exists) is now always shown.Verification
Files affected by the bug:
src/libs/ReportActionsUtils.ts—shouldReportActionBeVisiblefunctionsrc/libs/actions/OnyxDerived/configs/visibleReportActions.ts—visibleReportActionsderived valuesrc/components/ReportActionItem/MovedTransactionAction.tsx— rendering of the moved transaction messageConfirmation that PR #87991 modifies these files:
PR #87991 was merged 2026-05-13 into staging version 9.3.74-0. The bug was reported the next day, 2026-05-14.
Root Cause
Before PR #87991,
shouldReportActionBeVisiblecontained the following guard forMOVED_TRANSACTIONactions:This meant that if the report was deleted (and thus absent from
allReports), theMOVED_TRANSACTIONaction was hidden.PR #87991 removed this guard entirely — the intent was to always show the "moved this expense from another report" audit trail message even when the report is deleted. However, the implementation introduced a regression: because the
visibleReportActionsderived value no longer listens toONYXKEYS.COLLECTION.REPORTchanges (that dependency was also removed), and because the action's visibility is no longer filtered by report existence, two separateMOVED_TRANSACTIONactions (one per expense that was bulk-held before deletion) are both rendered without any deduplication or report-existence guard. This causes two "moved this expense from another report" entries to appear.The
Auth OpenReport returned an erroron right-click reply is a secondary symptom: theMovedTransactionActionpreviously returnedemptyHTMLwhen no report could be resolved — thisemptyHTMLprop was also removed by PR #87991, so the action now renders with a danglingchildReportIDpointing to a report that was deleted.MelvinBot commentedon May 14, 2026
Proposal
What is the root cause of that problem?
When
deleteAppReportruns, the client creates an optimisticUNREPORTED_TRANSACTIONaction in each transaction thread (Report/index.ts:6477-6484). The server processesDeleteAppReportand likely also creates aMODIFIED_EXPENSEaction withmovedFromReportfield (the legacy mechanism for tracking expense moves). Both action types render as "moved this expense from another report":UNREPORTED_TRANSACTIONrenders viagetUnreportedTransactionMessage→iou.movedTransactionFromAnotherReportMODIFIED_EXPENSEwithmovedFromReportrenders viagetMovedFromOrToReportMessage→iou.movedFromReportNoNameThere is no deduplication between these two action types — both are independently visible in
PureReportActionItem.tsxandshouldReportActionBeVisible.The "Auth OpenReport returned an error" occurs because the server-created
MODIFIED_EXPENSEaction likely references the now-deleted report in its thread context, soOpenReportfails when trying to reply in that thread.What changes do you think we should make in order to solve the problem?
Add a visibility filter in
shouldReportActionBeVisibleto hideMODIFIED_EXPENSEactions that havemovedFromReportset when anUNREPORTED_TRANSACTIONaction already exists in the same transaction thread for the same move event. This would prevent the duplicate message on the client side.Alternatively, the backend
DeleteAppReporthandler should be updated to not create aMODIFIED_EXPENSEaction when it already uses the client-providedmovedReportActionIDfor theUNREPORTED_TRANSACTIONaction — this would fix it at the source.What alternative solutions did you explore?
MODIFIED_EXPENSEactions withmovedFromReportwhenmovedFromReportpoints to a deleted report. This is less precise and could hide legitimateMODIFIED_EXPENSEactions from other flows.visibleReportActionsderived value level instead ofshouldReportActionBeVisible. This would work but adds more complexity to an already expensive computation.Investigation details
Evidence chain:
deleteAppReportiterates each transaction on the report (Report/index.ts:6339)UNHOLDaction (line 6393-6417)UNREPORTED_TRANSACTIONaction in the transaction thread (line 6477-6484)movedReportActionIDto the server (line 6498-6504)MODIFIED_EXPENSEwithmovedFromReport(legacy path, perOriginalMessage.ts:855-859)Confidence: Medium — the client-side code evidence is clear, but server-side behavior (creating
MODIFIED_EXPENSE) cannot be confirmed without backend code or log verification.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.shubham1206agra commentedon May 14, 2026
@tgolen I am confused. Is this a BE or FE problem? Looks like BE and FE problem at the same time. 😢
6 remaining items
MelvinBot commentedon May 14, 2026
Thanks for the BE response data — this changes the analysis significantly.
Key finding: The
DeleteAppReportresponse does NOT contain anyUNREPORTED_TRANSACTIONorMODIFIED_EXPENSEactions for the transaction threads. ThemovedReportActionIDs (6011398714879481171,861575958276410440) sent by the client are not referenced anywhere in the server response. OnlyUNHOLDactions appear in the thread updates.This means:
UNREPORTED_TRANSACTIONactions persist after the API call (successData just clearspendingActionatReport/index.ts:6486-6490)DeleteAppReportresponse itselfUpdated hypothesis: The server is creating its own action (either
UNREPORTED_TRANSACTIONwith a different ID, or aMODIFIED_EXPENSEwithmovedFromReport) and storing it, but not returning it in theDeleteAppReportresponse. When the user later opens the transaction thread (triggeringOpenReport), the server returns ALL stored actions including the server-created one. The client then has both:UNREPORTED_TRANSACTION(fromdeleteAppReportline 6478)Both render as "moved this expense from another report" with no dedup.
To confirm this: Could you check the
OpenReportresponse for one of the transaction threads (8467642844301769or3544254813942894) after navigating to the expense? Specifically, look for anyUNREPORTED_TRANSACTIONorMODIFIED_EXPENSEreportActions returned. If the server returns an action with a differentreportActionIDthan the client'smovedReportActionID, that confirms the root cause is the backend not using the client-providedmovedReportActionIDwhen creating the action.Next Steps: Reply with
@MelvinBot <your feedback>or share theOpenReportresponse to confirm the hypothesis.shubham1206agra commentedon May 14, 2026
@MelvinBot
Here's the OpenReport response
{ "onyxData": [ { "key": "transactions_", "onyxMethod": "mergecollection", "value": { "transactions_3049162149997324803": { "amount": -100, "bank": "", "billable": false, "cardID": 21602248, "cardName": "Cash Expense", "cardNumber": "", "category": "Training", "comment": { "comment": "", "hold": "" }, "convertedAmount": -100, "convertedTaxAmount": null, "created": "2026-05-14", "currency": "USD", "currencyConversionRate": "1.0", "hasEReceipt": false, "inserted": "2026-05-14 07:40:55", "iouRequestType": "manual", "managedCard": false, "mcc": 0, "merchant": "LLL", "modifiedAmount": "", "modifiedCreated": "", "modifiedCurrency": "", "modifiedMCC": "", "modifiedMerchant": "", "originalAmount": 0, "originalCurrency": "", "parentTransactionID": "", "posted": "", "receipt": null, "reimbursable": true, "reportID": "0", "status": "Posted", "tag": "", "taxAmount": null, "taxCode": null, "taxValue": null, "transactionID": "3049162149997324803" } } }, { "key": "bankAccountList", "onyxMethod": "set", "value": { "6825488": { "accountData": { "accountNumber": "XXXXXXXXXXXX1111", "additionalData": { "ACHRequestReportActionID": "4120837820324838714", "acceptTerms": true, "addressCity": "Buena Vista", "addressState": "CO", "addressStreet": "County Road 348", "addressZipCode": "81211", "approvedBy": "Automatic", "bankName": "Wells Fargo", "beneficialOwners": [], "certifyTrueInformation": true, "companyName": "Alberta Bobbeth Charleson", "companyPhone": "2019999999", "companyTaxID": "123456789", "country": "US", "currency": "USD", "currentStep": "EnableStep", "dateSigned": "2025-09-20 17:04:30", "dob": "2000-08-08", "fieldsType": "local", "firstName": "Alberta", "hasFullSSN": true, "hasNoConnectionToCannabis": true, "incorporationDate": "2025-08-01", "incorporationState": "CA", "incorporationType": "COOPERATIVE", "industryCode": "212321", "isAuthorizedToUseBankAccount": true, "isControllingOfficer": true, "isFromNewDot": true, "isOnfidoSetupComplete": true, "lastName": "Charleson", "lastUpdate": "2025-09-20 17:04:39", "mask": "1111", "ownsMoreThan25Percent": false, "plaidAccessToken": "access-sandbox-e6760909-5fe4-4b0b-b4d6-3a5ea5904d58", "plaidAccountID": "QqZQb54dRyInV41Z7VdrTP3VXngLoJfwPJjb1", "policyID": null, "previousState": 2, "requestorAddressCity": "New York", "requestorAddressState": "NY", "requestorAddressStreet": "345 Park Avenue", "requestorAddressZipCode": "10154", "setupType": "plaid", "ssnLast4": "3333", "verifications": { "blackListed": { "isBankAccountCopy": false, "isBlackListedAddress": false, "isBlackListedName": false, "isBlackListedUser": false, "isFlagged": false }, "externalApiResponses": { "bankAccount": { "status": "pass" }, "companyTaxID": { "status": "pass" }, "dowJonesMRB": { "status": "pass" }, "lexisNexisInstantIDResult": { "status": "pass" }, "requestorIdentityID": { "apiResult": { "id-number": "2026549069", "reason": "Plaid test withdrawal account" }, "status": "pass" }, "requestorIdentityOnfido": { "status": "pass" } } }, "website": "https:\/\/www.expensify.com" }, "addressName": "Alberta Bobbeth Charleson", "allowDebit": true, "bankAccountID": 6825488, "created": "2025-01-18 06:17:35", "defaultCredit": false, "expensifyCardDomain": "", "isExpensifyCardSettlementAccount": false, "isSavings": true, "policyIDs": [ "CEEEDB0EC660F71A", "D62EF164682E4E6D" ], "processor": "bancorp", "riskChecked": true, "routingNumber": "011401533", "sharees": [], "state": "OPEN", "type": "BUSINESS" }, "accountType": "bankAccount", "bankCountry": "US", "bankCurrency": "USD", "description": "Account ending in 1111", "isDefault": false, "key": "bankAccount-6825488", "methodID": 6825488, "title": "Alberta Bobbeth Charleson" }, "7130446": { "accountData": { "accountNumber": "XXXXXXXXXXXX0000", "additionalData": { "acceptTerms": true, "bankName": "", "companyPhone": "+919910663610", "country": "US", "currency": "USD", "fieldsType": "local", "legalFirstName": "Shubham", "legalLastName": "Charleson", "phoneNumber": "+919910663610", "plaidAccessToken": "access-sandbox-1afc6af1-b42f-4932-b380-28619739cff2", "plaidAccountID": "QyebdnqrXqU7jWdNRz7QTeAVgdEQ8jFwlwWoo", "previousState": 2, "verifications": { "externalApiResponses": { "bankAccount": { "status": "pass" } } } }, "addressName": "Plaid Checking", "allowDebit": false, "bankAccountID": 7130446, "created": "2025-03-06 13:59:19", "defaultCredit": true, "expensifyCardDomain": "", "isExpensifyCardSettlementAccount": false, "isSavings": false, "policyIDs": [], "processor": "bancorp", "riskChecked": false, "routingNumber": "011401533", "sharees": [], "state": "OPEN", "type": "PERSONAL" }, "accountType": "bankAccount", "bankCountry": "US", "bankCurrency": "USD", "description": "Account ending in 0000", "isDefault": true, "key": "bankAccount-7130446", "methodID": 7130446, "title": "Plaid Checking" }, "8820729": { "accountData": { "accountNumber": "XXXXXX5444", "additionalData": { "addressCity": "Delhi", "addressState": "", "addressStreet": "IP Extension ", "addressZipCode": "", "corpay": { "APIResponses": { "beneficiaryRulesResponse": { "content": { "templateGuide": { "provide": [], "regulatoryRules": [ { "detailedRule": [ { "isRequired": true, "value": [ { "errorMessage": "Account Type is invalid. Value should be either Current or Savings.", "regEx": "^(CACC|SVGS)$", "ruleDescription": "Either Current or Savings" } ] } ], "errorMessage": "Account Type is invalid. Value should be either Current or Savings.", "id": "BeneficiaryAccountType", "isRequired": true, "isRequiredInValueSet": true, "label": "Account Type", "order": 1, "regEx": "^(CACC|SVGS)$", "validationRules": [ { "errorMessage": "Account Type is invalid. Value should be either Current or Savings.", "regEx": "^(CACC|SVGS)$", "ruleDescription": "Either Current or Savings" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "valueSet": [ { "id": "CACC", "text": "Current" }, { "id": "SVGS", "text": "Savings" } ] } ], "rules": [ { "errorMessage": "Name is invalid. Value should be 3 to 100 characters long.", "id": "accountHolderName", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{3,100}$", "validationRules": [ { "errorMessage": "Name is invalid. Value should be 3 to 100 characters long.", "regEx": "^.{3,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Identifier can only contain alphanumeric characters, space, dash (-) and underscore (_) and should not be greater than 50 characters", "id": "templateIdentifier", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^[a-zA-Z0-9-_ ]{1,50}$", "validationRules": [ { "errorMessage": "Identifier can only contain alphanumeric characters, space, dash (-) and underscore (_) and should not be greater than 50 characters", "regEx": "^[a-zA-Z0-9-_ ]{1,50}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "IN", "id": "destinationCountry", "isRequired": true, "isRequiredInValueSet": true, "links": [ { "method": "GET", "rel": "COUNTRIES", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/countries" } ], "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "INR", "id": "bankCurrency", "isRequired": true, "isRequiredInValueSet": true, "links": [ { "method": "GET", "rel": "CURRENCIES", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/payCurrencies?product=Bene" } ], "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "Individual", "id": "classification", "isRequired": true, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "valueSet": [ { "id": "Individual", "text": "Individual" }, { "id": "Business", "text": "Business" }, { "id": "Aerospace and defense", "text": "Aerospace and defense" }, { "id": "Agriculture and agric-food", "text": "Agriculture and agric-food" }, { "id": "Apparel \/ Clothing", "text": "Apparel \/ Clothing" }, { "id": "Automotive \/ Trucking", "text": "Automotive \/ Trucking" }, { "id": "Books \/ Magazines", "text": "Books \/ Magazines" }, { "id": "Broadcasting", "text": "Broadcasting" }, { "id": "Building products", "text": "Building products" }, { "id": "Chemicals", "text": "Chemicals" }, { "id": "Dairy", "text": "Dairy" }, { "id": "E-business", "text": "E-business" }, { "id": "Educational Institutes", "text": "Educational Institutes" }, { "id": "Environment", "text": "Environment" }, { "id": "Explosives", "text": "Explosives" }, { "id": "Fisheries and oceans", "text": "Fisheries and oceans" }, { "id": "Food \/ Beverage distribution", "text": "Food \/ Beverage distribution" }, { "id": "Footwear", "text": "Footwear" }, { "id": "Forest industries", "text": "Forest industries" }, { "id": "Furniture", "text": "Furniture" }, { "id": "Giftware and crafts", "text": "Giftware and crafts" }, { "id": "Horticulture", "text": "Horticulture" }, { "id": "Hydroelectric energy", "text": "Hydroelectric energy" }, { "id": "Information and communication technologies", "text": "Information and communication technologies" }, { "id": "Intelligent systems", "text": "Intelligent systems" }, { "id": "Livestock", "text": "Livestock" }, { "id": "Medical devices", "text": "Medical devices" }, { "id": "Medical treatment", "text": "Medical treatment" }, { "id": "Minerals metals and mining", "text": "Minerals, metals and mining" }, { "id": "Oil and gas", "text": "Oil and gas" }, { "id": "Pharmaceuticals and biopharmaceuticals", "text": "Pharmaceuticals and biopharmaceuticals" }, { "id": "Plastics", "text": "Plastics" }, { "id": "Poultry and eggs", "text": "Poultry and eggs" }, { "id": "Printing \/Publishing", "text": "Printing \/Publishing" }, { "id": "Product design and development", "text": "Product design and development" }, { "id": "Railway", "text": "Railway" }, { "id": "Retail", "text": "Retail" }, { "id": "Shipping and industrial marine", "text": "Shipping and industrial marine" }, { "id": "Soil", "text": "Soil" }, { "id": "Sound recording", "text": "Sound recording" }, { "id": "Sporting goods", "text": "Sporting goods" }, { "id": "Telecommunications equipment", "text": "Telecommunications equipment" }, { "id": "Television", "text": "Television" }, { "id": "Textiles", "text": "Textiles" }, { "id": "Tourism", "text": "Tourism" }, { "id": "Trademarks \/ Law", "text": "Trademarks \/ Law" }, { "id": "Water supply", "text": "Water supply" }, { "id": "Wholesale", "text": "Wholesale" } ] }, { "defaultValue": "", "id": "settlementMethods", "isRequired": false, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "valueSet": [ { "id": "W", "text": "Wire" }, { "id": "E", "text": "iACH" } ] }, { "defaultValue": "W", "id": "paymentMethods", "isRequired": true, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "valueSet": [ { "id": "W", "text": "Wire" }, { "id": "E", "text": "iACH" } ] }, { "defaultValue": "W", "dependsOn": [ "paymentMethods" ], "id": "preferredMethod", "isRequired": true, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "IN", "id": "accountHolderCountry", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{2,2}$", "validationRules": [ { "regEx": "^.{2,2}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "State\/Province must be less than 100 characters", "fieldFormatter": [], "id": "accountHolderRegion", "isRequired": false, "isRequiredInValueSet": false, "links": [ { "method": "GET", "rel": "REGIONS", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/regions?country=IN" } ], "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "State\/Province must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "errorMessage": "Address Line 1 must be less than 1000 characters", "id": "accountHolderAddress1", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{0,1000}$", "validationRules": [ { "errorMessage": "Address Line 1 must be less than 1000 characters", "regEx": "^.{0,1000}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Address Line 2 must be less than 100 characters", "id": "accountHolderAddress2", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "Address Line 2 must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "City must be less than 100 characters", "id": "accountHolderCity", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "City must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Postal Code must be less than 30 characters long", "fieldFormatter": [], "id": "accountHolderPostal", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,30}$", "validationRules": [ { "errorMessage": "Postal Code must be less than 30 characters long", "regEx": "^.{0,30}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "errorMessage": "Beneficiary Phone Number is too long. Maximum 100 characters allowed.", "id": "accountHolderPhoneNumber", "isRequired": false, "isRequiredInValueSet": true, "label": "Beneficiary Phone Number", "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "Beneficiary Phone Number is too long. Maximum 100 characters allowed.", "regEx": "^.{0,100}$", "ruleDescription": "Maximum 100 characters" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Email Address must be less than 250 characters", "id": "accountHolderEmail", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,250}$", "validationRules": [ { "errorMessage": "Email Address must be less than 250 characters", "regEx": "^.{0,250}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "id": "sendPayTracker", "isRequired": false, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "0", "id": "ibanDigits", "isRequired": false, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "false", "id": "ibanEnabled", "isRequired": false, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Swift must be less than 12 characters", "id": "swiftBicCode", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,12}$", "validationRules": [ { "errorMessage": "Swift must be less than 12 characters", "regEx": "^.{0,12}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Beneficiary Bank Name must be less than 250 characters", "id": "bankName", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{0,250}$", "validationRules": [ { "errorMessage": "Beneficiary Bank Name must be less than 250 characters", "regEx": "^.{0,250}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "defaultValue": "IN", "id": "bankCountry", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{2,2}$", "validationRules": [ { "regEx": "^.{2,2}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "State\/Province must be less than 100 characters", "fieldFormatter": [], "id": "bankRegion", "isRequired": false, "isRequiredInValueSet": false, "links": [ { "method": "GET", "rel": "REGIONS", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/regions?country=IN" } ], "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "State\/Province must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "errorMessage": "City must be less than 100 characters", "id": "bankCity", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "City must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Bank Address Line 1 must be less than 1000 characters", "id": "bankAddressLine1", "isRequired": true, "isRequiredInValueSet": true, "regEx": "^.{0,1000}$", "validationRules": [ { "errorMessage": "Bank Address Line 1 must be less than 1000 characters", "regEx": "^.{0,1000}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Bank Address Line 2 must be less than 100 characters", "id": "bankAddressLine2", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,100}$", "validationRules": [ { "errorMessage": "Bank Address Line 2 must be less than 100 characters", "regEx": "^.{0,100}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Postal Code must be less than 30 characters long", "fieldFormatter": [], "id": "bankPostal", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,30}$", "validationRules": [ { "errorMessage": "Postal Code must be less than 30 characters long", "regEx": "^.{0,30}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "id": "paymentReference", "isRequired": false, "isRequiredInValueSet": true, "regEx": "", "validationRules": [ { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Email Address must be less than 250 characters", "id": "internalPaymentAlert", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,250}$", "validationRules": [ { "errorMessage": "Email Address must be less than 250 characters", "regEx": "^.{0,250}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "errorMessage": "Email Address must be less than 250 characters", "id": "externalPaymentAlert", "isRequired": false, "isRequiredInValueSet": true, "regEx": "^.{0,250}$", "validationRules": [ { "errorMessage": "Email Address must be less than 250 characters", "regEx": "^.{0,250}$" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ] }, { "detailedRule": [ { "isRequired": true, "value": [ { "errorMessage": "Beneficiary Account Number is invalid. Value should be 1 to 16 digits long.", "regEx": "^[A-Za-z0-9]{1,16}$", "ruleDescription": "1 to 16 digits" } ] } ], "errorMessage": "Beneficiary Account Number is invalid. Value should be 1 to 16 digits long.", "id": "accountNumber", "isRequired": true, "isRequiredInValueSet": true, "label": "Account Number", "regEx": "^[A-Za-z0-9]{1,16}$", "validationRules": [ { "errorMessage": "Beneficiary Account Number is invalid. Value should be 1 to 16 digits long.", "regEx": "^[A-Za-z0-9]{1,16}$", "ruleDescription": "1 to 16 digits" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "detailedRule": [ { "isRequired": false, "value": [ { "errorMessage": "Must start with 'FFC' followed by name and account number. Maximum 50 characters, no special characters.", "regEx": "^(?=.{0,50}$)(?:|FFC[\\s:-][A-Za-z0-9.,():\\s-]*)$", "ruleDescription": "" } ] } ], "errorMessage": "Must start with 'FFC' followed by name and account number. Maximum 50 characters, no special characters.", "id": "furtherCreditDetails", "isRequired": false, "isRequiredInValueSet": true, "label": "", "regEx": "^(?=.{0,50}$)(?:|FFC[\\s:-][A-Za-z0-9.,():\\s-]*)$", "validationRules": [ { "errorMessage": "Must start with 'FFC' followed by name and account number. Maximum 50 characters, no special characters.", "regEx": "^(?=.{0,50}$)(?:|FFC[\\s:-][A-Za-z0-9.,():\\s-]*)$", "ruleDescription": "" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" }, { "detailedRule": [ { "isRequired": true, "value": [ { "errorMessage": "IFSC Code is invalid. Value should be exactly 11 characters long.", "regEx": "^[A-Za-z0-9]{11}$", "ruleDescription": "Exactly 11 characters" } ] } ], "errorMessage": "IFSC Code is invalid. Value should be exactly 11 characters long.", "id": "routingCode", "isRequired": true, "isRequiredInValueSet": true, "label": "IFSC Code", "regEx": "^[A-Za-z0-9]{11}$", "validationRules": [ { "errorMessage": "IFSC Code is invalid. Value should be exactly 11 characters long.", "regEx": "^[A-Za-z0-9]{11}$", "ruleDescription": "Exactly 11 characters" }, { "errorMessage": "The following characters are not allowed: <,>, \"", "regEx": "^[^<>\\x22]*$" } ], "warning": "" } ] } }, "errors": [], "links": [ { "method": "GET", "rel": "self", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/template-guide?bankCountry=IN&bankCurrency=INR&classification=Individual&destinationCountry=IN&paymentMethods=E&templateType=Bene" }, { "method": "GET", "rel": "PROVIDE", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/template-guide?templateType=Bene&destinationCountry=IN&bankCurrency=INR&paymentMethods=E&classification=Individual&bankCountry=IN&sendPayTracker=False&generateDetailedRules=False" } ] }, "createBeneficiaryResponse": { "content": { "templateId": "ee817ea11b724c00899ef7eb7ccf2642" }, "errors": [], "links": [ { "method": "POST", "rel": "self", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/templates\/18768308-8163042-INR" }, { "method": "GET", "rel": "PAYMENT", "uri": "https:\/\/crossborder.beta.corpay.com\/api\/324619\/0\/payment-sessions\/109f57b5-41bb-4320-b5cd-e260677d16c4?product=Bene&renderTab=1&beneId=456f5b220143424ca9cbccc37e4c7989" } ] } }, "accountHolderCountry": "IN", "bankAddressLine1": "IP Extension", "bankCity": "Delhi", "bankCountry": "IN", "bankCurrency": "INR", "bankName": "SBI", "classification": "Individual", "destinationCountry": "IN", "paymentMethods": [ "E" ], "preferredMethod": "E", "regulatory": [ { "key": "BeneficiaryAccountType", "value": "SVGS" } ], "swiftBicCode": null }, "country": "IN", "verifications": { "corpay": { "beneficiaryID": { "324619": "18768308-8163042-INR" } } } }, "addressName": "Shubham", "allowDebit": false, "bankAccountID": 8820729, "created": "2026-01-14 13:16:35", "defaultCredit": false, "expensifyCardDomain": "", "isExpensifyCardSettlementAccount": false, "isSavings": true, "policyIDs": [], "processor": "CORPAY", "riskChecked": false, "routingNumber": "SBIN0000000", "sharees": [ "work.sa1206+travel@gmail.com" ], "state": "OPEN", "type": "PERSONAL" }, "accountType": "bankAccount", "bankCountry": "IN", "bankCurrency": "INR", "description": "Account ending in 5444", "isDefault": false, "key": "bankAccount-8820729", "methodID": 8820729, "title": "Shubham" }, "8966021": { "accountData": { "accountNumber": "XXXXXXXXXXXX1112", "additionalData": { "country": "US", "currency": "USD", "currentStep": "RequestorStep", "dob": "2008-02-05", "fieldsType": "local", "firstName": "KL", "hasFullSSN": false, "isControllingOfficer": true, "isFromNewDot": true, "lastName": "L", "lastUpdate": "2026-02-20 06:43:09", "policyID": "5B0B81C5BF426725", "requestorAddressCity": "Denver", "requestorAddressState": "CO", "requestorAddressStreet": "878 South Dexter Street", "requestorAddressZipCode": "80246", "setupType": "manual", "ssnLast4": "8998", "verifications": { "blackListed": { "isBankAccountCopy": false, "isBlackListedAddress": false, "isBlackListedName": false, "isBlackListedUser": false, "isFlagged": false, "isPublicDomain": true }, "externalApiResponses": { "bankAccount": { "status": "giactMissingOwner" }, "requestorIdentityID": { "apiResult": { "error": [ "Last name is too short", "SSN is invalid" ], "id-number": null, "qualifiers": null, "questions": null, "reason": "Tested via external APIs", "results": null, "summary-result": null }, "status": "ownerIdentityNotFound" } } } }, "addressName": "XXXXXXXXXXXX1112", "allowDebit": true, "bankAccountID": 8966021, "created": "2026-02-18 13:26:32", "defaultCredit": false, "expensifyCardDomain": "", "isExpensifyCardSettlementAccount": false, "isSavings": false, "policyIDs": [], "processor": "bancorp", "riskChecked": false, "routingNumber": "011401533", "sharees": [ "work.sa1206+travel@gmail.com" ], "state": "SETUP", "type": "BUSINESS" }, "accountType": "bankAccount", "bankCountry": "US", "bankCurrency": "USD", "description": "Account ending in 1112", "isDefault": false, "key": "bankAccount-8966021", "methodID": 8966021, "title": "XXXXXXXXXXXX1112" } } }, { "onyxMethod": "merge", "key": "report_8467642844301769", "value": { "avatarUrl": null, "chatReportID": "2393005846493982", "chatType": "", "created": "2026-05-14 07:40:56", "currency": "USD", "description": "", "errorFields": { "export": null, "notFound": null }, "fieldList": null, "hasExportError": false, "hasOutstandingChildRequest": false, "hasOutstandingChildTask": false, "hasParentAccess": true, "hasReportBeenReopened": false, "hasReportBeenRetracted": false, "invoiceReceiver": null, "iouReportID": null, "isCancelledIOU": false, "isDeletedParentAction": null, "isExportedToIntegration": false, "isPinned": false, "isWaitingOnBankAccount": false, "lastActionType": "ADDCOMMENT", "lastActorAccountID": "18768308", "lastMentionedTime": null, "lastMessageHtml": "A", "lastMessageText": "A", "lastReadSequenceNumber": 0, "lastReadTime": "2026-05-14 07:41:57.399", "lastVisibleActionCreated": "2026-05-14 07:41:13.481", "lastVisibleActionLastModified": "2026-05-14 07:41:13.481", "managerID": 0, "nonReimbursableTotal": 0, "oldPolicyName": "", "ownerAccountID": 0, "parentReportActionID": "7389373253592941300", "parentReportID": "2393005846493982", "participants": { "18768308": { "notificationPreference": "always" } }, "permissions": [ "read", "write", "share" ], "policyAvatar": null, "policyID": "_FAKE_", "policyName": null, "private_isArchived": "", "reimbursableTotal": 0, "reportID": "8467642844301769", "reportName": "Chat Report", "stateNum": 0, "statusNum": 0, "total": 0, "transactionCount": 0, "tripData": null, "type": "chat", "unheldNonReimbursableTotal": 0, "unheldTotal": 0, "visibility": null, "welcomeMessage": "", "writeCapability": "all" } }, { "onyxMethod": "merge", "key": "reportNameValuePairs_8467642844301769", "value": { "parentReportActionID": 7389373253592941300, "parentReportID": 2393005846493982 } }, { "onyxMethod": "merge", "key": "reportActions_8467642844301769", "value": { "1580421272610261": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "COMMENT", "html": "moved this expense to your personal space", "text": "moved this expense to your personal space", "isEdited": false, "whisperedTo": [], "isDeletedParentAction": false, "deleted": "", "reactions": [] } ], "originalMessage": { "fromReportID": "683289937829995", "lastModified": "2026-05-14 07:44:22.656" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:44:22.656", "timestamp": 1778744662, "reportActionTimestamp": 1778744662656, "automatic": false, "actionName": "UNREPORTEDTRANSACTION", "shouldShow": true, "reportActionID": "1580421272610261", "lastModified": "2026-05-14 07:44:22.656", "whisperedToAccountIDs": [] }, "8533440793991071496": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "TEXT", "style": "normal", "text": "unheld this money request" } ], "originalMessage": { "accountID": 18768308, "date": "2026-05-14 07:44:21", "isNewDot": true, "lastModified": "2026-05-14 07:44:21.364", "message": "" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:44:21.364", "timestamp": 1778744661, "reportActionTimestamp": 1778744661364, "automatic": false, "actionName": "UNHOLD", "shouldShow": true, "reportActionID": "8533440793991071496", "lastModified": "2026-05-14 07:44:21.364", "whisperedToAccountIDs": [] }, "3007345292362546228": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "COMMENT", "html": "A", "text": "A", "isEdited": false, "whisperedTo": [], "isDeletedParentAction": false, "deleted": "", "reactions": [] } ], "originalMessage": { "html": "A", "isNewDot": true, "lastModified": "2026-05-14 07:41:13.481" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:41:13.481", "timestamp": 1778744473, "reportActionTimestamp": 1778744473481, "automatic": false, "actionName": "ADDCOMMENT", "shouldShow": true, "reportActionID": "3007345292362546228", "lastModified": "2026-05-14 07:41:13.481", "whisperedToAccountIDs": [] }, "5786754800932131787": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "TEXT", "style": "normal", "text": "held this money request" }, { "type": "TEXT", "style": "normal", "text": ", " }, { "type": "TEXT", "style": "normal", "text": "saying " }, { "type": "TEXT", "style": "strong", "text": "A" } ], "originalMessage": { "accountID": 18768308, "date": "2026-05-14 07:41:13", "isNewDot": true, "lastModified": "2026-05-14 07:41:13.476", "message": "A" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:41:13.476", "timestamp": 1778744473, "reportActionTimestamp": 1778744473476, "automatic": false, "actionName": "HOLD", "shouldShow": true, "reportActionID": "5786754800932131787", "lastModified": "2026-05-14 07:41:13.476", "whisperedToAccountIDs": [] }, "868548572886617842": { "reportActionID": "868548572886617842", "actionName": "CREATED", "created": "2026-05-14 07:40:56.472", "reportActionTimestamp": 1778744456472, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/default-avatar_19.png", "message": [ { "type": "TEXT", "style": "strong", "text": "__fake__" }, { "type": "TEXT", "style": "normal", "text": " created this report" } ], "person": [ { "type": "TEXT", "style": "strong", "text": "__fake__" } ], "automatic": false, "sequenceNumber": 0, "shouldShow": true, "lastModified": "2026-05-14 07:40:56.472" } } }, { "onyxMethod": "merge", "key": "personalDetailsList", "value": { "18768308": { "accountID": 18768308, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "firstName": "Shubham", "lastName": "", "status": null, "displayName": "Shubham", "login": "work.sa1206+travel@gmail.com", "pronouns": "", "timezone": { "automatic": true, "selected": "Asia\/Kolkata" }, "phoneNumber": "", "validated": true } } }, { "onyxMethod": "merge", "key": "reportActions_2393005846493982", "value": { "7389373253592941300": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "COMMENT", "html": "tracked $1.00", "text": "tracked $1.00", "isEdited": false, "whisperedTo": [], "isDeletedParentAction": false, "deleted": "", "reactions": [] } ], "originalMessage": { "IOUReportID": "0", "IOUTransactionID": "3049162149997324803", "amount": 100, "comment": "", "currency": "USD", "isNewDot": true, "lastModified": "2026-05-14 07:44:21.360", "participantAccountIDs": [ 18768308, 0 ], "type": "track" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:44:21.360", "timestamp": 1778744661, "reportActionTimestamp": 1778744661360, "automatic": false, "actionName": "IOU", "shouldShow": true, "reportActionID": "7389373253592941300", "lastModified": "2026-05-14 07:44:21.360", "childType": "chat", "childOldestFourAccountIDs": "18768308", "childReportNotificationPreference": "always", "childCommenterCount": 1, "childLastVisibleActionCreated": "2026-05-14 07:41:13.481", "childVisibleActionCount": 1, "whisperedToAccountIDs": [] } } }, { "onyxMethod": "mergecollection", "key": "report_", "value": { "report_2393005846493982": { "avatarUrl": null, "chatReportID": null, "chatType": "selfDM", "created": "2024-12-02 04:19:17", "currency": "USD", "description": "", "errorFields": { "export": null, "notFound": null }, "fieldList": null, "hasExportError": false, "hasOutstandingChildRequest": false, "hasOutstandingChildTask": true, "hasParentAccess": null, "hasReportBeenReopened": false, "hasReportBeenRetracted": false, "invoiceReceiver": null, "iouReportID": null, "isCancelledIOU": false, "isDeletedParentAction": null, "isExportedToIntegration": false, "isPinned": true, "isWaitingOnBankAccount": false, "lastActionType": "ADDCOMMENT", "lastActorAccountID": "18768308", "lastMentionedTime": null, "lastMessageHtml": "<img src=\"https:\/\/www.expensify.com\/chat-attachments\/317444363939266861\/w_47940d4b10cb96ef1cf541bb9d1bf44bbadd812c.jpg.1024.jpg\" data-expensify-source=\"https:\/\/www.expensify.com\/chat-attachments\/317444363939266861\/w_47940d4b10cb96ef1cf541bb9d1bf44bbadd812c.pdf\" data-name=\"26031400055915KKBK_ChallanReceipt.pdf\" data-expensify-height=\"0\" data-expensify-width=\"0\" data-attachment-id=\"6497763945980624226\" \/>", "lastMessageText": "[Attachment]", "lastReadSequenceNumber": 0, "lastReadTime": "2026-05-14 07:41:52.718", "lastVisibleActionCreated": "2026-03-21 16:50:27.520", "lastVisibleActionLastModified": "2026-03-21 16:50:27.520", "managerID": 0, "nonReimbursableTotal": 0, "oldPolicyName": "", "ownerAccountID": 18768308, "parentReportActionID": null, "parentReportID": null, "participants": { "18768308": { "notificationPreference": "mute" } }, "permissions": [ "write" ], "policyAvatar": null, "policyID": "_FAKE_", "policyName": null, "private_isArchived": "", "reimbursableTotal": 0, "reportID": "2393005846493982", "reportName": "", "stateNum": 0, "statusNum": 0, "total": 0, "transactionCount": 0, "tripData": null, "type": "chat", "unheldNonReimbursableTotal": 0, "unheldTotal": 0, "visibility": null, "welcomeMessage": "", "writeCapability": "all" } } }, { "onyxMethod": "mergecollection", "key": "reportNameValuePairs_", "value": { "reportNameValuePairs_2393005846493982": { "chatType": "selfDM" } } }, { "onyxMethod": "merge", "key": "reportActions_2393005846493982", "value": { "7389373253592941300": { "person": [ { "type": "TEXT", "style": "strong", "text": "Shubham" } ], "actorAccountID": 18768308, "message": [ { "type": "COMMENT", "html": "tracked $1.00", "text": "tracked $1.00", "isEdited": false, "whisperedTo": [], "isDeletedParentAction": false, "deleted": "", "reactions": [] } ], "originalMessage": { "IOUReportID": "0", "IOUTransactionID": "3049162149997324803", "amount": 100, "comment": "", "currency": "USD", "isNewDot": true, "lastModified": "2026-05-14 07:44:21.360", "participantAccountIDs": [ 18768308, 0 ], "type": "track" }, "avatar": "https:\/\/d2k5nsl2zxldvw.cloudfront.net\/images\/avatars\/custom-avatars\/season-f1\/helmet-tangerine400.png", "created": "2026-05-14 07:44:21.360", "timestamp": 1778744661, "reportActionTimestamp": 1778744661360, "automatic": false, "actionName": "IOU", "shouldShow": true, "reportActionID": "7389373253592941300", "lastModified": "2026-05-14 07:44:21.360", "childReportID": "8467642844301769", "childType": "chat", "childOldestFourAccountIDs": "18768308", "childReportNotificationPreference": "always", "childCommenterCount": 1, "childLastVisibleActionCreated": "2026-05-14 07:41:13.481", "childVisibleActionCount": 1, "whisperedToAccountIDs": [] } } }, { "key": "report_8467642844301769", "onyxMethod": "merge", "value": { "lastReadTime": "2026-05-14 07:41:57.399" } } ], "hasOlderActions": false, "hasNewerActions": false, "newAccountCount": 0, "jsonCode": 200, "requestID": "9fb846fcace825cd-SJC", "previousUpdateID": 13270533331, "lastUpdateID": 13270533358 }shubham1206agra commentedon May 14, 2026
@tgolen This is a BE issue btw
shubham1206agra commentedon May 14, 2026
@MelvinBot What happened? Please reply to #90618 (comment)
MelvinBot commentedon May 14, 2026
Thanks for sharing the OpenReport response — this clarifies the root cause significantly. I'm updating my earlier analysis.
The server response for
reportActions_8467642844301769(the transaction thread) contains exactly ONEUNREPORTEDTRANSACTIONaction (ID1580421272610261). But the client also created an optimisticUNREPORTEDTRANSACTIONwith a different ID viarand64()atReport/index.ts:6478.The problem: the
successDataonly setspendingAction: nullon the optimistic action — it never removes it. When the server'sDeleteAppReportresponse merges in a newUNREPORTEDTRANSACTIONaction with a different reportActionID (1580421272610261), the client ends up with twoUNREPORTEDTRANSACTIONactions in the same thread. Both render as "moved this expense from another report."The "Auth OpenReport returned an error" on the first message likely occurs because the optimistic action's thread context references the now-deleted report.
Fix: The server should use the client-provided
movedReportActionID(sent viatransactionIDToReportActionAndThreadData) as the actual reportActionID instead of generating a new one. This is how other optimistic actions work — the client generates the ID, and the server adopts it. Alternatively, thesuccessDatacould null out the optimistic action when the server returns its own version, but that's a workaround rather than a fix.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.tgolen commentedon May 14, 2026
@shubham1206agra I agree that the backend fix sounds best. Do you agree that it's OK to remove this as a deploy blocker? My thinking is that this is a very specific flow, that is very rarely touched, so it's not worth holding up the deploy to get the BE fix done, nor is it worth reverting the FE PR.
@MelvinBot implement the backend fix
MelvinBot commentedon May 14, 2026
🤖 Implementation Blocked
Issue: I cannot access the backend repository (
Expensify/Auth) — my clone attempt returned a 403. The fix for this issue lives entirely on the server side, not in the App repo.Root Cause (confirmed by investigation above): The
DeleteAppReportbackend handler creates its ownUNREPORTED_TRANSACTIONaction with a server-generated reportActionID, ignoring the client-providedmovedReportActionIDsent viatransactionIDToReportActionAndThreadData. This causes duplicates — the client's optimistic action and the server's separately-created action both persist.Backend fix needed: In the
DeleteAppReportcommand handler, when creating theUNREPORTED_TRANSACTIONreport action for each moved transaction, the server should use themovedReportActionIDfrom thetransactionIDToReportActionAndThreadDataparameter (which the client already sends) as the reportActionID, instead of generating a new one. This ensures the server's action replaces the client's optimistic action rather than creating a duplicate.Next steps: Someone with access to the Auth repo needs to implement this change in the
DeleteAppReportcommand handler.tgolen commentedon May 14, 2026
OK, I copied this issue to our internal repo and I'll try to get Melvin to implement it over there: https://github.com/Expensify/Expensify/issues/636963
[-]Expense - Two "moved this expense from another report" after deleting report[/-][+]FE Expense - Two "moved this expense from another report" after deleting report[/+]tgolen commentedon May 14, 2026
I've got a PR created for the BE and I verified it fixes the double message.
Before:
After:
I am going to close this issue.