Stage 12 of 17
Eight troubleshooting scenarios covering the most common issues in a training register system: missing reminders, duplicate reminders, incorrect dates, Power BI discrepancies, missing mandatory training, flow errors, view filter problems, and publishing issues.
Why Are We Doing This?
Expiry reminders not being received
How It Was Reported
"Rachel Okafor reports that neither Sophie Clarke nor her manager Ravi Sharma received a 60-day reminder for REC-003 (Health & Safety Induction, expiring in 60 days)."
Expected
Both Sophie and Ravi receive a 60-day reminder email on the day the expiry date is exactly 60 days away.
Actual
No email received.
Evidence to Gather
Likely Cause
Most likely cause: the ExpiryDate in the training record does not match the filter exactly. Common reasons: (1) ExpiryDate was entered as a different date than expected. (2) The date format in the filter does not match SharePoint's stored format. (3) The flow is turned off.
Fix
Verify the ExpiryDate in the training record. Verify the flow is turned on. Check the filter query in the Get items action — ensure formatDateTime uses 'yyyy-MM-dd'. If the date is correct and the flow is on, check the SharePoint connection — it may have expired.
Retest
Create a test record with ExpiryDate = today + 60 days. Manually trigger the flow. Verify the email is received.
Duplicate reminders being sent
How It Was Reported
"Oliver Grant has received three 60-day reminder emails for the same training record."
Expected
Each reminder is sent exactly once.
Actual
Three 60-day reminders received.
Evidence to Gather
Likely Cause
Two possible causes: (1) The Update item action is failing after the email is sent, so Reminder60Sent is never set to Yes. (2) The filter query is incorrect — it is not filtering on Reminder60Sent = No.
Fix
Check the Update item action in the flow. Verify it references the correct item ID and sets Reminder60Sent = Yes. Check the filter query in the Get items action — it must include "and Reminder60Sent eq 'No'".
Retest
Set Reminder60Sent = No on the test record. Trigger the flow. Verify one email is received and Reminder60Sent = Yes. Trigger the flow again. Verify no second email is received.
Incorrect expiry date on a training record
How It Was Reported
"Sandra Obi notices that REC-008 (Marcus Webb, Health & Safety Induction) has an ExpiryDate of 05/06/2024 instead of 05/06/2025. The course validity is 24 months, not 12."
Expected
ExpiryDate = CompletionDate + 24 months = 05/06/2023 + 24 months = 05/06/2025.
Actual
ExpiryDate = 05/06/2024 (12 months, not 24).
Evidence to Gather
Likely Cause
The ExpiryDate was calculated manually using the wrong validity period. The L&D team member used 12 months instead of 24 months.
Fix
Correct the ExpiryDate in REC-008 to 05/06/2025. Document the correction in the record's EvidenceReference field: "ExpiryDate corrected from 05/06/2024 to 05/06/2025 on [date] by [name]. Reason: incorrect validity period used at time of entry." Reset Reminder60Sent, Reminder30Sent, and Reminder7Sent to No so the correct reminders are sent.
Retest
Verify REC-008 shows ExpiryDate = 05/06/2025. Verify all three reminder flags are No.
Power BI dashboard shows different numbers to the SharePoint list
How It Was Reported
"Ravi Sharma reports that the Power BI dashboard shows 3 expired records for the Finance team, but the Expired Training view in SharePoint shows 4."
Expected
Power BI and SharePoint show the same number of expired records.
Actual
Power BI shows 3, SharePoint shows 4.
Evidence to Gather
Likely Cause
The Power BI dataset has not been refreshed since the 4th record was added. Power BI shows a snapshot of the data at the time of the last refresh, not real-time data.
Fix
Refresh the Power BI dataset manually: open the report in Power BI Desktop → Home → Refresh. Or, if published to the Power BI service, configure a scheduled refresh. After refreshing, verify the dashboard shows 4 expired Finance records.
Retest
Add a test expired record. Refresh the Power BI dataset. Verify the new record appears in the dashboard.
Missing mandatory training not identified
How It Was Reported
"Tom Reeves reports that Oliver Grant has never completed the Equality, Diversity & Inclusion course (CRS-005, mandatory), but the compliance view does not flag this."
Expected
The compliance view identifies employees with no training record for a mandatory course.
Actual
Oliver Grant's missing EDI training is not flagged.
Evidence to Gather
Likely Cause
The base build (Lists only) does not have a view that identifies employees with no record for a mandatory course. This requires a cross-list query that SharePoint views cannot perform. The Power BI dashboard's "By Course" page should show this, but only if the measure is correctly defined.
Fix
This is a known limitation of the base build. The Power BI dashboard's "By Course" page should include a "Not Started" count for each mandatory course. If it does not, check the DAX measure — it must count employees with no matching training record, not just employees with an expired record. See the Improve stage for the full Power BI build instructions.
Retest
Navigate to the Power BI "By Course" page. Verify CRS-005 shows Oliver Grant in the "Not Started" count.
Flow fails with "Item not found" error
How It Was Reported
"The DToDLab005-ExpiryReminder flow failed with the error: "The requested item is not found.""
Expected
The flow runs successfully and processes all matching records.
Actual
Flow fails with "Item not found" error.
Evidence to Gather
Likely Cause
Most likely cause: the Update item action is referencing a hardcoded item ID instead of the dynamic ID from the Get items action. Or the TrainingRecords list has been renamed and the flow still references the old name.
Fix
Check the Update item action. The ID field must reference the dynamic ID from the current item in the Apply to each loop: @{items('Apply_to_each')?['ID']}. If the list was renamed, update the list name in all Get items and Update item actions.
Retest
Manually trigger the flow with a test record. Verify the flow completes successfully.
Expiring Training view shows records that have already expired
How It Was Reported
"Sandra Obi notices that the Expiring Training view includes REC-001 (Sophie Clarke, Data Protection Awareness, expired January 2025)."
Expected
The Expiring Training view shows only records where ExpiryDate is between today and today + 60 days.
Actual
Expired records appear in the Expiring Training view.
Evidence to Gather
Likely Cause
The Expiring Training view filter is missing the lower bound condition. It filters for ExpiryDate ≤ today + 60 days but does not also filter for ExpiryDate ≥ today. Records with ExpiryDate in the past satisfy the ≤ today + 60 condition.
Fix
Edit the Expiring Training view. Add a second filter condition: ExpiryDate is greater than or equal to [Today]. The combined filter should be: ExpiryDate ≤ [Today] + 60 AND ExpiryDate ≥ [Today].
Retest
Navigate to the Expiring Training view. Verify REC-001 (expired) does not appear. Verify records expiring within 60 days do appear.
Power BI dashboard shows no data after publishing
How It Was Reported
"Rachel Okafor published the Power BI report to the Power BI service. The dashboard shows "No data" on all pages."
Expected
The dashboard shows training data from the TrainingRecords list.
Actual
All pages show "No data".
Evidence to Gather
Likely Cause
When a Power BI report is published to the Power BI service, the data source credentials must be reconfigured. The credentials used in Power BI Desktop do not transfer automatically.
Fix
In the Power BI service, navigate to the dataset settings. Under Data source credentials, select Edit credentials. Enter the SharePoint credentials (or use OAuth). Refresh the dataset. Verify the dashboard shows data.
Retest
Refresh the dataset. Verify all dashboard pages show data.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.