Record data quality audit, lifecycle status and date validation
Use this page to check permit and application records for missing required fields, inconsistent lifecycle status values, and invalid or out of order dates, then normalize a record without losing any user data. The record and the town document for that record govern where this page and a record differ.
How the audit was checked
Every public page and guide in pack app-permitdesk.site.1 was compared for required fields, lifecycle names, status values and date definitions. A finding was listed only where pages stated different names or gates for the same item, or where a field was named as unknown in supplied context.
- 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.
- Canonical precedence is the record and the town document for that record, then 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. Where a value is not in a supplied town field, write Unknown and name 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.
Finding 1, missing required fields
Work the list in order. Each item names the field to read on the record. Where the field is not on the record, keep the record at its current stage and name the missing field. Do not complete it from another record, another workspace, an example, a template, a document title or general practice.
| Check | Field to read on the record | Blocks item |
|---|---|---|
| Record identity | records.record_number, assigned once at submission and never reused, records.status, permit type, submitted date where submitted | Submission, until assigned |
| Location | At least one parcel or address from parcels, exact site picked from the search list | Filing, while none is present |
| Contacts | At least one contact, plus one contact for each role the type marks as required, with name, email and phone for each role | Filing, while a required contact is missing |
| Fields and custom fields | Every standard field and custom field the type marks as required, type_fields.label for each custom field | Filing, while a required field is blank |
| Documents | Required documents list on the chosen type, one received file per required item on the current version with document type and description | Filing, while an item shows as missing |
| Certification and verified email | Certification where the form asks, verified email where the form requires it | Filing, while either is missing |
| Fees shown | Fee lines and total from fee_schedules.name, fee_items.amount_cents and invoices.balance_cents on the invoice, schedule in effect on the submission date | Review step must be opened and fee lines shown before submission. Unknown: fee_items.amount_cents not in supplied context, where no town schedule states an amount |
| Issuance checks | Required reviews approved, conditions.due_date and condition status, prerequisites listed on the record, fees paid or waived, and for a trade permit licenses.expiration_date and license status | Issuance, unless the town marked the item as a filing item. Unknown: licenses.expiration_date not in supplied context, where the license record does not state it |
Finding 2, inconsistent lifecycle status values
Use one canonical order for a permit record. Map every name found on a page or a record to one row. Keep the original status value on the record history and read the canonical stage from the mapping. Do not overwrite the original.
| Canonical stage in order | Names mapped to this stage | Date field |
|---|---|---|
| 1. Pre-application, optional | Pre-application | Pre-application date where a pre-application record exists, otherwise no date shown |
| 2. Application submitted | Apply, Submission, Application submitted, Draft is not this stage | Submitted date, records.record_number |
| 3. Intake check | Intake check | Intake outcome, accept, return for corrections or move to review |
| 4. Plan review, including correction | Review, Plan review, Correction, Returned for correction, Re-review | Due date for the current workflow step, workflow_tasks.due_at, review cycle, current plan version |
| 5. Fees, conditions and issuance checks | Pay, Fees and issuance checks, Conditions | Balance due, conditions.due_date where stated |
| 6. Decision and issuance | Decide, Decision, Approval, Decision and issuance, Approved, Denied, Issued, Withdrawn, Closed where the town uses that status | Decision date, issued date where issued |
| 7. Inspections, where the type allows them | Inspect, Inspections, Requested, Scheduled, Rescheduled, Completed, Cancelled | Scheduled date and time window, result date per inspection |
| 8. Close and history | Close, Closeout, Close and history | Closed date, final documents filed with record number, parcel and type |
- Only one stage is current at a time. Earlier stages stay readable with their dates, and later stages show the step that will apply when the record reaches them.
- Terminal statuses for open work counts are approved, denied, withdrawn, expired and closed. Draft and returned for correction records are open work, never decided work. Issued counts as approved only for approval rate and median time to decision, with its decision date.
- A license in renewal pending is not shown as active, and a draft is never shown as submitted, issued or paid.
- Internal notes, phone, email and payment details never appear in public search. Public search shows only portal visible statuses and fields.
Finding 3, invalid or out of order dates
Dates are calendar dates in the town time zone. Day counts are calendar date differences. A period starts at 12:00 a.m. on the start date and ends before 12:00 a.m. on the day after the end date. Check each record in this order and keep the first failure named on the record.
| Check in order | Rule | If the check fails |
|---|---|---|
| Submitted before decision | Decision date is on or after submitted date for a decided permit | Unknown: decision date order not in supplied context for that record. Keep the record open, name both fields, and ask the town office. Do not swap the dates. |
| Submitted before issued | Issued date is on or after submitted date, and on or after decision date where a decision is recorded | Keep the record not issued, name the fields, and ask the town office. Do not use an issued date from another record. |
| Due date on the current step | workflow_tasks.due_at is the due date for the current step only. A past due date means overdue, a due date of today means due today, not overdue | Where no due date is on the record, show no date for that stage. Unknown: workflow_tasks.due_at not in supplied context |
| Closed after decision or issuance | Closed date is on or after decision date and, where issued, on or after issued date | Keep the record at its decision stage, name the fields, and ask the town office before close |
| License expiry | licenses.expiration_date is on or after the license issue date where both are on the license record. Expired means expiry date is before today | Where no expiry is on the record, read it as Unknown: licenses.expiration_date not in supplied context |
| Condition due date | conditions.due_date is on or after the decision date where the condition was recorded at decision | Where no due date is on the record, the timeline shows no date for that condition. A condition stays until met or waived |
| Hearing notice before held | Hearing notice date is on or before hearings.hearing_date, and a hearing notice date is required before a hearing can be marked held | Keep the hearing not held, name the fields, and ask the town office |
| Inspection scheduled and resulted | Result date is on or after the scheduled date for that inspection | Keep the inspection scheduled, name the fields, and ask the town office. Do not reschedule a completed or cancelled inspection |
Finding 4, placeholder, null and incomplete values in required fields
Seeded and example data are stated in Starter permit templates, Starter seed and First-run defaults. The tables below inventory every placeholder form stated there for applicant name, address, jurisdiction and filing date, plus a blank or null value in the same fields. A placeholder is a value that is not real work for a town. A null or blank value is a field with no value at all. Both are incomplete for a required field, but they are cleaned up in different ways.
| Required field | Placeholder or incomplete form stated in the pack | Where it appears | Usable for live work |
|---|---|---|---|
| Applicant name and contact by role | SAMPLE Applicant, SAMPLE for training in a type name, blank name, null name, or a name with no email and phone for a required role | Starter sample data tables and the test record named TEST - SAMPLE. A contact with no name, email and phone does not meet the contact check in Finding 1. | No. A SAMPLE name is a training label, not a person. A blank or null name is incomplete. Keep the record flagged and private until a real contact by role is entered on that record. |
| Address, parcel or site | SAMPLE Parcel, a parcel or address that was not picked from the search list, blank parcel or address, or null parcel or address | Starter sample data tables. Finding 1 requires at least one parcel or address picked from the search list. | No. A SAMPLE parcel is not a site for live work. A blank or null address is incomplete. Flag the record, do not guess a parcel from an address on another record. |
| Jurisdiction and workspace | No town workspace selected, a workspace name that is not the town workspace, a state abbreviation or county name used in place of the canonical town name, or a blank jurisdiction field. Canonical names are Brooklyn Park, Minnesota, Moultonborough, New Hampshire and O'Fallon, Missouri, as stated on About and Canonical permit facts. | Setup and record header checks on Security and in Set up a permit type and fees. No other jurisdiction is named in the site pack. | No. Work in the wrong workspace belongs to another town and must not be merged or copied. Where no jurisdiction field is on the record, write Unknown for that field and ask the town office for the town document. Do not add a town from another record. |
| Filing date, submitted date | No submitted date on a record shown as submitted, a blank or null submitted date, a submitted date before the record was created, or a date copied from another record. A draft has no filing date by design. | Record header and timeline on Permits and plan review and in Apply for a permit online. A record number is assigned once at submission, so a record with no submitted date and no record number is not a submitted record. | No, as a submitted record. A draft with no filing date stays a draft, is never counted as submitted and never creates a fee. A record shown as submitted with a blank or null filing date is flagged and kept open until staff correct the date on that record with a logged reason. |
| Type name, fee and due date in seeded data | SAMPLE for training - Building permit, SAMPLE - Building permit as an alias, SAMPLE - Starter schedule with no amount, Unknown: fee_items.amount_cents not in supplied context, Unknown: workflow_tasks.due_at not in supplied context | Starter templates, starter seed and first-run defaults. The seed type is a disabled draft and the test record stays private. | No, for live fees or timelines. A SAMPLE type and a TEST - SAMPLE record are for training and testing only. They must not be submitted as live applications and must not appear in public search. |
- Search staff lists with Text contains SAMPLE to find sample types, sample records and test records in the signed in workspace, as stated in Starter permit templates and Starter seed. Text contains SAMPLE on a staff list is a signed in check only. Public search must return no sample or test record.
- A placeholder value must never be read as a real name, address, town or date, even where the rest of the record looks complete. Check applicant name, address, jurisdiction and filing date on every record, not only on sample records.
- Where two supplied fields conflict, or a placeholder and a real value appear on the same record, write Unknown, name both field names and the conflict, and do not silently pick one value, as in When a draft cannot be made.
Completeness rules, usable, flagged and retired
Apply these rules in order to each record. Usable means the record can move to the next stage. Flagged means real work that is incomplete and stays on the record until the owner fixes it. Retired means sample or test work that must stop being used for new live work. Retiring never deletes history.
| Field | Usable rule | Flagged rule | Retired rule |
|---|---|---|---|
| Applicant name and contact by role | A full name, email and phone for each required role, entered on that record, with no SAMPLE, TEST, blank or null value | Real work with a blank, null or partial contact. Flag the record, name the missing role field, return it to the step that owns it, and block filing while a required contact is missing | TEST - SAMPLE and SAMPLE Applicant records with no real contact. Keep private, do not submit as live work, and retire the sample type when the town is ready, as in the cleanup plan below |
| Address, parcel or site | At least one parcel or address picked from the search list, with zoning and owner details read from town parcel data where shown | Real work with a blank or null address, or an address not picked from the list. Flag the record, name the field, and block filing while no parcel or address is present | SAMPLE Parcel only. Replace it with a real parcel picked from the list before any live use, or retire the sample record and keep it readable on old work only |
| Jurisdiction and workspace | The workspace name shown in the app is the town workspace, and the record belongs to that workspace | Real work in the correct town workspace with a blank jurisdiction field. Write Unknown for that field, name the town document needed, and keep the record in that workspace | Work in another workspace or under a non canonical town name. Stop work on that record, note the workspace name and record number, and contact a town administrator. Do not merge, copy or retire a live record from another workspace |
| Filing date, submitted date | A submitted record has a submitted date and a record number, assigned once at submission and never reused, in town time zone date order as in Finding 3 | A real draft with no filing date stays a draft. A real record shown as submitted with a blank or null filing date is flagged, kept open, and corrected on that record with a logged reason | A sample or test record with a filing date entered only to test the workflow. Do not count it as a submitted live record, keep it private, and do not use its date for a live record |
| Type, fee and due date | A published type with town fields, documents, fee schedule and workflow steps set from town documents, with amounts and due days only where a town document states them | A real draft with Unknown: fee_items.amount_cents not in supplied context or Unknown: workflow_tasks.due_at not in supplied context. Flag the item, show Unknown, and block publish until the town office supplies the document | A SAMPLE type. Retire the SAMPLE type in Setup in one action. Retiring stops new use and removes the type from the portal catalog for new applications, and keeps old records readable |
Cleanup plan in order, flag real work and retire sample work
Work these steps in order in the town workspace. Each step ends with what you should see when it worked. Cleanup never deletes a workspace, never deletes history, and never deletes a submitted real record to make a list look clean.
Scan for placeholder values first
On staff lists, search Text contains SAMPLE, then open each sample type and each TEST - SAMPLE record. Note the type name, record number where assigned, applicant name, address, workspace name and filing date on each row. Done when every sample type and test record in the workspace is listed, with no sample record shown in public search.
Scan for blank and null required fields
Open My work, My records and Drafts to finish in the same workspace. For each record, check applicant name and contact by role, at least one parcel or address, workspace name and, for a submitted record, submitted date and record number. Done when each blank or null field is named by its exact field, with the record number where one exists.
Flag real incomplete work and return it to its owner
Where the work is real and a required field is blank, null, partial or in conflict, flag the record on that record, name the missing field, and return it to the step that owns it with a reason. The change is logged with user and time, and the applicant next step is updated on the same record. Done when the record shows Unknown for the missing field and the owner can see what to fix, with no value copied from another record.
Retire sample types in one action
Where a SAMPLE type was copied only for testing, open Setup, open that one SAMPLE type, choose Retire and confirm. Retiring stops new use and removes the type from the portal catalog for new applications. Check the portal catalog, search public search with Text contains SAMPLE, and use Text contains SAMPLE on staff lists to find any remaining sample records. Done when no SAMPLE type is offered for new applications and no test record appears in public search. See Starter seed and Set up a permit type and fees.
Keep submitted history readable and close only with a reason
Retiring a type, fee or template keeps it readable on old records and stops new use only. Where a duplicate or sample record was submitted in error, change its status only to a status the town uses in Setup for that lane, with a history entry that quotes the survivor or sample record number, the rule met, the reason and the user and time. Done when the record stays readable, history is intact, and no new fee or workflow starts from it.
Recheck the counts after cleanup
Repeat the Text contains SAMPLE scan and the blank field scan. Confirm the sample count is zero for new applications, the flagged count matches the records returned to owners, and public search still shows no draft and no test record. Done when the card and the list show the same records with the same filters, as in Reports and setup.
Normalization with no loss of user data
Work these steps in order on one record. Each step ends with what you should see when it worked.
Keep the original value
Read the original status, dates and field values from the record and history first. Never delete, overwrite or retype a user entry to make a check pass. A correction creates a new history entry that points to the entry corrected, with reason, editor, user and time.
Add the canonical value beside the original
Write the canonical stage from the mapping table in Finding 2 beside the original status, with the mapping name and the date the mapping was applied. The original stays readable on the record and in history.
Mark a missing field Unknown and stop that stage
Where a required field in Finding 1 is not on the record, write Unknown: field not in supplied context for that field, name the source field or town document needed, and keep the record at its current stage. Do not estimate a fee, do not average a timeline and do not paraphrase a rule from memory.
Keep a record already submitted on its starting version
Changing a type, field, fee schedule or workflow in Setup applies to new records only. A record already submitted keeps the version it started with. Normalize the display mapping only, never rewrite fee lines, steps or documents on a submitted record.
Reassign or return work with a reason
Where a check fails, reassign the task or return the record to the step that owns the missing or out of order field, with a reason on the record. The change is logged with user and time and the applicant next step is updated on the same record.
Check the record, not a queue row alone
Open the record, read the header for type, status, parcel, applicant and next step, read the timeline in canonical order, then read History newest first and match stage, date and user or time. Where the timeline and history disagree, the history entry is the one to ask staff about, with the record number and stage name.
Test the checks before you publish
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.
Leave one required field missing
Remove one parcel, one required contact and one required document on the test record. You should see filing blocked, each missing item named by step and group, and no submitted record number.
Set a status name from a summary page
Set the test record status to Apply or Review. You should see the canonical stage Application submitted or Plan review beside the original value, with the original kept in history.
Set a decision date before the submitted date
Set decision date before submitted date on the test record. You should see Unknown for the date order, both field names named, and the record held at intake, not decided.
Leave applicant name, address and filing date as placeholders
Set the test record applicant to SAMPLE Applicant, the parcel to SAMPLE Parcel, and remove the submitted date on a record shown as submitted. You should see each field flagged by name, Unknown where a real value is missing, filing blocked, no record number counted as submitted, and the test record kept private.
Run the cleanup scan and retire the sample type
Search staff lists with Text contains SAMPLE, list every sample type and test record, then retire the SAMPLE type in Setup. You should see no SAMPLE type offered for new applications, the retired type readable on old records only, and no test record in public search.
Check the private and public views
Search public search with the test record number. You should see no draft and no test record in public search, only portal visible fields for a public record.
Publish only after the test passes
Run the safe defaults health check in the setup guide, then publish only after the test passes. See Set up a permit type and fees.
Permits and plan review · Apply for a permit online · Reports and setup · Security
Check the record before you rely on a summary
Open the record, read its type, status, fees, due dates and next step, and ask the town office for the town document where a field is Unknown.