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:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @JS00001
Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Precondition: Sage intacct accounting software connected
- Open a report eligible for export to Sage Intacct
- Click the 'Export to Sage Intacct' button and complete the export
- Observe the report after export is complete.
Expected Result:
The 'Export to Sage Intacct' button should be hidden or disabled once the report has been successfully exported.
Actual Result:
The button still appears on the report after export.
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021935773793942704631
- Upwork Job ID: 1935773793942704631
- Last Price Increase: 2025-07-10
Issue Owner
Current Issue Owner: @dangrousMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone

Activity
melvin-bot commentedon Jun 19, 2025
Triggered auto assignment to @maddylewis (
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.MelvinBot commentedon Jun 19, 2025
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
melvin-bot commentedon Jun 19, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021935773793942704631
[-]'Export to Sage Intacct' button still visible after report is exported[/-][+][$250] 'Export to Sage Intacct' button still visible after report is exported[/+]melvin-bot commentedon Jun 19, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)maddylewis commentedon Jun 19, 2025
@alitoshmatov - could you try reproducing this one when you have the chance?
thelullabyy commentedon Jun 20, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The button still appears on the report after export.
What is the root cause of that problem?
Looking at the screenshot in the OP, the problem may come from
isExportedfunction. When we started exporting, an optimisticEXPORT_INTEGRATIONaction was created, but it's cleared if we reset cache and restart.It leads to failure if we export fails many times,
integrationMessageActionsCountis larger thanexportIntegrationActionsCount, and theisExportedfunction returnsfalse, which causes theExportbutton to still appear, even though it's already exported.App/src/libs/ReportUtils.ts
Lines 10750 to 10778 in 4c48b2c
What changes do you think we should make in order to solve the problem?
Based on the comment, we create another
EXPORT_INTEGRATIONafter the report is exported successfully. So we can returntrueif theEXPORT_INTEGRATIONaction isn't an optimistic actionApp/src/libs/ReportUtils.ts
Lines 10750 to 10778 in 4c48b2c
We can also replace this condition
return exportIntegrationActionsCount > integrationMessageActionsCountby comparing the lastEXPORT_INTEGRATIONaction index and lastINTEGRATIONS_MESSAGEaction index.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Add a unit test for
isExportedfunction and verify it returnstrueif we have anEXPORT_INTEGRATIONaction withoutpendingAction.What alternative solutions did you explore? (Optional)
NA
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
56 remaining items
kavimuru commentedon Aug 1, 2025
Bug is still reproducible
Recording.3520.mp4
lydiabarclay commentedon Aug 4, 2025
@dangrous what is the next action here if bug is still reproducible?
dangrous commentedon Aug 4, 2025
hrm @alitoshmatov do you have a moment to look into this on the front end and see if there's something else that's needed either on the FE or BE?
alitoshmatov commentedon Aug 6, 2025
No everything is working as expected.
I reviewed this #65782 PR
dangrous commentedon Aug 7, 2025
wait are you saying it's not reproducible anymore @alitoshmatov ? shoudl we ask for a retest?
mallenexpensify commentedon Aug 8, 2025
Asked for retest
https://expensify.slack.com/archives/C9YU7BX5M/p1754688420197349
m-natarajan commentedon Aug 8, 2025
Mac / Safari
v9.1.91-0
Export always fails on staging, If Marked as manually entered, then button disappears and it is Pass
2_37.PM.2025-08-08.mp4
dangrous commentedon Aug 11, 2025
okay i think that's fine then!
dangrous commentedon Aug 12, 2025
so in summary - @alitoshmatov needs payment for review ($250), otherwise we are ready to close.
mallenexpensify commentedon Aug 12, 2025
Payment Summary
Contributor+: @alitoshmatov due $250 via NewDot
Thx, closing
garrettmknight commentedon Aug 14, 2025
$250 approved for @alitoshmatov