You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIKE] Handle empty mailing address for accounts created via BAR feature #31869
In BAR functionality, the mailing address is not a mandatory field. This was implemented intentionally (to be clarified).
In business registration filings, the completing party information is mandatory and is populated using the mailing address from the account. If the mailing address is missing, the user does not have an option to enter it during the filing, and the filing cannot be completed.
We need to encourage users who created an account via BAR and whose affiliated businesses were migrated to BR to complete their accounts by adding a mailing address.
Tasks:
To outline options with pros and cons;
Estimate each option
Recommend a solution
Note:
OCM will have to inform those users that their account is incomplete in the BR, and they need to update it next time they login.
Presently, Edit UI loads when there is no account mailling address. (The address is initialized to empty.) However, a number of filings may use this address internally and may fail on submission. See Updated Analysis comment (dated Jan 8) below.
Presently, Create UI can fail to load when there is no account mailing address. This is due to a check on loading. If this check is bypassed -- for example if the current user is allowed a blank completing party, ie. staff -- then the UI loads. See Updated Analysis comment (dated Jan 8) below.
Options
1. Remove requirement for account mailing address
auth/business/legislative requirements?
UI/UX updates
schema updates
API validation updates
output updates
other changes down the line?
2. Flag missing mailing address at point of consumption
For example, when Create UI loads, if there is no account mailing address then display an error dialog with instructions on what's needed and perhaps a link to the account address change page.
Alternately, display an error dialog if the account mailing address is missing but is required for the subject filing. (Ie, don't show for all filings.)
3. Flag missing mailing address in business dashboard
When Business Dashboard UI loads, if there is no account mailling address then display an alert and block (all?) filings until this is resolved.
UI code to display new alert
API code to trigger new alert
this alert displays on the business page but it's an account issue -- a different account (with a mailing address) wouldn't see this issue -- so it's weird
Option 1 makes the most sense to me. If the mailing address is not available from the account we could allow the user to fill it in. Colin has always required that the completing party fill in their mailing address when registering a business, so I don't think there would be any legal/business objections to this. The question (for me) is if we should update the account settings with this address, and if so, how we let the user know.
Option 4 - Fix specific filings (Janis' suggestion)
We could allow users into filings without an account emailmailing address, but let them enter/edit the Completing Party address in the filing so it doesn't fail.
this doesn't back-fill in the account emailmailing address, so we're not fixing the root cause
I think it would be better to redirect the user to the account address change page
this "patches" filings one by one instead of having a global fix/mitigation
there may be other issues later or down the line
this could be a lot of UI and testing work if it touches many filings
I don't recommend this option.See my updated opinion in comments below.
My problem with 2 and 3 is that they both imply the user has done something wrong when they haven't. I am also wondering if we actually need the mailing address of the completing party. Do we ever send mail to them? Perhaps we should just stop collecting that information.
If we do need the mailing address, couldn't we have them fill in the mailing address on the page and ask if they want to save the mailing address in their account
@severinbeauvais I am a little confused by your comment about the email address. Isn't this ticket about an empty mailing address?
If we let other products know that the account information may or may not contain the mailing address, they could then adopt a similar solution (ie let the user enter the information and save it to the account if desired).
If we continue to record the Completing Party then it must satisfy the party schema -- or we need to change a lot of things to record and store it differently.
I'm warming up to Option 4. I'm not sure how many filings are affected but it might not be that bad to just prompt the user for the Completing Party mailing address when needed.
As for setting the account mailing address when they enter it in a filing, that's getting complicated as it's an extra call to Auth API and independent of the subject filing. However, we could handle this similarly to account email and phone (eg, in an alteration).
The Auth API call to update the account mailing address:
Do we know which filings fail when the account has no mailing address? (From looking through code, I think only Firm Dissolution uses account mailing address without giving the user a change to update it as part of the Completing Party record.)
Note that I looked through the Create UI code and Edit UI code to see which filings use the account mailing address. I didn't test all the filings to confirm my findings. It's also possible that the Business API accepts empty mailing addresses in some cases.
Create UI
As mentioned above, Create UI throws a startup error when there is no account mailing address and the user doesn't have permission to skip it. Otherwise, the following will happen.
The account mailing address is fetched from Auth API.
The account mailing address is stored as the "user address", which is used to pre-populate the Completing Party for all filings that require the user to enter a Completing Party (Amalgamation, Continuation In, Incorporation, Registration, Restoration).
I think this will succeed if the user address is empty because the user has to manually enter the Completing Party, including mailing address if not pre-populated
The account mailing address is stored for the "completing party", which is automatically added to a firm dissolution's JSON.
I think this WILL FAIL if the completing party address is empty because the API validation will fail
it should be straightforward (3 pts) to prompt the user for the completing party info instead (consistent with the other filings)
Edit UI
The account mailing address is fetched from Auth API.
The account mailing address is stored for the "completing party".
The Completing Party is displayed for the following filings (and editable if the user has permission):
Change
Conversion
Special Resolution
Correction - User (Coop, Corp and Firm)
The Completing Party is automatically added to the following filings' JSON (whether it was editable or not in step 3):
Correction
Change
Conversion
it appears that Alteration doesn't save completing party (or any party) even though it was displayed and possibly editable ***
it appears that Special Resolution doesn't save completing party (or any party) even though it was displayed and possibly editable ***
it appears that Restoration doesn't save completing party (though it saves other parties)
Hence, I expect the following:
Change filings (as regular user, hence cannot edit the Completing Party) WILL FAIL on submit if the account mailing address is empty
Change filings (as staff, where Completing Party is editable) will succeed on submit
Conversion filings (staff-only, hence CP is editable) will succeed on submit
Correction-User filings (staff-ony, hence CP is editable) will succeed on submit
Alteration filings will succeed because CP is not part of filing JSON
Special Resolution filings will succeed because CP is not part of filing JSON
Restoration filings will succeed because CP is not part of filing JSON
Alteration filings will succeed because CP is not displayed or part of filing JSON
In some products/components mailing address from user account is mandatory (Entities, Pay, originally STRR, newly simplified account creation flow) where in others is not (BAR, STRR - lifted the requirement). It looks like decisions are driven by the product specific requirements rather than by the system and process requirements. However the address might be needed for other purposes, such as cheque refunds, etc.
There is a current RAID discussion underway on Addresses in Accounts. My guess/hope is that it would lean towards what @janisrogers is saying. The address in the accounts probably gets stale and might not be correct (in some cases we know for sure that it is incorrect).
update completing party and applicant components throughout filings to allow entry of the completing party address if it is not prepopulated from the account address.
Activity
severinbeauvais commentedon Jan 6, 2026
Background
(This was updated on Jan 8 by SB.)
Before a recent change, some UIs would display an error dialog on load if account mailing address was empty. Refs:
Presently, Edit UI loads when there is no account mailling address. (The address is initialized to empty.) However, a number of filings may use this address internally and may fail on submission. See Updated Analysis comment (dated Jan 8) below.
Presently, Create UI can fail to load when there is no account mailing address. This is due to a check on loading. If this check is bypassed -- for example if the current user is allowed a blank completing party, ie. staff -- then the UI loads. See Updated Analysis comment (dated Jan 8) below.
Options
1. Remove requirement for account mailing address
2. Flag missing mailing address at point of consumption
For example, when Create UI loads, if there is no account mailing address then display an error dialog with instructions on what's needed and perhaps a link to the account address change page.
Alternately, display an error dialog if the account mailing address is missing but is required for the subject filing. (Ie, don't show for all filings.)
3. Flag missing mailing address in business dashboard
When Business Dashboard UI loads, if there is no account mailling address then display an alert and block (all?) filings until this is resolved.
janisrogers commentedon Jan 6, 2026
Option 1 makes the most sense to me. If the mailing address is not available from the account we could allow the user to fill it in. Colin has always required that the completing party fill in their mailing address when registering a business, so I don't think there would be any legal/business objections to this. The question (for me) is if we should update the account settings with this address, and if so, how we let the user know.
severinbeauvais commentedon Jan 6, 2026
Recommendation
Option 1 is the most work, and may cause future issues (as we'd leave account mailing address empty).
Option 2 is direct and helpful. This is my choice.
Option 3 is also direct and helpful but displays an account-specific issue on the business dashboard, which is why I don't like this one.
severinbeauvais commentedon Jan 6, 2026
Option 4 - Fix specific filings (Janis' suggestion)
We could allow users into filings without an account
emailmailing address, but let them enter/edit the Completing Party address in the filing so it doesn't fail.emailmailing address, so we're not fixing the root causeI don't recommend this option.See my updated opinion in comments below.severinbeauvais commentedon Jan 6, 2026
@OlgaPotiagalova @TVWerdal Please review and let me know if you want to discuss. Thanks.
janisrogers commentedon Jan 6, 2026
My problem with 2 and 3 is that they both imply the user has done something wrong when they haven't. I am also wondering if we actually need the mailing address of the completing party. Do we ever send mail to them? Perhaps we should just stop collecting that information.
If we do need the mailing address, couldn't we have them fill in the mailing address on the page and ask if they want to save the mailing address in their account
@severinbeauvais I am a little confused by your comment about the email address. Isn't this ticket about an empty mailing address?
janisrogers commentedon Jan 6, 2026
If we let other products know that the account information may or may not contain the mailing address, they could then adopt a similar solution (ie let the user enter the information and save it to the account if desired).
severinbeauvais commentedon Jan 6, 2026
I'd argue they have, since their account setup is incomplete.
Oops, fixed!
severinbeauvais commentedon Jan 6, 2026
If we continue to record the Completing Party then it must satisfy the party schema -- or we need to change a lot of things to record and store it differently.
I'm warming up to Option 4. I'm not sure how many filings are affected but it might not be that bad to just prompt the user for the Completing Party mailing address when needed.
As for setting the account mailing address when they enter it in a filing, that's getting complicated as it's an extra call to Auth API and independent of the subject filing. However, we could handle this similarly to account email and phone (eg, in an alteration).
The Auth API call to update the account mailing address:

Do we know which filings fail when the account has no mailing address? (From looking through code, I think only Firm Dissolution uses account mailing address without giving the user a change to update it as part of the Completing Party record.)
severinbeauvais commentedon Jan 8, 2026
Updated analysis
Note that I looked through the Create UI code and Edit UI code to see which filings use the account mailing address. I didn't test all the filings to confirm my findings. It's also possible that the Business API accepts empty mailing addresses in some cases.
Create UI
As mentioned above, Create UI throws a startup error when there is no account mailing address and the user doesn't have permission to skip it. Otherwise, the following will happen.
The account mailing address is fetched from Auth API.
The account mailing address is stored as the "user address", which is used to pre-populate the Completing Party for all filings that require the user to enter a Completing Party (Amalgamation, Continuation In, Incorporation, Registration, Restoration).
The account mailing address is stored for the "completing party", which is automatically added to a firm dissolution's JSON.
Edit UI
The account mailing address is fetched from Auth API.
The account mailing address is stored for the "completing party".
The Completing Party is displayed for the following filings (and editable if the user has permission):
The Completing Party is automatically added to the following filings' JSON (whether it was editable or not in step 3):
Hence, I expect the following:
OlgaPotiagalova commentedon Jan 8, 2026
In some products/components mailing address from user account is mandatory (Entities, Pay, originally STRR, newly simplified account creation flow) where in others is not (BAR, STRR - lifted the requirement). It looks like decisions are driven by the product specific requirements rather than by the system and process requirements. However the address might be needed for other purposes, such as cheque refunds, etc.
We are parking it until the decision is reached for mailing address a mandatory or optional requirement across the system and processes. RAID ticket https://github.com/bcgov-registries/raid/issues/753
thorwolpert commentedon Jan 9, 2026
There is a current RAID discussion underway on Addresses in Accounts. My guess/hope is that it would lean towards what @janisrogers is saying. The address in the accounts probably gets stale and might not be correct (in some cases we know for sure that it is incorrect).
severinbeauvais commentedon Jan 9, 2026
deleted obsolete comment
mstanton1 commentedon Jan 22, 2026
Decision made:
mstanton1 commentedon Jan 22, 2026
@severinbeauvais with the decision above, can this be closed?
severinbeauvais commentedon Jan 22, 2026
Yes, this SPIKE can be closed.
I will review the epic tickets and determine which ones we need to move forward with.