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
- Inspection Failed or Partial Pass (on the Final Inspection event) sets the event to Failure Review, which is in the Inspection Failure Review queue (1d), and Inspection to Pending Review or Correction Work. It doesn't reset anything.
- From there, someone presses Send to Correction Work (on the event) or Send to Corrections (on Inspection). Both create a Correction Work and reset Correction Work Complete (auto). Or they press Corrections Not Needed, which moves Inspection to Ready to Schedule Re-Inspection.
- Correction Work Complete (auto) (248) moves Inspection to Ready to Schedule Re-Inspection when: Inspection is at Pending Review or Correction Work,
(Process Block: Electrical Service Change) System Data: Process Block Object Status EQUAL ESC Complete (Fail if none exist = false), the Correction Work is Complete or Canceled, none is open, and the Final Inspection isn't in Failure Review.
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
- The same ESC rule is on R&R Inspection's Correction Work Complete (auto) (981). Today only one Inspection block in review has an ESC at Not Needed, but every future one will hit this.
- A global rule already exists that accepts all the right ESC statuses:
(Process Block: Electrical Service Change) System Data: Process Block Object Status IN Canceled, ESC Complete, Not Needed (Fail if none exist = false). - Messages and money: the auto only changes Inspection's status. Ready to Schedule Re-Inspection feeds Ready to Schedule Final w/ Customer (5d). No SMS, email or funding step.
- The "bounce": the same-save firing (Inspection briefly at Ready to Schedule Re-Inspection before Send to Correction Work) is harmless today, because people press the second button immediately. It can't be fixed without changing how the failure path works; not in scope.
- Not recommended: putting Pending Review or Correction Work in a queue. 45 of the 60 blocks there have open Correction Work, which already sits in Correction Work queues, so the queue would be mostly noise.
Admin checklist
- 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. - On R&R Inspection › Correction Work Complete (auto), make the same replacement.
- 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
- Inspection team: after Inspection Failed or Partial Pass, always finish the review with Send to Correction Work or Corrections Not Needed on the same day. Pending Review or Correction Work has no queue; the Failure Review queue is where it shows up.
- If Correction Work is finished but Inspection is still at Pending Review or Correction Work the next day, press Corrections Not Needed. Red Oak fixed the delayed reset on 2026-11-12, so this should now be rare.
- No change for other teams.
Rollback
- 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
- The rule is new, not reused. Michael created rule 4450 at 22:46. A global rule with exactly the same description already existed (3272, created by KAJ). Both work. The cost is two identical names in the rule picker. Michael chose to leave both.
- Other control edits in the same window:
- M1 Correction Work Complete (auto) (486), Michael, 22:35. Michael says this is a separate change, so it isn't recorded here and still needs its own record.
- Create In-house Roof Event (865), KAJ, 22:35. It now also checks a rule created the same evening (4449). This looks like a separate KAJ change.