Daily Operations and Monitoring¶
Procedures for daily operational checks, monitoring errored workflows, and handling common incidents.
Morning Daily Check¶
- Log into Management Studio PrtyLive: https://mobile.lincolnshirehp.com/ManagementStudioPrtyLive/home
- Navigate to Workflows → Search Instances
- Set filter radio button to Value Search
- Tick Errored checkbox only (untick all others)
- Click Search Instances
- For each errored instance: click Retry
- If retry fails repeatedly, raise a service desk ticket to Business Systems
Checking Workflow Errors via SQL¶
-- Live environment errors
SELECT * FROM [1stTouch_PrtyLive].[LHP].[vw_Workflow_Errors]
ORDER BY ErrorDate DESC
-- Dev workflow instances (recent)
SELECT TOP 50 * FROM [Versaa_PrtyDev].[LHP].[vw_Workflow] ORDER BY 1 DESC
SSRS Monitoring Reports¶
| Report | URL |
|---|---|
| Versaa Pending Events on Completed Orders | http://aareon-sql01.lincolnshirehp.local/reports/report/LHP%20Reports/Live/System/Versaa%20Pending%20Events%20on%20Completed%20Orders |
| Versaa Errored Instances | http://aareon-sql01.lincolnshirehp.local/reports/report/LHP%20Reports/Live/System/Versaa%20Errored%20Instances |
Quarantined Tasks¶
Quarantined tasks block users from completing work. Common after daylight savings time transitions.
- Management Studio → Tasks → Quarantined Tasks
- Search for affected records
- Handle (release or discard) quarantined records manually
Common Workflow Errors¶
| Error Message | Cause | Resolution |
|---|---|---|
| Schedule Complete Handler - Locked | Database lock / deadlock | Retry via Management Studio |
| Schedule Complete Handler - Deadlock | DB deadlock victim | Transitory — auto-retries; retry manually if persists |
| ClientVisitBasicLoadTenant - Unexpected Database error | DB connection issue | Retry workflow instance |
| Order Appointment - Pending Retry | Workflow step failed | Retry; if persistent escalate |
| Order Appointment - Cannot find User | QL_QL User ID missing from form data |
Verify QL User ID field is populated |
| Questionnaire Wait for Contact | Timeout waiting for response | Check contact data is valid |
| Client Completion | Completion processing failed | Check Data Warehouse table exists |
| Generic Task Completion - Unexpected Token | XML parsing error | Validate form XML structure |
| Asbestos Survey Load Data - Value cannot be Null | NULL in required field | Check form data completeness |
| Disk I/O Errors | Server storage performance issue | Monitor server disk space; contact IT |
Workflow Error XPath Check (CRM Gateway)¶
The Generic Task Completion workflow gateway validates all 5 CRM items before processing. This XPath must evaluate to true for the workflow to pass the gateway:
boolean(//Task[not(ancestor::Task)]/DataItems/DataItem[@name='QL_Client No'])
and boolean(//Task[not(ancestor::Task)]/DataItems/DataItem[@name='QL_Property ID'])
and boolean(//Task[not(ancestor::Task)]/DataItems/DataItem[@name='QL_Tenancy Sequence No'])
and boolean(//Task[not(ancestor::Task)]/DataItems/DataItem[@name='QL_Start Form'])
and boolean(//Task[not(ancestor::Task)]/DataItems/DataItem[@name='QL_QL User ID']/text()[1])
If any of these five items are missing, the workflow routes to "Request Contacts" instead of processing. Check that all five are present in the form's DataItems.
Diary Appointment Error — "Cannot complete diary appointment"¶
This error occurs when a workflow tries to complete a diary appointment that no longer exists or is in an inconsistent state. Steps:
- Check the workflow error detail in Search Instances for the specific appointment/order reference
- Query
hpm1stoafor the order to check its current status - If the appointment is already completed in QL but the workflow doesn't know, force-retry or manually close the workflow instance
Removing an Appointment from a User's Device¶
If an appointment is stuck on a device and needs to be removed:
- In Management Studio, find the workflow instance for that appointment
- Check the task status — if it's in an intermediate state, manually advance or cancel it
- The appointment should disappear from the device once the workflow is resolved