Guides · Data quality

Check that every document, comment and task still has a parent record

Use this page to find child rows whose parent application, project or case is missing, closed to the workspace, or in another workspace, and to retire them safely while keeping history readable. Work the checks in order, in the selected town workspace only, and record each result with the record number and the history entry.

How this check was made

Every page in pack app-permitdesk.site.1 was compared for linkage between a parent record and its child rows. A report, a list or a guide counted as coverage only where it states the parent record number, the child type and what happens when the parent is missing or closed. Mentions of history alone did not count as a linkage check.

  • Scope is workspace records only. Workspace is fixed to the signed in workspace, or to this town on public search. There is no workspace picker and no way to list another workspace by typing its name.
  • No fee amount, day count, code section or town rule is added by this page. Where a field is not on the record, this page writes Unknown and names the field the town office must supply.
  • A draft is never counted as submitted, never creates a fee and does not appear in public search. The test record stays private in the same way.
  • Canonical precedence is the record and the town document for that record, then this page, then summary pages such as home and features.

Child rows covered by this check

Each row is one child type that points at a parent record. The check is the same for each row. A child row that fails the check is not live work until staff confirm the parent on the same record.

Child row types and the parent field to read
Child rowParent field on the child rowParent record to open
Document and attachment, including file name, date, version and received statusRecord number on the document row, read from the Documents tab on that recordThe record by record number in the selected workspace, then the Documents tab and the received list
Review comment and correction letter row, including discipline, sheet, location, status and sign-offRecord number and review cycle on the comment, and the consolidated letter for that cycleThe record by record number, then Review and Documents, and the one consolidated letter per cycle
Workflow task, review task and assignment, including owner role, due date and assigneeRecord number on the task, current workflow step and due date for that stepThe record by record number, then the Workflow tab, and My work for that role
Message and handoff comment in MessagesRecord number and thread on the same recordThe record by record number, then Messages in the same thread on that record
Fee, invoice, payment, credit, refund and waiver lineRecord number and invoice number on the fee line, and the original payment where a credit appliesThe record by record number, then the Fees tab and invoice, with total and balance due
Inspection request, scheduled window, result and reinspectionRecord number and inspection type on the inspection, with scheduled date and windowThe record by record number, then the Inspections section and the daily view
Condition, license, case, hearing and code violation row tied to a permit or caseRecord number or case number on the row, with condition due date, license expiry date or hearing date where the record states itThe record or case by number, then Conditions, Licenses or the case record and History

Five integrity checks in order

Work the checks in order on one list at a time. Each check ends with what you should see when it worked. A child row that fails a check stops at that check and is not counted as live work.

  1. 1. Confirm the workspace and your role

    Sign in with MAJIC in the town workspace, check the workspace name in the app, and confirm the name, email and role shown on your account. Open My work, My records or a staff queue in that workspace. Done when the workspace name matches the town workspace and the queue shows only work for that role.

  2. 2. Open the parent record by record number

    From the queue row or the document, comment or task row, open the parent record by record number. Read the header for type, status, parcel, applicant and next step, and read the timeline for the current stage. Done when the record number on the child row and the record number at the top of the parent record match word for word.

  3. 3. Check that the parent is in the same workspace and the same lane

    Confirm both records show the same workspace name and the same lane, permit, license, planning case or code case. Done when the parent record opens in the selected town workspace and the child row and the parent record name the same lane. Where the parent does not open, stop and apply the orphan rule in the next section.

  4. 4. Check child rows against the parent tabs

    On the parent record, open Documents, Review, Workflow, Fees, Inspections, Messages and History in that order. Match each child row to its tab, version, invoice, inspection window or thread on the same record. Done when each child row is found on the same record with its current version, its sign-off status or its invoice where the tab states it.

  5. 5. Check history against the timeline on the same record

    Open History on the parent record and read newest first. Match stage, date and user or time to the timeline. Done when the history and the timeline agree, or the mismatch is noted with the record number and stage name for staff. Where the timeline and the history disagree, the history entry is the one to ask staff about.

Orphan rule, missing or deleted parent, and cross-workspace rule

Use these rules where a check fails. The rules apply in the same way to every child type in the table above.

Orphan and cross-workspace rules
CaseWhat the screen showsWhat to do
Parent record number is not found in the selected workspaceUnknown: parent record not in supplied context for that child row. The child row is not live work.Stop work on that child row. Note the record number, the child type and the exact message on the screen, and contact a town administrator with the workspace name and record number. Do not start a second application and do not upload to a different record.
Parent record belongs to another workspacePlain message that the record belongs to another workspace, with no record fields from that workspace shown.Stop work on that child row, note the workspace name, record number and step, and contact a town administrator before you edit or move work. Do not correct the workspace by typing its name in Text.
Parent record is closed, withdrawn, expired or deniedParent status and closed date where the record states them, with earlier stages readable and no new action accepted.Keep the child row readable as history. Do not use the child row for a new action, a new version, a new payment or a new inspection on that closed parent.
Child row has no parent field on the rowUnknown: parent field not in supplied context. The row has no record number to open.Ask staff to check the row on the parent record where the field should sit, and record the answer in setup notes with the child type and the exact field name needed.
Child row appears on a list but the parent tab does not show itTotal count and rows on the list, with the parent tab not showing the row.Reopen the parent by record number, refresh the list, and check the tab again before you act. Do not pay a fee, upload a file or request an inspection on the basis of the earlier list.

Soft-delete retention rule for a retired parent and its child rows

Use this rule where a parent record or a child row must stop being used. The rule keeps history readable and stops new use only. It does not delete a workspace, a record or a history entry.

Soft-delete retention rule
ItemRuleWhat stays readable
Retire a type, fee, template or child row that must stop being usedChoose Retire in the screen that owns the item and confirm. Retiring stops new use, removes the item from the portal catalog for new applications, and keeps old records readable.The record header, timeline, documents, fees, inspections, messages and history on the parent record, read newest first, with the retire entry and its user and time.
Close a duplicate parent after a mergeKeep the survivor by earliest submitted date, or by record number order where dates tie. Close the duplicate only to a status the town uses in Setup for that lane, with a history entry that quotes the survivor record number, the rule met, the reason and the user and time.Both record numbers, the merged child rows kept on the survivor, and the closed duplicate readable as history. The duplicate record number is never reassigned.
Keep a child row whose parent is retired or closedKeep the child row on the parent record as history. Do not create a new version, a new fee line, a new inspection or a new comment on that closed parent.File name, date, version, comment status, task owner and due date as they were on the parent record at close.
End of contractRequest a full export of records and documents, check the counts by type against the cover list, download the package, keep it with the town records, then ask for written confirmation that town data has been deleted.The exported files and the written deletion confirmation with the contract file, as in the data ownership steps on the security page.
  • Retiring keeps the item readable on old records and stops new use only. It does not delete history, and it does not rewrite fees, steps, documents or status on a record already submitted.
  • There is no delete action in Setup for a workspace. At the end of the contract, use the export and written confirmation steps above, as on the security page.
  • Every retire, close, merge and correction is logged with user and time on the record it changes. A correction creates a new history entry that points to the entry corrected, with reason and editor.

Test the checks 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 and open one test record named TEST - SAMPLE. You should see the fields on that record and the workspace name before you run a linkage check.

  2. Upload a document, add a comment and assign a task on the test record

    Upload one file with a description, add one review comment and assign one workflow task on that same record. You should see each child row show the same record number as the parent header.

  3. Retire a test child row and confirm it stays readable

    Retire the test document or task in the screen that owns it. You should see the row removed from new use, the parent record still readable, and the retire entry in History with user and time.

  4. Open a child row with no parent and confirm Unknown

    Search for a record number that does not exist in the selected workspace. You should see Unknown for the parent, no record fields from another workspace, and a note to contact a town administrator with the workspace name and record number.

  5. Publish only after the test passes

    Run the safe defaults health check in the setup guide, then publish only after the test passes. Drafts and the test record stay private and do not appear in public search.

Duplicate record prevention · Record data quality · Permits and plan review · Security

Bring your child row list to the demo

Tell us which document, comment or task you want to check first, and we will run the linkage check and the soft-delete rule 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, a hearing date or a license status. Those items are set by your town and are shown on your record and invoice where a supplied field states them.

  • Unknown: parent field not in supplied context, where the child row does not state a record number.
  • 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.