Skip to content

Issue with print invoice #33800

Open
@minhluan259

Description

@minhluan259

Preconditions (*)

  1. Magento 2.3, 2.4

Steps to reproduce (*)

  1. Login by user account
  2. Create new order by checkout (order id 11)
  3. Go to https://domain.com/sales/order/printInvoice/invoice_id/11/

Expected result (*)

  1. If the invoice doesn't exist, Error handling should be done for better user experience.

Actual result (*)

  1. Showing error:
There has been an error processing your request
Exception printing is disabled by default for security reasons.

Error log record number: 1a010b4dc79669c5758ea8eed7d18e4a4901fd402b6734616e693dfedb4c0cbd

Var/log/exception.log:
[2021-08-16 12:00:54] main.CRITICAL: The entity that was requested doesn't exist. Verify the entity and try again. {"report_id":"5aade6c95721635595e8acabec9909a13f5cf2ca4212e0313cd3e939ba435167","exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): The entity that was requested doesn't exist. Verify the entity and try again. at /var/www/html/magento2.4/magento2/app/code/Magento/Sales/Model/Order/InvoiceRepository.php:75)"} []

Note: There is no issue for the Orders having invoice generated from admin and navigated to /sales/order/printInvoice/invoice_id/7/


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
    Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
    Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
    Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
    Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Activity

m2-assistant

m2-assistant commented on Aug 14, 2021

@m2-assistant

Hi @minhluan259. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

engcom-November

engcom-November commented on Aug 16, 2021

@engcom-November
Contributor

Verified the issue on Magento 2.4-develop branch and the issue is reproducible:
Steps to reproduce:

  1. Create an Order from front-end
  2. View Order from Front-end
  3. Print Order - No issue http://magento2.4.local/default/sales/order/print/order_id/37/ - User is able to print Order and save
  4. Access below Print invoice URL before the invoice is generated (using any new ID in the URL)
    /sales/order/printInvoice/invoice_id/7/

LogError

[2021-08-16 12:00:54] main.CRITICAL: The entity that was requested doesn't exist. Verify the entity and try again. {"report_id":"5aade6c95721635595e8acabec9909a13f5cf2ca4212e0313cd3e939ba435167","exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): The entity that was requested doesn't exist. Verify the entity and try again. at /var/www/html/magento2.4/magento2/app/code/Magento/Sales/Model/Order/InvoiceRepository.php:75)"} []

Note: There is no issue for the Orders having invoice generated from admin and navigated to /sales/order/printInvoice/invoice_id/7/

added
Reported on 2.3.xIndicates original Magento version for the Issue report.
Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch
Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmed
on Aug 16, 2021
magento-engcom-team

magento-engcom-team commented on Aug 16, 2021

@magento-engcom-team
Contributor

✅ Confirmed by @engcom-November
Thank you for verifying the issue. Based on the provided information internal tickets MC-43098 were created

Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

added
Priority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.
on Aug 24, 2021
Kannakiraj123

Kannakiraj123 commented on Aug 28, 2021

@Kannakiraj123
Contributor

@magento I am working on this

48 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: OrderComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.3.xIndicates original Magento version for the Issue report.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @minhluan259@AZiniukhin@Janak29@magento-engcom-team@engcom-Bravo

      Issue actions

        Issue with print invoice · Issue #33800 · magento/magento2