Skip to content

Scan expense-Scan fails for valid receipts with an error #94986

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: 9.4.25-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13176676/test-cases/41237305
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: iPhone 15 iOS 26.5
App Component: Money Requests

Action Performed:

  1. Sign in to ND with a new user, selecting Manage - 1-4 - QBO
  2. Navigate to the workspace chat
  3. Create a scan expense, uploading a valid receipt from Files, select a category

Expected Result:

Expense is created successfully

Actual Result:

"There was an error uploading your receipt" is displayed on the expense preview. In the expense details: "Receipt upload failed. Save the receipt, or delete the expense and lose it"

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Image
Bug7195439_1782827513118.scan_fails.mp4

View all open jobs on GitHub

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

Activity

  1. added
    DeployBlockerCash
    Bug
    on Jun 30, 2026
  2. melvin-bot commented on Jun 30, 2026

    @melvin-bot

    Triggered auto assignment to @cristipaval (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. melvin-bot commented on Jun 30, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. github-actions commented on Jun 30, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. mkhutornyi commented on Jun 30, 2026

    @mkhutornyi

    I am not able to reproduce locally.

    Screen.Recording.2026-06-30.at.4.12.15.PM.mov
  6. mkhutornyi commented on Jun 30, 2026

    @mkhutornyi
  7. chrispader commented on Jul 1, 2026

    @chrispader
    Contributor

    Also could not reproduce the issue locally with exactly same iOS and phone version on Simulator:

    Simulator.Screen.Recording.-.iPhone.15.-.2026-07-01.at.12.36.01.mov
  8. cristipaval commented on Jul 1, 2026

    @cristipaval
    Contributor

    @MelvinBot, do you think this was transient?

  9. MelvinBot commented on Jul 1, 2026

    @MelvinBot
    Contributor

    Yes — this looks transient, most likely a backend/network hiccup on the receipt-upload request rather than a code bug in this release.

    Why: These error strings (receiptFailureMessageShort / receiptUploadFailedMessage) are only written via the failureData branch of the scan money-request — there is no client-side validation path that raises them. They surface only when the request returns a non-200 jsonCode (or a network error that exhausted retries). Combined with: valid receipt, not reproducible in production, and two engineers unable to reproduce locally on the exact same iOS/device — a deterministic bug would reproduce reliably given the same input, and it didn't.

    Evidence

    To confirm definitively: check staging logs (~around the v9.4.25-0 report on 2026-06-30) for the scan money-request command tied to that transaction and look for a non-200 jsonCode / "Request failed too many times, giving up", or a failed receipt/S3 upload. If you can share the transactionID or receiptID from the Applause run, I can dig into the logs to pin the exact backend error.


    Next Steps: Reply with @MelvinBot <your feedback> to refine this, or share the transactionID/receiptID and I'll check production logs.

  10. m-natarajan commented on Jul 1, 2026

    @m-natarajan

    Unable to reproduce in iPhone13/iOS26.5, v9.4.25-1 (Waiting for the validation result from the original reporter)

    94986.mp4
  11. removed
    DeployBlockerCash
    on Jul 1, 2026
  12. cristipaval commented on Jul 1, 2026

    @cristipaval
    Contributor

    Thanks, closing it then

  13. added
    Reviewing
    on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugEngineeringHourlyReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions