Skip to content

Create UI: Name Request Error reported even though API returned HTTP 200 #31147

Closed

Description

@severinbeauvais

Impact:
A NR cannot be added to an amalgamation (or name change or type change or restoration) if the phone isn't entered exactly as it was entered in the NR. (Works fine if email is used instead.)

To reproduce:

  1. login to Dev or Test
  2. create an amalgamation NR with phone number= 123.123.1234
  3. approve the NR
  4. create a draft amalgamation
  5. try to use the NR in the draft using 123.123.1234 -- this works
  6. try to use the NR in the draft using 1231231234 -- this fails
  7. try to use the NR in the draft ysing 123-123-1234 -- this fails

In actual fact, the Legal API reports success (HTTP 200) in all these cases, but the UI reports an error.

API responses:
image.png

UI error:
image.png

Activity

  1. added
    bug
    Entities Team
    on Nov 4, 2025
  2. gunanagar commented on Nov 4, 2025

    @gunanagar
    Collaborator

    Tested NR 5961547

    use the NR in the draft using 123.123.1234 -- this works
    use the NR in the draft using 1231231234 -- this fails
    use the NR in the draft using 123-123-1234 -- this fails

    Screenshot 2025-11-04 at 4.48.00 PM.png

    Screenshot 2025-11-04 at 4.47.35 PM.png

    Screenshot 2025-11-04 at 6.02.29 PM.png

  3. OlgaPotiagalova commented on Nov 4, 2025

    @OlgaPotiagalova
    Collaborator

    It highlights a need for standardized phone number formatting across features to avoid mismatches. @severinbeauvais, please investigate the route cause of the problem and fix.

  4. severinbeauvais commented on Nov 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    The root cause is an integration issue: several changes were made over the last year or two in how the API validated the NR, but the UI was not updated accordingly -- the UI still performed some (now invalid) NR checks, leading to the situation described in this ticket.

  5. severinbeauvais commented on Nov 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    moved to a new comment below

  6. gunanagar commented on Nov 5, 2025

    @gunanagar
    Collaborator

    To add, Alteration - Change company name: it's working in Alteration NR (NR 5191978) with phone numbers with different formats, it's working

    1. 123.123.1234
    2. 123-123-1234
    3. 1231231234

    Response :

    Screenshot 2025-11-05 at 11.51.53 AM.png

  7. severinbeauvais commented on Nov 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    Thanks, Guna.

    While I have this ticket in progress, I will test all scenarios.

    I will also add extra test notes if there's anything special that needs to be called out.

    S.

  8. severinbeauvais commented on Nov 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    First, note that the Business API will allow fetching a NR with no or invalid phone/email if:

    • you are staff (ie, have the right permission)
    • the NR is affiliated to your account

    Therefore, for best testing, login as a regular user and do not affiliate the NR to your account.

    This bug affects the following filings:

    • Create UI: amalgamation
    • Create UI: restoration (full or limited) (eg, NR 3550041 for BC0888283)
      • except this is a staff-only filing so the NR will always be accepted

    For my own testing, I created a NR with phone = 123.123.1234, then I tested validation with the following:

    • 123.123.1234 (should pass)
    • 1231231234 (should pass)
    • 123-123-1234 (should pass)
    • 111-222-3333 (should fail)

    I also tested NRs in Edit UI and they are fine (no fix needed):

    • convert limited restoration to full (eg, NR 3550041 for BC0888283)
      • except this is a staff-only filing so the NR will always be accepted
    • name change (eg, NR 0790851 for BC0888309)
    • type change (eg, NR 0027351 for BC0888256)
  9. changed the title [-]Create UI: reports Name Request Error even though API returned HTTP 200[/-] [+]Create UI: Name Request Error reported even though API returned HTTP 200[/+] on Nov 5, 2025
  10. self-assigned this
    on Nov 6, 2025
  11. gunanagar commented on Nov 6, 2025

    @gunanagar
    Collaborator

    Tested, looks good.

    Created Amalgamated NR 9502127 with phone number 222.222.2222

    1. Log on with - REG23
    2. Amalgamate a business 1200191 B.C. LTD.
    3. Tried NR 9502127 with the following phone numbers
    4. 222.222.2222 - PASS
    5. 222-222-2222 -PASS
    6. 2222222222 - PASS
    7. Invlid numbe ( 1231231234) - got below error message - PASS-

    Screenshot 2025-11-06 at 11.56.10 AM.png

    Valid Phone number screenshots :

    Screenshot 2025-11-06 at 11.57.43 AM.png

    Also tried with Afilated NR

    1. Tried NR NR 3445461 with the following phone numbers
    2. 123.123.1234 - PASS
    3. 123-123-1234 -PASS
    4. 1231231234 - PASS
    5. Invalid number ( 324323) - - PASS-
    6. Screenshot 2025-11-06 at 12.01.42 PM.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions