Skip to content

Create UI - Translate filing error messages from API #32727

Todo

Description

@mstanton1

Implement updated error handling in create UI as per spike: https://app.zenhub.com/workspaces/entities-team-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/32561

Filings to be addressed:

  • Voluntary Dissolution?
    These are all the Create UI filings:
    Filing Name Included in scope
    ====================================
  • Incorporation Yes
  • Continuation In No (moving to Nuxt layers)
  • Amalgamation Yes
  • Voluntary Dissolution Yes

Activity

  1. added
    Entities Team
    on Mar 5, 2026
  2. added theissue type on Mar 5, 2026
  3. mstanton1 commented on Mar 5, 2026

    @mstanton1
    CollaboratorAuthor

    @Mihai-QuickSilverDev please add list of filings into the body.

  4. benjamin-bc-gov commented on Nov 23, 2026

    @benjamin-bc-gov
    Collaborator

    Picking this up. Voluntary dissolution only, per the table. Plan: keep the dialog as it is, show each API error with a readable label for the record it belongs to, and log the full detail to the console, following Severin's proof of concept in business-create-ui PR bcgov/business-create-ui#841

    I will post the list of labels here for wording review before the PR is ready.

  5. benjamin-bc-gov commented on Nov 23, 2026

    @benjamin-bc-gov
    Collaborator

    The fix is up for review: bcgov/business-create-ui#915

    When the system rejects a voluntary dissolution, the user will now see what went wrong instead of a generic "unable to save" message. Each line says which part of the filing has the problem, then what the system said. Examples:

    Custodian (Jane Doe) email: Custodian email is required.
    Custodian (Jane Doe) delivery address: Address must be in BC.
    Dissolution date: ...
    Certified by: ...

    The parts that can show up are: Dissolution type, Dissolution date, Dissolution details, Dissolution statement, Affidavit, Court order, Custodial office address, the custodian or completing party by name (email, name, mailing address, delivery address, role), Certified by, Effective date, Folio number, Document email, Business, Special resolution.

    @janisrogers @mstanton1 could you check that these labels read right? Screenshots below.

  6. benjamin-bc-gov commented on Nov 23, 2026

    @benjamin-bc-gov
    Collaborator

    01-preview-915-dissolution-errors-decoded.jpg

  7. benjamin-bc-gov commented on Nov 23, 2026

    @benjamin-bc-gov
    Collaborator

    02-preview-915-not-allowed-message.jpg

  8. mstanton1 commented on Nov 23, 2026

    @mstanton1
    CollaboratorAuthor

    @benjamin-bc-gov where are you pulling the wording for these messages from? It seems like we need a master list with designer noted errors, unless something already exists? @janisrogers what do you think? If so - this might not be ready to pick up and may need to be blocked by a design ticket.

  9. benjamin-bc-gov commented on Nov 23, 2026

    @benjamin-bc-gov
    Collaborator

    @mstanton1 the message part (for example "Address must be in BC.") is the API's own text, shown as is, the same wording API users already get.

    The only new wording is the short prefix naming the part of the filing the error points to, and those names are the ones already on the dissolution screens (Custodian, Dissolution date, Certified by). This is the "translated error paths" option from the spike (32561), with the dialog left as is and design changes deferred.

    There is no master list today, so the list I posted above is it for dissolution. If @janisrogers wants different prefix wording, it is a one-file change and I can adjust before merge, so I would not block it on a design ticket.

  10. mstanton1 commented on Nov 23, 2026

    @mstanton1
    CollaboratorAuthor

    Thanks for the information on where this is coming from. Let's see what Janis thinks. I can see that implementing this, even without design/wording consideration, should lead to additional clarity in cases where users previously had no context behind the error.

  11. janisrogers commented on Nov 24, 2026

    @janisrogers
    Collaborator

    @mstanton1 I think we should go ahead and implement this since it gives more information, but I also think the designers should review the messages. (not just the prefixes) and we can adjust as required in a later ticket. Of the ones shown, the only one I have concerns about is the not allowed one, since the instructions (correct the data and resubmit) don't make sense.

  12. mstanton1 commented on Nov 24, 2026

    @mstanton1
    CollaboratorAuthor

    @benjamin-bc-gov it seems this is good to move forward but lets chat at stand up about what you need. I.e. Are you able to just implement error messaging based upon the API and provide a list for us that we could iterate on later? Are there any needs from our team?

    We should also discuss (perhaps in refinement) the scope. It seems like this is just for Voluntary Dissolution but the value exists across all filings, with priority focus being higher volume launched filings. It may be that we need additional tickets.

  13. benjamin-bc-gov commented on Nov 24, 2026

    @benjamin-bc-gov
    Collaborator

    @mstanton1 yes am able to do it , also there is a ticket that covers some other fillings also , with same logic, we are bringing the defined error message already thrown by API , to the UI.

    https://app.zenhub.com/workspaces/entities-team-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/32728

    CC: @janisrogers

  14. benjamin-bc-gov commented on Nov 24, 2026

    @benjamin-bc-gov
    Collaborator

    @mstanton1 @janisrogers thanks, work continues on this. As asked, here is the full list of messages a
    voluntary dissolution can show. The message text comes straight from the API and is unchanged. The UI only adds the prefix that says which part of the filing the error belongs to. Both can be reworded later without touching this ticket: a prefix is a one-line UI change, a message is an API change. Janis, the Not Allowed case no longer shows the "correct the data" sentence.

    Shown as (prefix added by the UI) Messages (from the API, unchanged)
    Custodian (name) email Custodian email is required.
    Custodian email cannot contain any whitespaces.
    Custodian (name) name Custodian first name is required.
    Custodian first name cannot have leading or trailing spaces.
    Custodian (name) mailing address
    Custodian (name) delivery address
    Address must be in BC.
    Address must be in Canada.
    Postal code is required.
    Address Country must resolve to a valid ISO-2 country.
    (field) cannot start or end with whitespace.
    Parties Must have a minimum of one custodian.
    Must have a maximum of one custodian.
    Must have a completing party.
    Parties are required.
    Invalid party role(s) provided.
    Dissolution type Dissolution type must be provided.
    Invalid Dissolution type.
    Dissolution statement (coops) Dissolution statement type must be provided.
    Invalid Dissolution statement type.
    Affidavit (coops) A valid affidavit key is required.
    Document must be set to fit onto 8.5" x 11" letter-size paper.
    File exceeds maximum size.
    File must be unencrypted.
    Invalid file.
    Court order Court Order is required.
    Court order date cannot be in the future.
    Invalid effectOfOrder.
    At least one Court Order document is required.
    Only one Court Order document is allowed.
    Special resolution (coops) Resolution must be provided.
    Resolution must be 2MB or less.
    Resolution date is required.
    Resolution date cannot be in the future.
    Resolution date cannot be earlier than the incorporation date.
    Signing date is required.
    Signing date cannot be in the future.
    Signing date cannot be before the resolution date.
    Signatory given name is required.
    Signatory family name is required.
    Effective date Effective date must be a minimum of 2 minutes ahead.
    Effective date must be a maximum of 10 days ahead.
    No prefix (single message) Not Allowed - You are not allowed to submit this type of filing for (business).
    A required field (name) was missing or invalid.
  15. benjamin-bc-gov commented on Nov 24, 2026

    @benjamin-bc-gov
    Collaborator

    Second filing is in: incorporation application. Same approach, the message is the API's own text and the UI adds the prefix. Directors, incorporators, share classes and share series are named from the filing, for example "Director (John Smith) mailing address" or "Share class (Class A Shares)".

    Shown as (prefix added by the UI) Messages (from the API, unchanged)
    Name request Legal type is required.
    Legal name and nrNumber is missing in nameRequest.
    Legal name is missing in nameRequest.
    nrNumber is missing for the legal name provided in nameRequest.
    Name Request is not approved.
    Name Request is already part of a pending filing.
    The name type associated with the name request number entered cannot be used.
    Name Request legal type is not same as the business legal type.
    Name Request legal name is not same as the business legal name.
    Offices recordsOffice is required
    Invalid office (name). Only registeredOffice and recordsOffice are allowed.
    Registered office mailing or delivery address
    Records office mailing or delivery address
    Address Region must be 'BC'.
    Address Country must be 'CA'.
    Postal code is required.
    Postal code must follow Canadian format, e.g. 'A1A 1A1' or 'A1A1A1'.
    (field) cannot start or end with whitespace.
    Parties Must have a minimum of one Incorporator
    Must have a minimum of (n) Director
    Must have a minimum of three Directors (coops)
    Must have a minimum of one completing party (coops)
    Must have a maximum of one completing party (coops)
    Incorporator is an invalid party role (coops)
    Invalid party role(s) provided: (roles)
    Must have minimum of one BC mailing address (coops)
    Must have majority of mailing addresses in Canada (coops)
    (Role) first name is required
    (Role) first, middle or last name cannot start or end with whitespace
    Director (name)
    Incorporator (name)
    Completing Party (name)
    deliveryAddress is required.
    Director (name) mailing or delivery address (same for Incorporator and Completing Party) Postal code is required.
    Postal code must follow Canadian format, e.g. 'A1A 1A1' or 'A1A1A1'.
    Address Country must resolve to a valid ISO-2 country.
    (field) cannot start or end with whitespace.
    Share structure A company must have at least one Class of Shares.
    Share class (name) Share class name '(name)' must end with 'Shares'.
    Share class name cannot contain the words 'share', 'shares', or 'value'.
    Share class (name) name already used in another share class.
    Share class (name) must provide value for maximum number of shares
    Share class (name) must specify par value
    Share class (name) must specify currency
    Invalid currency for share class (name).
    Must be a whole number
    Number must be greater than 0
    Must be a valid number
    Must be greater than 0
    Maximum (n) characters
    Too many significant digits
    Share class (name) cannot have series when hasRightsOrRestrictions is false
    Cannot add new series under a share class with currency type OTHER.
    Share series (name) Share series name '(name)' must end with 'Shares'.
    Share series name cannot contain the words 'share' or 'shares'.
    Share series (name) name already used in this share class.
    Share series (name) must provide value for maximum number of shares
    Series (name) share quantity must be less than or equal to that of its class (class name)
    Must be a whole number
    Number must be greater than 0
    Maximum (n) characters
    Too many significant digits
    Cooperative documents (coops) cooperative data is missing in incorporationApplication.
    Rules (coops)
    Memorandum (coops)
    Document must be set to fit onto 8.5" x 11" letter-size paper.
    File exceeds maximum size.
    File must be unencrypted.
    Invalid file.
    Contact information Invalid phone number, expected format: (XXX) XXX-XXXX
    Invalid extension, maximum 5 digits
    Court order (staff) Court Order is required.
    Court order date cannot be in the future.
    Invalid effectOfOrder.
    At least one Court Order document is required.
    Only one Court Order document is allowed.
    Effective date Effective date must be a minimum of 2 minutes ahead.
    Effective date must be a maximum of 10 days ahead.
    No prefix (single message) Not Allowed - You are not allowed to submit this type of filing for (business).
    A required field (name) was missing or invalid.
  16. mstanton1 commented on Nov 24, 2026

    @mstanton1
    CollaboratorAuthor

    @benjamin-bc-gov could you please put all the error messages above into an excel or word document? This way we can upload into Sharepoint to not lose it.

    Note: When that full list of error messages is available it can be attached in https://app.zenhub.com/workspaces/entities-team-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/35721 which was created for documenting the errors.

  17. benjamin-bc-gov commented on Nov 24, 2026

    @benjamin-bc-gov
    Collaborator

    Third and last filing is in: amalgamation application. Same approach. Amalgamating businesses are named by role and number from the filing, for example "Holding business (BC7654321)" or "Amalgamating business (Foreign Co Ltd)". Offices, directors and share classes use the same prefixes and messages as incorporation above. Continuation In is left out as the ticket says.

    Shown as (prefix added by the UI) Messages (from the API, unchanged)
    Amalgamating businesses Regular amalgamation must have 2 or more amalgamating businesses.
    Horizontal amalgamation must have a primary and 1 or more amalgamating businesses.
    Vertical amalgamation must have a holding and 1 or more amalgamating businesses.
    A foreign corporation or extra-Pro cannot be part of a Horizontal amalgamation.
    Duplicate amalgamating business entry found in list: (identifiers).
    A Cooperative Association can only amalgamate with other Cooperative Associations.
    A Cooperative Association can only amalgamate to form a new Cooperative Association.
    A BC Community Contribution Company must amalgamate to form ...
    An extra-Pro cannot amalgamate with anything to become ...
    A BC Unlimited Liability Company must amalgamate to form ...
    Amalgamating business (identifier)
    Holding business (identifier)
    Primary business (identifier)
    Cannot amalgamate with (identifier) which is in historical state.
    (identifier) has a draft, pending or future effective filing.
    (identifier) is part of a future effective amalgamation filing.
    (identifier) is frozen.
    (identifier) is not affiliated with the currently selected BC Registries account.
    (identifier) is not in good standing.
    A business with identifier:(identifier) not found.
    Unable to verify (identifier) - COLIN is unavailable, try again.
    Amalgamating business (legal name) (legal name) foreign corporation must not amalgamate with ...
    A BC Unlimited Liability Company cannot amalgamate with ...
    A (legal name) foreign corporation cannot be marked as Primary or Holding.
    Amalgamating business (legal name) foreign jurisdiction Invalid country.
    Invalid region.
    Region should not be BC.
    Region must not be provided for this jurisdiction.
    Resulting business name Legal type is required.
    Short-form amalgamations cannot have a Name Request.
    Adopt a name that have the same business type as the resulting business.
    Legal type should be same as the legal type in primary or holding business.
    Legal name does not match the (primary or holding) business.
    Legal name of the (primary or holding) business is required for a short-form amalgamation.
    Name Request is not approved.
    Name Request is already part of a pending filing.
    The name type associated with the name request number entered cannot be used.
    Name Request legal type is not same as the business legal type.
    Name Request legal name is not same as the business legal name.
    Offices Offices do not match the (primary or holding) business's current offices.
    Offices of the (primary or holding) business are required for a short-form amalgamation.
    recordsOffice is required
    Share structure Share structure does not match the (primary or holding) business's current share structure.
    Resolution dates do not match the (primary or holding) business's current resolution dates.
    Share structure of the (primary or holding) business is required for a short-form amalgamation.
    A company must have at least one Class of Shares.
    Parties Directors do not match the (primary or holding) business's current directors.
    At least one Director is required.
    At least one Director and a Completing Party is required.
    At least three Directors and a Completing Party are required. (coops)
    A Completing Party is required.
    Invalid party role(s) provided: (roles).
    Special resolution (coops) Resolution must be provided.
    Resolution must be 2MB or less.
    Resolution date is required.
    Resolution date cannot be in the future.
    Signing date is required.
    Signing date cannot be in the future.
    Signing date cannot be before the resolution date.
    Signatory given name is required.
    Signatory family name is required.
    No prefix (single message) Not Allowed - You are not allowed to submit this type of filing for (business).
    A required field (name) was missing or invalid.
    (legal type) is not enabled for amalgamation entities.
  18. benjamin-bc-gov commented on Nov 24, 2026

    @benjamin-bc-gov
    Collaborator

    Attached is the full list of error messages in one workbook, one sheet per filing

    (voluntary dissolution, incorporation, amalgamation), collected on 24 November 2026.

    Each row shows the part of the filing the UI adds in front, the message as it comes from the registry, and when it happens. It includes the rare staff-only, firm-only and schema-level messages I left out of the tables above to keep them short, so this is the version to use for any rewording.

    32727-error-list.xlsx

    CC: @mstanton1

  19. benjamin-bc-gov commented on Nov 25, 2026

    @benjamin-bc-gov
    Collaborator

    Screenshots from the preview build for the other two filings. For an incorporation, the dialog now tells the user which office address, which director and which share class the registry complained about. For an amalgamation, it names the business by its incorporation number. In both cases the message text is the registry's own wording and the first part of each line is added by the screen so the user knows where to look. Nothing was filed; the errors were replayed on a draft of each filing.

    • Incorporation (screenshot 04):

    https://business-create-dev--pr-915-xg2rfoj1.web.app/incorporation-define-company?id=T2feONYizf&accountid=3040

    • Amalgamation (screenshot 05):

    https://business-create-dev--pr-915-xg2rfoj1.web.app/amalg-reg-information?id=TevOYgMm5N&accountid=3040

    04-preview-915-incorporation-errors-decoded.jpg

    05-preview-915-amalgamation-errors-decoded.jpg

  20. benjamin-bc-gov commented on Nov 25, 2026

    @benjamin-bc-gov
    Collaborator

    For QA: how to see the new error box from the screens

    A quick note on what this ticket does. Every filing is checked twice. The screen checks it first and shows red messages on the fields; those have not changed. The registry checks it again when the filing is sent. Before this ticket, a registry rejection showed a blank "unable to save" box. Now the box lists what the registry said and names the part of the filing it is about.

    Typing bad data into the fields will not show the new box, because the screen stops the filing before it is sent. To reach the registry from the screens, use the steps below. Use a staff account and throwaway businesses on dev or the preview build.

    1. Nothing broke. File a voluntary dissolution, an incorporation and an amalgamation the normal way with good data. Each goes through as before and no error box appears.

    2. See the new box for each filing (easiest test, works for all three). Start the filing with good data and click Save and Resume Later. Open the draft from the dashboard, then copy the page address into a second browser tab so the same draft is open twice. In the first tab, go to Review and Confirm, certify and click File and Pay. It goes through. In the second tab, without reloading, go to Review and Confirm, certify and click File and Pay. The box opens with one line, "Not Allowed - You are not allowed to submit this type of filing for ." The sentence above it ends with "due to the following errors:" and does not ask to correct the data. Click Exit without saving.

    3. See a line that names the part of the filing (incorporation of a cooperative only). Start a cooperative incorporation with an approved cooperative name request. On Add People and Roles, make the completing party a person who is not a director and give them a mailing address outside Canada. Add three directors, two with mailing addresses in Canada (at least one in BC) and one outside Canada. The screen accepts this. Finish the other steps and click File and Pay. The box opens with "Parties: Must have majority of mailing addresses in Canada" and asks to correct the data and resubmit. Change the completing party's address to Canada and file again; it goes through.

    Also check that the title and the two buttons of the box are unchanged, and that a payment failure still shows the payment error box.

  21. self-assigned this
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions