Skip to content

Data Migration - Colin Bad Address Data Transpose Fixes #32653

Closed

Description

@doug-lovett

The colin data migration process has uncovered addresses that are incomplete or have data in the wrong fields, causing validation to fail in the modernized application.

Background analysis and work from Argus (Entities Data Migration 31242):
https://hackmd.io/@achiu3q/H1qtWnqTge#/5
https://bcgov-my.sharepoint.com/:x:/g/personal/argus_1_chiu_gov_bc_ca/IQA9GgpGU6XMTY9PTmin9cNOASLx4GwDJxPRg_jDhDY1WvY?e=HBcK4y

Policy has approved fixing Colin address data where the update does not add new data: it is "transposing" or moving data from one field to another.
An update that adds data to the record must be made as a correction filing (out of scope for this work).
Minor formatting changes of transposed data are allowed.

Policy decision on the distinction between transposing and creating a correction filing:
Policy review: For transposed data that exists in our records but is in the wrong address line, this can merely be inserted into the correct address format in the modernized system and a formal correction will not be required.
For address data that is missing but can be inferred with relative accuracy (e.g. no postal code but address and city available, or address and city is indicated but province is missing), a correction under section 414 of the BCA can be initiated by the Registrar. Developers should review a complete list of discrepancies in missing data with business/policy to confirm that the correction is appropriate, and follow this the business can be migrated over to BCROS and then the missing data added to the address with a correction ledger auto populated on the company’s history (this should be system completed – similar to the benefit company statement fix).
For any other missing information, such as missing names, spelling errors, etc, the Registrar cannot be satisfied as to the true facts required under section 414 and cannot make corrections without a correction application and any required supporting documentation initiated by the company.

Scope:
Addresses for active companies.
Addresses for active party and and active office records.

Update options are:

  1. One time in the colin database.
  2. As part of the data migration process in a colin extract copy of the colin database. Update runs with every migration.
  3. After migration in the business database. Update runs with every migration.

Decision: option 2, as part of the migration process.

How:
Create database functions that will update the relevant colin address table record data.

Approval:
Record the types of changes in a spreadsheet to be approved before running in the PROD environment.

Tasks:

  • Complete analysis of the updates (31242).
  • Obtain approval for the updates.
  • Create the database functions.
  • Add the execution of the database functions to the migration process.

Analysis spreadsheet:
https://docs.google.com/spreadsheets/d/1-BLTklhdiW0401sN6I68inF1-retATANyTZDswBwGcQ/edit?gid=0#gid=0

Activity

  1. added
    Entities - Data Migration
    on Mar 2, 2026
  2. self-assigned this
    on Mar 4, 2026
  3. doug-lovett commented on Mar 17, 2026

    @doug-lovett
    CollaboratorAuthor

    @dylan644 Mikaela suggested that you review and approve the spreadsheet for the proposed colin address record transpose updates. https://docs.google.com/spreadsheets/d/1-BLTklhdiW0401sN6I68inF1-retATANyTZDswBwGcQ/edit?gid=0#gid=0 Thank you.

  4. dylan644 commented on Mar 24, 2026

    @dylan644

    What was originally proposed to the business team and accepted by them was that all proposed re-mappings would be presented to them in spreadsheet form for them to review on a line by line basis and approve or otherwise. An initial spreadsheet of Argus' was shown which they liked the format of.

    I am not the right person to "Approve" anything. Discuss further with Argus and Thayne if more insight is needed.

  5. doug-lovett commented on Mar 24, 2026

    @doug-lovett
    CollaboratorAuthor

    @dylan644 thanks for the comment. Unfortunately, reviewing every address record to be modified is not practical: there are tens of thousands of records where the province code of BC is in address line 2 or address line 3. The approach adopted here, where examples of each type of update are provided for review, was used with the Assets MHR data migration. Melissa reviewed each of the change types with staff for approval. Can we please first try this approach of reviewing change type examples? If staff still wants to see every address record to be updated I will provide them. @TVWerdal please comment or include Melissa if you would like all records provided up front.

  6. TVWerdal commented on Mar 24, 2026

    @TVWerdal
    Collaborator

    I believe the original plan by @argush3 was to map out specific scenarios (i.e. Scenario 1: BC is in Address 2, here are 5 examples, this is our suggested fix..... Scenario 2: BC is in Address 1, here are 5 examples, this is our suggested fix... etc.) Very specific scenarios with concrete examples that can be reviewed and either rejected or signed off on by the Business. Argus, @mstanton1, @dylan644 does this sound correct?

  7. argush3 commented on Mar 24, 2026

    @argush3
    Contributor

    When I was planning out this work, my thought was that we would layout each scenario with a spreadsheet similar to below. It may not contain the exact addresses but the example spreadsheet I presented to the business did include a list of all the variations, counts and suggested fixes for a given scenario.

    image.png

  8. doug-lovett commented on Mar 24, 2026

    @doug-lovett
    CollaboratorAuthor

    @TVWerdal @argush3 thanks for the input. I believe both comments align with what I have done. I will provide some more examples to cover every scenario.

  9. doug-lovett commented on Mar 25, 2026

    @doug-lovett
    CollaboratorAuthor

    @dylan644 I have added more examples, scenarios, and counts to the spreadsheet https://docs.google.com/spreadsheets/d/1-BLTklhdiW0401sN6I68inF1-retATANyTZDswBwGcQ/edit?gid=0#gid=0 for review with staff.

  10. vikas-gov commented on Mar 30, 2026

    @vikas-gov
    Collaborator

    In review, being internally discussed for next steps

  11. added theissue type on Apr 2, 2026
  12. doug-lovett commented on Apr 14, 2026

    @doug-lovett
    CollaboratorAuthor

    Oge reviewed the transpose spreadsheet https://docs.google.com/spreadsheets/d/1-BLTklhdiW0401sN6I68inF1-retATANyTZDswBwGcQ/edit?gid=0#gid=0 with staff. Staff approval for changes captured in the worksheet "Feeback (EE)". Moving back to in progress to complete development.

  13. doug-lovett commented on Apr 23, 2026

    @doug-lovett
    CollaboratorAuthor

    Development of database functions and stored procedured completed for colin extract address transpose data updates. Moving to review to document with test data before creating a PR.

  14. doug-lovett commented on Apr 27, 2026

    @doug-lovett
    CollaboratorAuthor

    Examples address ID's for testing and basic execution instructions added to the spreadsheet
    https://docs.google.com/spreadsheets/d/1-BLTklhdiW0401sN6I68inF1-retATANyTZDswBwGcQ/edit?gid=642728421#gid=642728421
    under the worksheet named "Transpose DB Functions"

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

Metadata

Metadata

Labels

Colin EgressEntities - Data Migration

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions