Skip to content

Email Delivery - Missing PDF Document_Voluntary Dissolutions #24318

Closed

Description

@ArwenQin

Do a Voluntary Dissolution, the Voluntary Dissolution Application PDF is consistently missing in the email, despite the email says it's attached:
image.png

The Certificate of Dissolution is occasionally missing, less likely — out of five tests, it was missing once:
image.png

Activity

  1. added
    Entities Team
    on Nov 7, 2024
  2. added
    bug
    on Nov 8, 2024
  3. severinbeauvais commented on Nov 8, 2024

    @severinbeauvais
    Collaborator

    For both businesses above, the Voluntary Dissolution ledger item shows 3 outputs:

    • Certificate of Dissolution
    • Voluntary Dissolution (the application)
    • Receipt

    For both businesses above, all 3 outputs can be downloaded successfully (though one sometimes fails when using the Download All button).

    Therefore, this is intermittent, even from the ledger item link.

    cc: @vysakh-menon-aot

    Refs:
    https://test.business.bcregistry.gov.bc.ca/BC1147549
    https://test.business.bcregistry.gov.bc.ca/BC1147557

  4. added
    Entities - Data Migration
    and removed
    Entities Team
    on Nov 8, 2024
  5. self-assigned this
    on Nov 8, 2024
  6. eason-pan-bc commented on Nov 9, 2024

    @eason-pan-bc

    Conducted some preliminary analysis by continuously running requests for getting the documents for Voluntary Dissolution in Test and localhost.
    APIs used:
    {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/certificateOfDissolution
    {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/dissolution
    {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/receipt
    identifier: BC1147549
    filing_id: 395618

    Results
    https://docs.google.com/spreadsheets/d/1oH9e-p7voY4puV_GzzLb6X0iTGBwC8DUzcz_lfjm14c/edit?usp=sharing

    Since it's intermittent, and getting the documents takes pretty long response time. I suspect there might be some cutoff time setting (maybe) or there are some BE logic in the emailer has some bug, will dig into Entity Emailer next week, also a potential consideration is Notify API.

  7. eason-pan-bc commented on Nov 13, 2024

    @eason-pan-bc

    @severinbeauvais @vysakh-menon-aot
    Currently, the Voluntary Dissolution Application.pdf only be attached to an email when the Filing.Status is PAID, not for COMPLETED. Code reference in Emailer: https://github.com/bcgov/lear/blob/main/queue_services/entity-emailer/src/entity_emailer/email_processors/dissolution_notification.py#L54C5-L68C34
    And since the process is from filer then go to emailer, that might be why it's always missing in the voluntary dissolution email attachment, since it emails out when the filing is completed.

    Question: do we want to change this logic to make the Voluntary Dissolution Application.pdf gets attached to both status (PAID and COMPLETED) ?


    The root causes of intermittently missing PDFs is still under investigation, potential cause might be long running time and got kicked out before all PDFs are generated. (this is an assumption at this moment).

  8. vysakh-menon-aot commented on Nov 13, 2024

    @vysakh-menon-aot
    Contributor

    Question: do we want to change this logic to make the Voluntary Dissolution Application.pdf gets attached to both status (PAID and COMPLETED) ?

    No. It's the requirement. entity-emailer will receive the message to process PAID status emails from business-pay (https://github.com/bcgov/lear/blob/main/queue_services/business-pay/src/business_pay/resources/pay_filer.py#L155)

  9. eason-pan-bc commented on Nov 13, 2024

    @eason-pan-bc

    Question: do we want to change this logic to make the Voluntary Dissolution Application.pdf gets attached to both status (PAID and COMPLETED) ?

    No. It's the requirement. entity-emailer will receive the message to process PAID status emails from business-pay (https://github.com/bcgov/lear/blob/main/queue_services/business-pay/src/business_pay/resources/pay_filer.py#L155)

    thank you for clarification. found some other issues, will dig into the other directions.

  10. eason-pan-bc commented on Nov 13, 2024

    @eason-pan-bc

    Notes for fixing consistently not getting Voluntary Dissolution Application.pdf attachment in Emails

    After the PR bcgov/lear#3073 merged.
    Tested in Dev, in MailHog, the 2 emails and 3 attachments are both there
    image.png
    image.png

  11. eason-pan-bc commented on Nov 15, 2024

    @eason-pan-bc

    The root cause for intermittent missing PDF file(s) is the same as #24321 (comment)

    And the issue has been addressed in #24321 (comment)

  12. vishnup0422 commented on Nov 19, 2024

    @vishnup0422
    Collaborator

    Dev Env:

    Filing a Dissolution for a BEN
    BC0883763
    FilingId: 152553

    Voluntary Dissolution

    image.png

    Certificate of Dissolution

    image.png

    Receipt

    image.png

    Test Env:

    BEN: BC1152926
    filing_id=395953

    Voluntary Dissolution

    image.png

    Certificate of Dissolution

    image.png

    Receipt

    image.png

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

Metadata

Metadata

Assignees

Labels

Entities - Data MigrationPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions