Guides · Data quality

Duplicate audit and deduplicated merge plan

Use this page to audit duplicate permit applications that share the same normalized address, parcel identifier and applicant email, to merge duplicates into one record with full history, and to apply uniqueness rules that prevent a second application for the same work.

This page adds one audit key that joins normalized property address, applicant full name and submitted calendar date, so a same day resubmission is counted apart from later work by the same applicant at the same address.

Audit result in the site pack

Every public page and guide in pack app-permitdesk.site.1 was compared for duplicate rules, normalization, survivor choice and prevention at entry. The site pack contains no application records and no database extract, so this audit is of the rules stated in the pages, not of live records. Where a live record field is needed, write Unknown for that field and name the field the town office must supply.

  • Canonical precedence in order: the record and the town document for that record, then Duplicate record prevention and this page, then summary pages such as home and features.
  • No fee amount, day count, code section or town rule is added by this page. A draft is never counted as submitted, never creates a fee and does not appear in public search. A test record stays private in the same way.
  • Scope is workspace records only. A check never mixes records from another town or workspace, and the signed in role check applies on every run.
Rule duplicates found in the site pack and the risk each one leaves
Source in packWhat it statesDuplication risk
Duplicate record preventionTiers 1 to 4, normalization in general words, survivor by earliest submitted date, merge stepsNormalization for parcel separators and address punctuation can be read differently by two towns, so the same pair can be Tier 1 in one workspace and not a match in another
Apply for a permit online, Steps 1, 2 and 5Manual My records checks before Start, at location and at review before submit onceNo tier names and no normalized whole field comparison, so a partial Text search can pass while a Tier 1 whole field match exists
Canonical permit types, jurisdictions and answersMerge a duplicate SAMPLE type by retiring one type, keep one canonical typeStates a type merge, not an application merge, and can be read as permission to retire a live application or type
Search a public record, Text containsPartial match in any case, one field only, multi word address in same order togetherIf a partial Text match is used as a tier match, a partial parcel or address can create a false Tier 1 or miss a whole field match
Upload plans and documents, Pay a fee, Request an inspection, Renew a licenseDo not start a second application, use a new version on the same record, use a linked renewal record, use reschedule on the same inspectionConsistent in direction, but no shared uniqueness key is stated across these guides, so a duplicate can be created in one lane and not seen in another

Result: no live duplicate can be confirmed from the site pack alone. The risk is rule drift. The rest of this page states one normalization, one uniqueness set and one merge plan. Other pages link to this page and to Duplicate record prevention instead of restating tiers in other words.

Count of affected records: Unknown: live duplicate count not in supplied site pack. Run audit key AD1 in one workspace and record the counts in the table in the audit key section below. Do not publish a count from another workspace, and do not use a count from a test record as a live count.

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.

Deterministic normalization for parcel, address, email and name
FieldSteps in orderWhole field match meansNever used to meet a tier
Parcel identifier from parcelsTrim leading and trailing spaces. Change letters to upper case. Replace hyphen, slash, underscore and period where they appear between alphanumeric characters with a single space. Collapse multiple spaces to a single space. Compare the whole identifier. Where a record has more than one parcel, create one key per parcel and compare any pair, do not pick the first parcel only.The normalized whole parcel identifier on both records is the sameA 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 printedTrim leading and trailing spaces. Change letters to upper case. Collapse multiple spaces to a single space. Remove comma and period where they appear between words on both records. Keep street number, street name and unit where shown in the same order and together as printed. Compare the whole address.The normalized street number, street name and unit where shown are the same on both recordsWords in a different order, a unit on one record and missing on the other, or a similar street name
Applicant emailTrim leading and trailing spaces. Change the entire address to lower case including the domain. Compare the whole address.The lower case email is the same on both recordsA phone fragment, a company name alone, a plus suffix stripped from the address, or an email on a different record used as the contact for this record
Applicant full nameTrim leading and trailing spaces. Collapse multiple spaces to a single space. Compare in any case as a whole name. Read the name from the applicant contact by role on the same record.The whole normalized name is the same on both recordsA short name, a reversed name order or a similar name. Name alone never meets Tier 1 where an email is on the record.
Submitted dateRead the submitted date as a calendar date in the town time zone. Compare the whole calendar date only and ignore the time of day. Use the submitted date on the record, not a draft save date and not a date from another record.The submitted calendar date is the same on both recordsA time of day, a draft date, an issued date, or a date copied from another record or another workspace
Record type laneUse 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 laneA permit type value on a case list, or a case type value on a permit list

These steps clarify the general wording in Duplicate record prevention. They add no new field. A tier that needs a field cannot be met until the town office supplies the source field or document for that record.

Uniqueness rules to prevent future duplicates

Work the rules in order. U1 blocks a second submission. U2 and U3 need confirmation before submission. U4 informs only and never blocks or merges on its own.

Uniqueness rules U1 to U6
RuleWhen it appliesWhat happens
U1, hard block, exact duplicateSame workspace, same lane, same normalized parcel and same normalized address and same normalized email on a submitted record that is not draft, withdrawn or closedBlock the second submission. Show the existing record number. Direct the person to open that record. Do not assign a new record number and do not start a workflow.
U2, staff confirmation, parcel and applicantSame normalized parcel and same normalized email or full name in the same lane. Address differs or unit is missing or inconsistent.Do not submit a second application. Open the existing record, confirm the address on that record, and ask staff to correct the address with a logged reason where needed.
U3, staff confirmation, address and applicantSame normalized address and same normalized email or full name in the same lane. Parcel differs, is missing or is inconsistent.Do not submit a second application. 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.
U4, review only, single fieldSame normalized parcel alone, same normalized address alone, or same applicant alone, in the same laneShow the related records side by side from the record header and timeline. Ask staff to decide whether the work is the same. Do not block on U4 alone and do not merge on U4 alone.
U5, one record numberEvery submitted recordA record number is assigned once at submission and is never reused. The survivor keeps its record number. The duplicate record number is never reassigned. A draft is never counted as submitted, never creates a fee and does not appear in public search.
U6, child uniquenessDocuments, inspections, fees and renewals on a recordOne current document version per required item, one inspection per type and time window, one fee invoice per record, one linked renewal record per license. A second item for the same type, window or invoice is a duplicate under U1 to U3. Use a new version, reschedule, reinspection or renewal on the existing record.
  • Within Text, a partial entry finds a candidate. Tiers and rules above compare the whole normalized field after that search finds a candidate.
  • Combining filters narrows a list, it never widens it. Leave Status and Record type blank first to screen for any possible duplicate before you narrow.
  • Where two records meet different rules, work the lowest rule number first, then the earliest submitted date, as in the merge plan below.

Audit key AD1: normalized address, applicant name and submission date

Work this audit key in one workspace before you merge. AD1 counts same day duplicates. AD2 keeps later work by the same applicant at the same address apart from AD1, so later work is not merged on address and name alone.

Audit keys AD1, AD2 and AD3
KeyWhat must match exactlyAction
AD1, same day duplicate candidateSame workspace, same lane, same normalized property address, same normalized applicant full name and same submitted calendar date, on submitted records that are not draft, withdrawn or closedCount the group. Staff read both records and confirm the same work, then merge under the merge plan below. Where the parcel differs materially, complete U3 first and do not merge on AD1 alone.
AD2, related work, different dateSame normalized property address and same normalized applicant full name in the same lane, with a different submitted calendar dateReview only. Count separately from AD1. Do not merge on AD2 alone. Show the records side by side and ask staff to decide whether the work is the same.
AD3, missing fieldProperty address, applicant full name or submitted date is not on the recordExclude the record from the AD1 count. Count it separately for each missing field. Write Unknown: field not in supplied context for that field and name the source field or document needed.

Count of affected records, AD1

Count to record for one workspace, AD1
CountFormula
Submitted records scannedDistinct record numbers with a submitted status in the workspace, drafts excluded, one per record number.
Records with all three fields presentScanned records where normalized property address, applicant full name and submitted calendar date are all on the record.
Records missing a fieldScanned records missing address, missing name or missing submitted date, counted separately for each missing field. A record missing more than one field counts in each missing row.
AD1 groupsDistinct normalized address, plus normalized name, plus submitted date keys with more than one submitted record in the same lane.
Records in AD1 groupsSum of the record counts in every AD1 group. A record with more than one parcel counts once per group where the key uses that parcel, and one record number counts once in the workspace total.
Records to close if each AD1 group is merged to one survivorRecords in AD1 groups, minus AD1 groups. Each group keeps one survivor.
AD2 related recordsSubmitted records with the same normalized address and name as another submitted record in the same lane and a different submitted date. Review only, not merged on AD2 alone.
  • Reproduction check: AD1 groups plus single record keys equals records with all three fields present, where a single record key is a key with one record. Records in AD1 groups equals the sum of the group sizes in the drill down list.
  • Live count: Unknown: live AD1 count not in supplied site pack. Record the counts above with the workspace name, the scan date and the drill down list in setup notes for that workspace.
  • Survivor for an AD1 group: submitted dates tie by definition, so keep the record whose record number appears first in record number order on the staff list, as in the merge plan below. Note both record numbers in history with user and time.

Deduplicated merge plan in order

Use these steps only where both records are submitted, are in the same town workspace and are in the same record type lane, and meet U1 to U3 after normalization. A pair that meets U4 alone is not merged.

  1. Scan in tier order and list groups

    Search Text contains the parcel, then the address, then the applicant email or full name, with Status and Record type blank first. Compare whole normalized fields, including submitted calendar date for AD1. List each AD1 group first, then other Tier 1 groups, sorted by earliest submitted date. Enter each group in the merge plan table below, with the count of affected records for that group.

  2. Confirm workspace and lane, then read both records

    Read the workspace name and confirm both records belong to the selected town workspace. Confirm both records are permits, or both are licenses, or both are planning cases, or both are code cases. Open each record by record number. Read the header, timeline, documents, fees, conditions, inspections, messages and history. List the normalized parcel, normalized address and applicant fields for each record side by side and note the rule each pair meets.

  3. Choose the survivor

    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.

  4. Keep child items on the survivor without copying values

    Documents stay on the survivor with current versions, earlier versions stay readable, and only the current version counts toward completeness. Fees stay on the survivor invoice only. Do not copy a fee line, date, code or contact from the duplicate record to fill a gap 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. Inspections stay on the survivor. Cancel a duplicate scheduled inspection with a reason. Comments and messages stay in the survivor thread and quote the duplicate record number. Conditions stay on the survivor.

  5. 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 rule met, 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. Keep the duplicate readable on old work and stop new use only. Do not delete history and do not delete a workspace.

  6. Confirm in Messages and History, then re scan

    Write in Messages on the survivor the survivor record number, the duplicate record number kept as history, the rule met and the exact next step. Open History on the survivor and read newest first. Confirm assignment, versions, comments, fees and decision entries show user and time. Run the Tier 1 scan again and confirm zero groups. Confirm My records shows the survivor once and public search shows no draft and no test record.

Merge plan table to complete for each group

Fields to complete for one duplicate group
FieldWhat to enter
Group and ruleGroup number and rule met, AD1, U1, U2, U3 or U4, with the normalized parcel, normalized address, normalized applicant name and submitted calendar date listed side by side for each record
SurvivorSurvivor record number, submitted date, and reason for the choice, earliest submitted date or record number order where dates tie
Duplicate record or recordsEach duplicate record number, submitted date, and where it sits after merge, closed or withdrawn with history entry and user and time
Merged child itemsDocuments kept on survivor with current version, fee invoice kept on survivor with no fee copied from the duplicate, inspections kept on survivor with duplicate scheduled inspection cancelled where applicable, comments and messages kept in survivor thread
Missing fieldsUnknown: field not in supplied context for each field not on the survivor, with the source field or town document needed. Do not fill a gap from the duplicate record.
VerifiedDate the Tier 1 re scan was run, total count of distinct record numbers in the re scan, and confirmation that My records shows the survivor once

Prevention at entry in order

Use the same checks for every new filing. Each check uses the lists the person can already open, in the same workspace.

  1. 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, then the applicant email or full name. Add Status and Record type to narrow only after the first search. Where U1 to U3 is found, open that record and do not choose Start for the same work. See Apply for a permit online at Step 1.

  2. 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 U1 to U3 with an existing record, stop and open that record instead of continuing.

  3. 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 for the same parcel, address and applicant. Check AD1 against records submitted on the same calendar date with the same normalized address and applicant name. Where U1 or AD1 is found, do not submit a second application and show the existing record number. Where U2 or U3 is found, confirm the differing field on the existing record before you submit. Where no U1 to U3 and no AD1 is found, 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.

  4. 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.

  5. 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.

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.

  1. 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.

  2. Run each rule search in order

    Search Text contains the parcel, then the address, then the applicant email or name, with Status and Record type blank first. You should see the test record found by U1 when parcel, address and applicant all match after normalization, and found by U4 where only one field matches.

  3. Create a second draft with the same normalized values

    Enter the same parcel, address and email differing only in case, spacing and punctuation between words. You should see U1 found, the second submission blocked, and the existing record number shown. Change the email to a different address and confirm U1 is not met.

  4. Run AD1 with the same address, name and submitted date

    Create a second test record with the same normalized property address and applicant full name and the same submitted calendar date, differing only in case and spacing. You should see one AD1 group, two records in the group, and one record to close if the group is merged. Change the submitted date to a different calendar date and confirm the pair moves to AD2, review only, with no merge on AD2 alone. Clear the applicant name and confirm the record moves to the AD3 missing name count.

  5. Check the survivor choice and history

    Submit two test records that meet U1, then apply the merge plan above. You should see the earliest submitted date kept, both record numbers quoted in history, the duplicate kept readable with a logged reason, and no fee, date or code copied from the duplicate to fill a gap. A repeat Tier 1 scan should show zero groups.

  6. 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.

Duplicate record prevention · Apply for a permit online · Canonical permit types, jurisdictions and answers · Reports and setup · Security

Bring your duplicate list to the demo

Tell us which parcel, address or applicant you want to check first, and we will run the rule search and the entry check on that record with you.

Request a demo

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 a submitted date. Do not use a draft date or a date from another record for AD1.
  • Unknown: live AD1 count not in supplied site pack. Record the AD1 counts in setup notes for the workspace where the scan was run, with the scan date and the drill down list.