Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Email Report not working when Add Total Row is enabled in Report #24578

Closed
aheart opened this issue Jan 29, 2024 · 5 comments · Fixed by #26664
Closed

Auto Email Report not working when Add Total Row is enabled in Report #24578

aheart opened this issue Jan 29, 2024 · 5 comments · Fixed by #26664

Comments

@aheart
Copy link

aheart commented Jan 29, 2024

Description of the issue

I've created a report using Report Builder and enabled the Total Row.
It's impossible to set an Auto Email report for this report because of an error related to the Total Row

Context information (for bug reports)

Output of bench version

erpnext 15.9.1
frappe 15.8.1
hrms 15.8.0
insights 1.1.3
payments 0.0.1
wiki 2.0.0

Steps to reproduce the issue

  1. Create a report for any document (e.g. Opportunity) using Report Builder
  2. Enable Total Row and save
    image
  3. Set up Auto Email Report for this report and click Send Now

Observed result

image

Expected result

image

Stacktrace / full error message

{
    "exc_type": "DoesNotExistError",
    "_server_messages": "[\"{\\\"message\\\": \\\"Opportunity Total not found\\\", \\\"title\\\": \\\"Message\\\", \\\"indicator\\\": \\\"red\\\", \\\"raise_exception\\\": 1, \\\"__frappe_exc_id\\\": \\\"e680c183390033f16e847a2be7d91a3dcf4b3679a83d5ddb20ab749a\\\"}\"]"
}
@aheart aheart added the bug label Jan 29, 2024
@Nihantra-Patel
Copy link
Contributor

Hi @aheart,

It's not a bug, When you make a report using the report builder, there's an option called "Show Totals." Just click on that option and save the report again. Then, the total will be included in the report. Don't use 'Add Total Row' in the Report Builder report.

scrnli_08_02_2024_15-26-02.mp4

Thank You!

@aheart
Copy link
Author

aheart commented Feb 8, 2024

@Nihantra-Patel thank you for your clarification. Here's what I tried:

  1. Open Report View for Opportunity
  2. Select "Show Totals" from the menu
  3. Save the report
  4. Select Setup Auto Email from the same menu
  5. Save the new Auto Email Report
  6. Click Send Now
    This time I haven't touched the "Add Total Row" checkbox, but the result is the same:
    image

@Nihantra-Patel
Copy link
Contributor

Right @aheart.

We reopen it.

@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.29.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 14.76.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants