Skip to content

[Certinia] Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..." #92886

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.0-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: #91951
Email or phone of affected tester (no customers): applausetester+ffa@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Accounting.
  3. Click Export.

Expected Result:

Payable invoice status should be blank when no selection is made.

Actual Result:

Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..."

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7173697_1780768703673.27.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7173697

Issue OwnerCurrent Issue Owner: @thelullabyy

Activity

  1. applause-bot commented on Jun 8, 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/09e3eb073ac89c7014b1bdf22b14f8e22ac358898bbaa1c3eb8861ce66493e34

  2. added
    DeployBlockerCash
    Bug
    on Jun 8, 2026
  3. melvin-bot commented on Jun 8, 2026

    @melvin-bot

    @yuwenmemon recently merged #91951, but they are OOO right now, so I'll auto-assign someone else.

  4. melvin-bot commented on Jun 8, 2026

    @melvin-bot

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

  5. melvin-bot commented on Jun 8, 2026

    @melvin-bot

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

  6. github-actions commented on Jun 8, 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.
  7. MelvinBot commented on Jun 8, 2026

    @MelvinBot
    Contributor

    Proposal

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

    On a freshly Certinia-connected workspace, Workspace Settings > Accounting > Export shows the raw translation key workspace.certinia.exportStatus.values.Compl… for Payable invoice status instead of being blank (no selection made).

    What is the root cause of that problem?

    The Payable invoice status row renders the value through an unguarded translate():

    CertiniaExportPage.tsx:45

    title: exportStatus ? translate(`workspace.certinia.exportStatus.values.${exportStatus}`) : exportConfig?.exportStatus,

    The only values the frontend knows about are APPROVED / IN_PROGRESS / SUBMITTED (and the selection page only even offers the first two — CertiniaExportStatusPage.tsx:21, with translations at en.ts:4983-4987).

    The backend is returning a default exportStatus value that starts with "Compl" (almost certainly Completed) for a workspace where no selection has been made. Because that value is truthy but is not one of the recognized keys, the computed key workspace.certinia.exportStatus.values.Completed doesn't exist, so translate() falls back to echoing the raw key string — which is what gets displayed and truncated to …Compl….

    So there are two distinct problems:

    1. Backend is sending a non-empty default exportStatus (Completed) when the expectation is "blank until the user selects". This identifier also doesn't match the frontend's APPROVED/IN_PROGRESS/SUBMITTED set.
    2. Frontend renders the raw translation key for any unrecognized value instead of failing gracefully.
    Why this is the mechanism, not a missing translation

    If exportStatus were APPROVED, translate('…values.APPROVED') would resolve to the label Complete and display "Complete" — not the dotted key path. The fact that the full dotted key path is displayed proves the lookup missed, which only happens when exportStatus holds a value outside the CONST set. The frontend never writes such a value (it only sends CONST values via updateFinancialForceExportStatus), so the unrecognized default originates server-side.

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

    Primary (backend, outside this repo): the Certinia/FinancialForce connection should not return a default exportStatus of Completed for a newly connected workspace — it should be empty until the admin selects one, and any value it does return must match the frontend identifiers (APPROVED/IN_PROGRESS/SUBMITTED). Verifying/fixing this requires access to the backend Certinia connection code (Auth/Web-Expensify), so this part should be escalated to an internal engineer.

    Frontend hardening (this repo, satisfies the "blank" expectation immediately): guard the render at CertiniaExportPage.tsx:45 so an unrecognized value never renders a raw key — only translate when exportStatus is a known CONST.CERTINIA_EXPORT_STATUS value, otherwise leave the title blank. The same guard should be applied to the exportDate row just below it (line 51), which has the identical pattern.

    What alternative solutions did you explore? (Optional)

    Adding a values.Completed translation entry would stop the raw-key display, but it would still show a status the user never selected (contradicting the "blank when no selection" expectation) and wouldn't fix the underlying identifier mismatch — so it's not recommended.


    Confidence: Medium — the frontend code path is confirmed from source; the exact backend default value (Completed) is inferred from the truncated string and not yet confirmed against production logs / backend code.

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

  8. changed the title [-]Certinia - Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..."[/-] [+][Certinia] Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..."[/+] on Jun 8, 2026
  9. 21 remaining items

  10. melvin-bot commented on Jun 22, 2026

    @melvin-bot

    @thelullabyy Huh... This is 4 days overdue. Who can take care of this?

  11. added
    Skip Payment
    on Jun 23, 2026
  12. mallenexpensify commented on Jun 23, 2026

    @mallenexpensify
    Contributor

    Testing the new Skip Payment label. is this project paid? If not, can someone tag me for payment on the 25th so I don't miss this? Thx

  13. melvin-bot commented on Jun 24, 2026

    @melvin-bot

    @thelullabyy Still overdue 6 days?! Let's take care of this!

  14. changed the title [-][Due for payment 2026-06-24] [Certinia] Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..."[/-] [+][Certinia] Payable invoice status shows "workspace.certinia.exportStatus.values.Compl..."[/+] on Jun 26, 2026
  15. melvin-bot commented on Jun 26, 2026

    @melvin-bot

    @thelullabyy 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  16. melvin-bot commented on Jun 30, 2026

    @melvin-bot

    @thelullabyy 12 days overdue now... This issue's end is nigh!

  17. added
    Weekly
    and removed
    Daily
    on Jul 3, 2026
  18. melvin-bot commented on Jul 3, 2026

    @melvin-bot

    This issue has not been updated in over 14 days. @yuwenmemon, @ShridharGoel, @thelullabyy eroding to Weekly issue.

  19. m-natarajan commented on Jul 9, 2026

    @m-natarajan

    Passed, Web-Chrome , Xiaomi Redmi Note 10 / Android 12 v9.4.32-0 (Pending validation in iOS)

    Screenrecorder-2026-07-09-17-41-09-671.mp4
    REC-20260709173032.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringSkip PaymentWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions