Duplicate record prevention and merge rules for permits and applications
Use deterministic matching rules in one workspace to prevent a second application for the same work, to stop a second record number for the same filing, to spot near duplicates that share an applicant, a parcel identifier, a property address and a filed date, and to keep one record with full history where a duplicate was already submitted.
One workspace rule for every comparison
Every duplicate check on this page stays inside one town workspace. A workspace is the town company in MAJIC sign-in. Records belong to the workspace selected in the app.
- Scope is workspace records only. Workspace is fixed to the signed in workspace on staff lists and to this town on public search. There is no workspace picker and no way to list another workspace by typing its name.
- Do not compare records between workspaces. A record that belongs to another workspace is not listed, copied, merged or used to fill a field on this workspace record. Stop work on that record, note the workspace name and the record number, and contact a town administrator with those details, as stated on the security page.
- Public search on Search a public record shows only portal visible statuses and public fields. It never shows phone, email, payment details, internal notes or drafts from any workspace.
- Deterministic on this page means the same normalized fields always give the same match result. No score, no fuzzy guessing and no value taken from another record, another workspace, an example or a document title is used to meet a tier.
Normalization before any compare
Apply normalization in this order to each field before matching. Compare whole fields only. Where a field is not on the record, write Unknown for that field and do not infer it.
| Field | Normalization to apply before compare | Exact match means | Never used to meet a tier |
|---|---|---|---|
| Parcel identifier from parcels | Trim leading and trailing spaces. Change letters to upper case. Collapse repeated separators shown on the field to a single space. Compare the whole parcel identifier only. | The normalized whole parcel identifier on both records is the same. | A partial parcel, a parcel from another record, or an address alone used as proof that the parcel is the same. |
| Property address and unit as printed | Trim leading and trailing spaces. Change letters to upper case. Collapse multiple spaces to a single space. Remove punctuation shown in the middle of the address only where the field shows it on both records. Compare street number, street name and unit where shown, in the same order and together as printed. | The normalized street number, street name and unit where shown are the same on both records. | Words in a different order, a unit that is on one record and missing on the other, or a similar street name. |
| Applicant email | Trim leading and trailing spaces. Change the entire address to lower case. Compare the whole address including the domain. | The lower case email is the same on both records. | A phone fragment, a company name alone, or an email on a different record used as the contact for this record. |
| Applicant full name | Trim leading and trailing spaces. Collapse multiple spaces to a single space. Compare in any case as a whole name. | The whole normalized name is the same on both records. | A short name, a reversed name order or a similar name. Name alone never meets a tier without a parcel or an address match. |
| Record number | Trim leading and trailing spaces. Change letters to upper case. Compare the whole record number only. A record number is assigned once at submission and is never reused. | The normalized whole record number on both records is the same. | A partial record number, a record number from another workspace, or a draft number used as proof that two submitted records share a number. |
| Filed date, submitted date | Take the calendar date in the town time zone on which the record moved from draft to submitted. Compare the whole calendar date only. Time of day is ignored. | The filed calendar date on both records is the same. | A created date, a payment date, a decision date, or a date from another record used as the filed date. A draft has no filed date until it is submitted. |
| Record type lane | Use the lane the list opened from. Permit, license, planning and code case are separate lanes. Do not change the lane to meet a tier. | Both records are in the same lane. | A permit type value on a case list, or a case type value on a permit list, as stated in Canonical permit facts. |
Where a parcel, address or applicant field is not on the record, write Unknown for that field and do not infer it from another record. A tier that needs that field cannot be met until the town office supplies the source field or document for that record. Normalization applies when you compare fields on records you have opened. It does not make applicant name or email searchable in Text on My records, staff queues or public search. Text on those record lists matches record number, parcel number, street address and, on staff lists, record title only, as stated on Reports and setup and in Search a public record.
Match tiers in order, from exact duplicate to review only
Work the tiers in order. Tiers 1 to 3 mean the work is the same work for duplicate prevention and each tier requires the same filed date. Tier 4 means related work that needs a staff read. No tier merges records by itself.
| Tier | What must match exactly | Meaning | What to do next |
|---|---|---|---|
| Tier 1, exact duplicate, same filed date | Same normalized parcel, same normalized address including unit where shown, same applicant email, or same applicant full name where no email is on the record, same filed date, and the same record type lane. | Duplicate for the same work on the same parcel and address, filed on the same date. | Block the second submission under the unique rule below. Open the existing record and use its timeline, documents and fee lines. Where a second record was already submitted, follow the merge rules below. |
| Tier 2, parcel and applicant, same filed date | Same normalized parcel and same applicant email or full name in the same lane, same filed date. Address differs or unit is missing or inconsistent. | Likely the same work where the address entry differs. | Open the existing record, confirm the address on that record, and ask staff to correct the address with a logged reason where needed. Do not start a second application. |
| Tier 3, address and applicant, same filed date | Same normalized address including unit where shown and same applicant email or full name in the same lane, same filed date. Parcel differs, is missing or is inconsistent. | Likely the same work where the parcel entry differs. | Open the existing record, confirm the parcel from town parcel data which stays the authority for parcel, owner and zoning facts, and ask staff to correct the parcel with a logged reason where needed. Do not guess a parcel from an address. |
| Tier 4, review only | Same normalized parcel alone, same normalized address alone, or same applicant alone, in the same lane. | Related work. Not proof of the same work. | Read both records side by side from the record header and timeline. Ask staff to decide whether the work is the same. Do not treat the records as duplicates and do not merge on Tier 4 alone. |
| Related work, different filed date | Same normalized parcel, same normalized address and same applicant email or full name, same lane, different filed date. | Repeat or later phase work for the same place and applicant. Not a same-day duplicate. | List both records as related for the staff read. Do not block the later filing on this alone and do not merge on this alone. Where staff confirm the later record is the same work, correct the filed date or the record on the record with a logged reason first, then recheck the tiers. |
- Within Text on My records and staff queues, choosing a parcel or an address matches part of that field in any case, as stated in Search a public record. A name matches part of a contact name only on the Contacts list, in Reports and setup. Tiers above compare the whole normalized applicant field only after a search by parcel or address finds a candidate record and you open that record. Do not use Text with an applicant name or email on a record list to meet a tier, a total of zero for that entry is not proof that no duplicate exists.
- Combining filters narrows a list, it never widens it. Leave Status and Record type blank to include every value for those fields where you want to screen for any possible duplicate before you narrow.
- Where two records meet Tier 1 to 3 on different fields, work the lowest tier number first, then the earliest submitted date, as in the merge rules below. A record with no filed date cannot meet Tier 1 to 3. Count it separately as missing the filed date.
Unique constraint for record numbers and for the near-duplicate key
Use this rule as the contract the app pack enforces at submit. The site page states the rule. The app pack implements the index and the submit check on the same fields and the same normalization. No second submit for the same key assigns a second record number or starts a second workflow.
| Key | Scope | What is stored and compared | When a second item is tried | What staff and the applicant see |
|---|---|---|---|---|
| UK Record number | One workspace. Workspace plus normalized record number. | Record number assigned once at submission and never reused. Compared trimmed and in upper case as a whole. | Keep the first record. Do not assign a new record number, do not start a workflow, and do not overwrite fees, documents or status. | The existing record number is shown with a link to open that record. The attempt is logged with user and time on the existing record. |
| UK Near-duplicate key | One workspace, one lane, submitted scope only. Draft, withdrawn and closed records are excluded. | Workspace, lane, normalized parcel, normalized address, normalized applicant email, filed date, record type. | Block the second submission. Keep the existing submitted record as the one record for that key. | The existing record number is shown first. The applicant is told to open that record and staff are told to read both records before any merge. |
| Key update | Same workspace and same record. | Where a contact, parcel or address is corrected on that record, the normalized key for that record is recalculated from that record only. | Do not copy a parcel, address, email or date from another record to fill a missing part of the key. | Where a part of the key is missing on the record, the tier that needs it is not met and the field is counted as missing in the audit scan below. |
- A retry of the same submit, such as a second press of Submit or a connection retry, returns the existing record number for that attempt. It does not create a second record or a second fee.
- A record number is never reused after a merge, a withdrawal or a close. The surviving record keeps its record number. The duplicate record number stays readable on old work and is retired for new use.
- Staff see the existing record number and the tier met before they merge. The merge never renumbers an issued record and never deletes history.
Filing date, why it is in the key
Without a filed date, the same applicant at the same address with a new phase, a correction filing, a reinspection follow-up or a later renewal looks like a duplicate. With a filed date, a same-day double filing is blocked and a later filing is listed as related work for a staff read.
| Comparison | What it means | Action |
|---|---|---|
| Same normalized parcel, address, applicant and type, same filed date | Tier 1 duplicate on that date. One work, one record. | Block the second submit, show the existing record number, and merge where two records were already submitted. |
| Same normalized parcel, address, applicant and type, different filed date | Related work by the same applicant at the same place on a different date. | Allow the later filing. List the earlier record as related. Do not merge without a staff read of both headers, timelines and filed dates. |
| Filed date missing on a submitted record | Unknown: submitted date not in supplied context for that record. | The record cannot meet Tier 1 to 3. Count it separately in the audit scan and ask staff to correct the record with a logged reason where the submitted date is wrong. |
- A draft has no filed date. A draft is never counted as submitted, never creates a fee and does not appear in public search.
- Day counts are calendar date differences in the town time zone, as stated on Reports and setup. Two submits on the same calendar date have the same filed date even where the times differ.
Specific fix list for filter combinations that drop or misapply filters
Use this list on My records, staff queues and public search before you rely on a total count. Each row states the combination, what it drops or misapplies, and the fix that keeps the six fields the same. No new filter name is added.
| Combination | What drops or is misapplied | Fix |
|---|---|---|
| Text with applicant name, email or company name, alone or combined with Status, Record type or Date, on My records or a staff queue | The name or email term is not in the Text index for a record list, so the combined list returns a total of zero. That zero drops the applicant part of Tier 1 to Tier 3 and can be misread as no duplicate. | Use Text with parcel number or street address to find candidate records, open each candidate by record number, and compare normalized applicant email or full name on the opened records. For an applicant only check, open the Contacts list with Text contains the contact name, then open each record linked to that contact by record number. |
| Text with applicant name on public search | Name search never matches in public search by design, and public search never shows phone, email or payment details. | Do not add a name index to public search. Use a signed in list where your lane allows it, or a secure link for one record, as in Search a public record. |
| Text with parcel or address, combined with Status, Record type and Date, on My records or a staff queue | Valid combination. Within Status and within Record type the list uses OR, across fields it uses AND, and blank means include all. Filters do not change the sort order. | Keep this combination. Move page with the same filters and sort, and read the total count of distinct record numbers across all pages before the rows. |
| Owner combined with Text, Status, Record type or Date on My records, public search or contacts | Owner is hidden on public search and My records and is not applicable on contacts, so an Owner value cannot be combined on those lists. | Use Owner only on a staff queue, My work or a staff card where the role may see Owner, and only signed in in the same workspace. |
| Workspace name typed in Text, combined with any other filter | The workspace term is ignored for tenancy. Workspace is fixed to the signed in workspace, or to this town on public search, with no picker. | Check the workspace name in the app header before you read a total count. An empty queue can mean the wrong workspace. |
| Date from after Date to, combined with Status or Record type | Contradictory within Date, so the total is zero until one date is corrected or cleared. | Clear one date at a time and read the total after each clear. Do not use Clear all to diagnose one contradicting filter. |
- Clear one filter removes only that filter and keeps the other filters, the page controls and the sort order named on the list. Clear all removes Text, Status, Record type, Date and Owner where the list shows them, returns the list to the first page with rows in the same workspace and keeps the sort order. Clear all does not delete a record, does not change the workspace and does not clear a saved report.
- Where a total is zero, read the active filters and the total first, then clear one filter at a time. The filter whose clear changes the total from zero to a count is the filter that contradicts the others.
Prevent duplicates at entry in order
Use the same three checks for every new filing. Each check uses the lists the person can already open, in the same workspace.
Check My records before you choose Start
Open My records in the same workspace and search Text contains the parcel number, then the street address, one field only in each search. Add Status and Record type to narrow only after the first search. Do not search Text on My records for applicant email or full name, that term does not match on a record list and a total of zero for that entry is not proof that no duplicate exists. Where a candidate record is found by parcel or address, open it by record number and compare normalized applicant email or full name and filed date on the opened record to meet Tier 1 to 3. For an applicant only check, open the Contacts list with Text contains the contact name, then open each record linked to that contact by record number and compare fields on those opened records. Where Tier 1 to 3 is found, open that record and do not choose Start for the same work. See Apply for a permit online at Step 1 and Search a public record for the applicant name audit.
Check again at the location step
At Step 2 of the application, pick the exact site from the list the search returns, add more than one parcel or address where the project needs it, and check zoning and owner details shown from town parcel data. Recheck the normalized parcel and normalized address you just entered before you continue. Where the entry now meets Tier 1 to 3 with an existing record, stop and open that record instead of continuing.
Recheck at review before you submit once
At Step 5, reopen the review page and read the counts, required, received and missing. Confirm at least one parcel or address, at least one contact, required fields and documents, certification where the form asks and verified email. Search My records again with Text contains the parcel number, then the street address, one field only, and check the applicant by opening candidate records by record number and by the Contacts list as in Step 1 above, not by Text with a name or email on My records. Where Tier 1 to 3 is found on opened records with the same filed date, do not submit a second application and show the existing record number. Where the found record has a different filed date, list it as related work and confirm with staff only where the staff read shows the same work. Where no Tier 1 to 3 is found on opened records, check the fee lines from the schedule in effect on the submission date, then submit once and confirm one record with a record number appears in My records. On submit, the app pack enforces the unique constraint for record numbers and for the near-duplicate key and returns the existing number where the key is already taken.
Check the inspections list for the same type and time window
Before you request an inspection, read the inspections list on the same permit for a requested or scheduled request for the same inspection type and time window. Do not book the same property twice. Use reschedule to move a scheduled inspection to a new date, and reinspection only after a completed visit with failed items. See Request an inspection.
Use the linked renewal record for licenses and the case number for complaints
Renewal creates a linked record and moves the license to renewal pending until approved and paid. Open that linked record instead of applying for a new license under a new name. For a code complaint, check status by case number before you file again. See Renew a license and File a code complaint.
Audit scans for duplicate numbers and near duplicates
Run both scans in the town workspace before you rely on a duplicate check. Each scan groups submitted records by the key named in the table and lists every group where the count is more than one. Work the scans read only. Do not merge from a scan list alone. Open each record in the group and confirm the tier on the opened records.
| Scan | Group submitted records by | Expected result | If a group has more than one |
|---|---|---|---|
| Scan A, duplicate record numbers | Workspace and normalized record number. Drafts excluded. One record number counts once. | Zero groups. No two submitted records share one record number. | Keep the record with the earliest submitted date as the survivor. Retire the duplicate record number, never reassign it, and record both numbers in history on the survivor with user and time. Follow the merge rules below. |
| Scan B, near duplicates with filed date | Workspace, lane, normalized parcel, normalized address, normalized applicant email, filed date, record type. Draft, withdrawn and closed records excluded. | Zero groups. No two submitted records share the full near-duplicate key. | Work the group in tier order and earliest submitted date first. Where two records in the group have different filed dates, they are not one group under this scan. List them as related work and do not merge without a staff read. |
Start with filters blank
On a staff list, leave Status and Record type blank first so the scan screens for any possible duplicate before you narrow. Search Text contains the parcel, then the address, then open candidate records by record number and compare normalized email or name and filed date on the opened records.
List each group side by side
For each group with more than one record, list the normalized parcel, normalized address, normalized email, filed date and record number for each record. Note the tier each pair meets and whether the filed dates match.
Count missing filed dates separately
Count submitted records with no submitted date on the record separately from Scan B. Those records cannot meet Tier 1 to 3 until staff correct the record with a logged reason. Do not use a created date or another record date as a substitute.
Confirm zero groups before you publish a type
After merges, run Scan A and Scan B again and confirm zero groups, confirm My records shows the survivor once, and confirm public search shows no draft and no test record.
Merge rules where a duplicate was already submitted
Use these rules only where both records are submitted, are in the same town workspace and are in the same record type lane, and meet Tier 1 to 3 after normalization with the same filed date. A duplicate that meets Tier 4 alone, or that meets the key with a different filed date, is not merged.
Confirm the workspace and lane before you compare
Read the workspace name and confirm both records belong to the selected town workspace. Where the workspace names differ, stop and do not merge. Confirm both records are permits, or both are licenses, or both are planning cases, or both are code cases. Do not merge across lanes.
Read both records in full
Open each record by record number. Read the record header, timeline, documents, fees, conditions, inspections, messages and history. List the normalized parcel, normalized address, applicant fields and filed date for each record side by side and note the tier each pair meets.
Choose the survivor by submitted date and record number
Keep the record with the earliest submitted date as the survivor. Where submitted dates are the same, keep the record whose record number appears first in record number order on the staff list. Note the choice and both record numbers in the history entry on the survivor with user and time. A record number is assigned once at submission and is never reused, so the survivor keeps its record number and the other record number is never reassigned. Where the two records share one record number, the record with the earliest submitted date keeps that number and the duplicate keeps that same number in history as a retired entry. Do not renumber an issued record.
Keep every dated item on the survivor
Documents stay on the survivor with their current versions, earlier versions stay readable, and only the current version counts toward completeness. Comments, fees and fee lines, conditions, inspections and messages stay on the survivor. Where a field on the survivor is missing, write Unknown for that field and ask the town office for the source document. Do not copy a fee, date, code or contact from the duplicate record to fill the gap. Cancel a duplicate scheduled inspection with a reason where the survivor already has a scheduled inspection for the same type and window.
Close the duplicate with a logged reason and keep it readable
Add a history entry on the duplicate that quotes the survivor record number, the tier met, the filed date, the reason for keeping one record and the user and time. Change the duplicate status only to a status the town uses in Setup for that lane, such as withdrawn or closed where the town uses those statuses. Retiring or closing keeps the record readable on old work and stops new use only, and it does not delete history. There is no delete action in Setup for a workspace, as stated in Set up a permit type and fees.
Confirm the survivor in Messages and History
Write in Messages on the survivor the survivor record number, the duplicate record number kept as history, the tier met, the filed date and the exact next step. Open History on the survivor and read newest first. Confirm the assignment, handoff comment, document versions, fee entries and decision entries show user and time. Where an entry was corrected, follow the newer entry that points to the earlier one and read the reason recorded there, as stated on the security page.
| Step | Owner | Check before sign off | Where it shows after sign off |
|---|---|---|---|
| Compare and tier both records | Permit technician, or staff with a role for that record | Workspace names match, lane matches, normalized parcel, normalized address, applicant fields and filed date listed side by side | Tier and filed date noted in the history entry on the survivor with both record numbers |
| Choose survivor | Permit technician, with department head or assigned decision role where the lane requires it | Earliest submitted date checked, record number order checked where dates tie, duplicate record number retired and never reassigned | Survivor record keeps its record number, timeline and applicant next step on the same record |
| Close duplicate | Permit technician | Reason written on the duplicate record, survivor record number and filed date quoted, user and time recorded | Duplicate history entry, readable record, no new use for new applications |
| Confirm in history | Staff with a role for the survivor record | Assignment, versions, comments, fees and decision entries read newest first | History on the survivor, with timeline and next step updated on the same record |
- One record number for the surviving work, assigned once at submission and never reused, so documents, versions, comments and history cannot drift to a second tracker.
- Only one plan version is current at a time on the survivor. Earlier versions stay readable on that record.
- Internal notes stay separate from applicant messages and never appear in the portal. Public search shows only portal visible statuses and fields.
- Reassign a task only with a reason recorded on the record, so the change is logged with user and time.
What this page does not publish
This page does not publish a fee amount, a due day count, a code section or a town rule. Those items are set by your town and are shown on your record and invoice where a supplied field states them.
- Unknown: fee_items.amount_cents not in supplied context. Do not publish a fee amount without the town schedule document for that record.
- Unknown: workflow_tasks.due_at not in supplied context. Set due days in Setup, do not publish a day count without the town workflow document for that record.
- Unknown: licenses.expiration_date not in supplied context, where the license record does not state it.
- Unknown: conditions.due_date not in supplied context, where the record does not state a due date.
- Unknown: parcel identifier not in supplied context, where the record does not state a parcel. Do not guess a parcel from an address on another record.
- Unknown: applicant contact not in supplied context, where the record does not state the contact for that role. Do not complete a name, email or phone from another record or another workspace.
- Unknown: submitted date not in supplied context, where the record does not state when it moved from draft to submitted. Tier 1 to 3 cannot be met for that record until staff correct it.
Canonical permit facts - Permits and plan review - Reports and setup
Test the rules on a test record before you rely on them
Work through these steps in order on one clearly marked test record in the town workspace. Each step ends with what you should see when it worked.
Confirm the workspace and open the test record
Check the workspace name in the app and open one clearly marked test record, named TEST - SAMPLE as in Starter permit templates. You should see the fields on that record and the workspace name before you run a duplicate check.
Run each tier check in order
Search Text contains the parcel, then the address, one field only, with Status and Record type blank first. Confirm Text with the sample applicant name or email on My records returns a total of zero and do not treat that zero as proof of no duplicate. Open the Contacts list with Text contains the sample contact name, then open the candidate record found by parcel or address by record number and compare normalized applicant fields and filed date on the opened record. You should see the test record found where parcel, address, applicant and filed date all match on the opened record for Tier 1, a Tier 4 result where only one of parcel, address or applicant matches on opened records, and related work only where parcel, address and applicant match but the filed date differs.
Check the entry prevention steps
Walk the test record through Step 1, Step 2 and Step 5 of Apply for a permit online. You should see the check find the existing record before Start and at review, the page state in plain words that a second application for the same work is not started, and the existing record number shown where the key already exists.
Check the survivor choice and history
Create a second test draft with the same normalized parcel, address, applicant and filed date, then apply the merge rules above. You should see the earliest submitted date kept, both record numbers quoted in history, the duplicate kept readable with a logged reason, the duplicate record number retired and never reassigned, and no fee, date or code copied from the duplicate to fill a gap. Run Scan A and Scan B again and confirm zero groups.
Check invoice and partner where shared
Open the Finance staff web page at /finance/staff/e-invoices and check the invoice list for the test window. Confirm the invoice fields and categories shown in the invoice table on that page match the invoice lines on the test record in the same workspace.
Publish only after the test passes
Run the safe defaults health check in Set up a permit type and fees. You should see the test record stay private and not appear in public search. Route live work only after the test passes.
Bring your duplicate list to the demo
Tell us which parcel, address or applicant you want to check first, and we will run the tier search and the entry check on that record with you.