ZT-602 · Inspection stuck in Pending Review or Correction Work

Status Done
Ticket ZT-602 (assigned to Michael Lowry, 1 point, parent ZT-358)
Requested by Michael Lowry (follow-up to ZT-531, 2026-11-12)
Made by Michael Lowry (Albatross audit data, user 1191), who also asked for it
Date made 2026-11-12, 22:46–22:52 UTC
Sections affected 09 · Inspection & energization (Inspection), 12 · R&R and roofing (R&R Inspection)
Project types Residential; R&R for the R&R Inspection step

Request

ZT-531 deliberately left Inspection alone. On 2026-11-12, 15 live Inspection blocks sat in Pending Review or Correction Work (no work queue) with their Correction Work closed or never created. Find out why and fix it, or clean them up.

Review

Checked against production (Phoenix) on 2026-11-12.

How the status works

Why the 15 are stuck

Group Projects Cause What to do
ESC Not Needed 26334 The ESC rule needs ESC Complete. An ESC block at Not Needed fails it (no ESC block at all passes). So the auto can never fire. Its Correction Work completed today. Rule fix (below), then press Corrections Not Needed or wait for the next save.
Reset didn't fire 21300, 25804, 26707, 27777 On 26707 (10-08) and 27777 (10-06), Inspection Failed or Partial Pass put Inspection into review. Because an older Correction Work was already Complete, the auto fired in the same save and moved it to Ready to Schedule Re-Inspection, skipping the review. A second later the user pressed Send to Correction Work, which put it back and reset the auto. When the new Correction Work completed (11-04, 11-11), the reset auto didn't fire. That's the same delayed-reset behavior found in ZT-531 and raised with Red Oak. 21300 and 25804 look the same. Press Corrections Not Needed: the corrections are done. Going forward, this depends on Red Oak's answer.
Waiting on ESC 4478 ESC at Pending Meter Spot since May, which has no queue. The Inspection auto is right to wait. Belongs to the "statuses with no queue" work; ESC owner to follow up.
Failed, no Correction Work 7143, 21287 Inspection failed (03-03, 04-29), but nobody pressed Send to Correction Work or Corrections Not Needed. 21287's project is at Installation Prep with ESC Pending ESC Completion. Inspection team decides on each.
On hold 308 (On Hold); 1815, 6281, 19311, 20065, 22170, 24596 (Legal Hold) Spark imports parked since Feb–Apr. The projects are on hold, so being out of queues is expected. No action until the hold lifts.

Other checks

Admin checklist

  1. On Inspection › Correction Work Complete (auto), replace (Process Block: Electrical Service Change) System Data: Process Block Object Status EQUAL ESC Complete (Fail if none exist = false) with (Process Block: Electrical Service Change) System Data: Process Block Object Status IN Canceled, ESC Complete, Not Needed (Fail if none exist = false). Leave the rest of the condition, the flags and the action as they are.
  2. On R&R Inspection › Correction Work Complete (auto), make the same replacement.
  3. Test: on 26334, save anything on the project (or wait a day). Inspection should move to Ready to Schedule Re-Inspection. If it doesn't, press Corrections Not Needed.

Clean-up (Inspection team, by hand) 4. [ ] 21300, 25804, 26707, 27777: press Corrections Not Needed (their corrections are done). 5. [ ] 7143, 21287: review the failed inspection; press Send to Correction Work or Corrections Not Needed. 6. [ ] 4478: pass to the ESC owner (ESC stuck at Pending Meter Spot). 7. [ ] On-hold projects (308, 1815, 6281, 19311, 20065, 22170, 24596): no action.

New SOP

Rollback

  1. On both Correction Work Complete (auto) controls, put back (Process Block: Electrical Service Change) System Data: Process Block Object Status EQUAL ESC Complete (Fail if none exist = false).

Config check

2026-11-12, 23:00 UTC: config matches. Done.

Step Result
1 Inspection › Correction Work Complete (auto) Matches. The ESC rule is now (Process Block: Electrical Service Change) System Data: Process Block Object Status IN Canceled, ESC Complete, Not Needed (Fail if none exist = false). The other four rules, Auto, Allow Reset Run Flag (on), Repeatable (off) and the action (Set block status → Ready to Schedule Re-Inspection) are unchanged. Michael Lowry, 22:46:53.
2 R&R Inspection › Correction Work Complete (auto) Matches. Same rule swap; other rules, flags and the action are unchanged. Michael Lowry, 22:47:36.
3 Test on 26334 Passed by the auto control. At 22:48:34, Correction Work Complete (auto) evaluated as passed and moved Inspection to Ready to Schedule Re-Inspection. ESC is Not Needed, which would have failed the old rule.
4 Clean-up Done by Michael with Corrections Not Needed: 21300 (22:49), 25804 (22:49), 26707 (22:50). 27777 was done earlier (22:23).
5 7143, 21287 Michael moved both to Ready to Schedule Re-Inspection (22:51, 22:52). 21287 is still at project status Installation Prep, with ESC at Pending ESC Completion. Michael says that's intended: the Inspection team schedules it once ESC is done.
6 4478 Still at Pending Review or Correction Work. Its ESC has moved from Pending Meter Spot to Disposition ESC Work Needed. The auto will fire once ESC is complete.
7 On hold No change, as planned.

Differences and extra edits