Stage 12 of 17

Stage 12 of 17

Troubleshoot

10 advanced troubleshooting scenarios covering security, calculated columns, lookups, subgrids, flows, OData filters, business rules, and ALM deployment.

Note

These scenarios are based on real problems that occur when building Dataverse and Model-Driven App solutions. Work through each one even if you have not encountered the problem — understanding the diagnosis process is as valuable as knowing the fix.

Scenarios

TS-001

Flow fails with "Principal user is missing prvRead privilege on dtod_application entity"

Security / Flows

Root Cause

The connection used by the flow does not have the correct Dataverse security role. Power Automate flows run under the credentials of the connection owner. If the connection owner does not have Read access to the Application table, the flow fails.

Diagnosis Steps

  1. 1.Open the failing flow in Power Automate.
  2. 2.Select the failing action (List rows — Application table).
  3. 3.Check the Connection used. Note the account name.
  4. 4.Go to the Power Platform Admin Centre. Find the environment. Go to Settings → Users + permissions → Users.
  5. 5.Find the connection account. Check which security roles are assigned.

Resolution

Assign the APM Portfolio Administrator role to the connection account. Alternatively, create a dedicated service account for the flows and assign it the Administrator role. Re-run the flow.

Prevention

Always test flows with the same account that will run them in production. Create a dedicated service account for flows rather than using a personal account — personal accounts can leave the organisation.

TS-002

Risk Score column shows 0 or does not update after changing Likelihood or Impact

Calculated Columns

Root Cause

Calculated columns in Dataverse update when the record is saved, not in real time. If the user changes Likelihood but does not save, the Risk Score will not update. Additionally, if the calculated column formula references a column that does not exist or has a different schema name, the calculation silently returns 0.

Diagnosis Steps

  1. 1.Open a Risk record. Change Likelihood. Do not save. Check Risk Score — it should not have changed yet.
  2. 2.Save the record. Check Risk Score — it should now reflect the new calculation.
  3. 3.If Risk Score is still 0 after saving, go to the Risk table in the solution. Open the Risk Score column. Check the formula.
  4. 4.Verify the formula references the correct schema names (dtod_likelihood and dtod_impact, not the display names).

Resolution

If the formula is wrong, correct it and save the column. Existing records will not automatically recalculate — you will need to open and re-save each record, or use a bulk update flow.

Prevention

Always use schema names (not display names) in calculated column formulas. Test the calculation immediately after creating the column by creating a test record.

TS-003

Lookup field on Application form shows no results when searching for a Business Owner

Lookups / Views

Root Cause

The lookup field uses the default view of the Business Owner table to display results. If the default view has a filter that excludes the record you are searching for (for example, a filter for Active = Yes), records that do not match the filter will not appear.

Diagnosis Steps

  1. 1.Open the Application form. Click the Business Owner lookup field.
  2. 2.Type a name that you know exists in the Business Owner table.
  3. 3.If no results appear, go to the Business Owner table in the solution.
  4. 4.Check the Active Business Owners view (the default view). Check if it has a filter for Active = Yes.
  5. 5.Check the Business Owner record you are searching for — is Active = Yes?

Resolution

If the Business Owner record has Active = No, set it to Yes. If the lookup should show all owners regardless of Active status, change the lookup's default view to All Business Owners (no filter). Update the lookup column's Related Records Filter in the form designer.

Prevention

When designing lookup filters, consider edge cases: what happens when a record does not match the filter? Always test lookups with records that are at the boundary of the filter condition.

TS-004

Subgrid on Application form shows "No records found" even though related records exist

Subgrids / Relationships

Root Cause

The subgrid is configured to show records from the wrong relationship, or the relationship between the tables was not created correctly. This can also happen if the subgrid is using a view that has a filter excluding the records.

Diagnosis Steps

  1. 1.Open the Application form in the form designer (not the live app).
  2. 2.Select the subgrid that is showing no records.
  3. 3.Check the Table property — is it pointing to the correct table (e.g. Technology)?
  4. 4.Check the Default view property — is it using a view that might filter out records?
  5. 5.Check the Relationship property — is it using the correct relationship (e.g. dtod_application_dtod_technology)?
  6. 6.Go to the Technology table. Open a Technology record. Check the Application lookup — does it point to the correct Application?

Resolution

If the relationship is wrong, update the subgrid configuration in the form designer. If the Technology records have the wrong Application lookup value, update them. If the view has an incorrect filter, update the view.

Prevention

After adding a subgrid, immediately test it by creating a related record and verifying it appears. Do not wait until all records are entered.

TS-005

Contract Review Reminder flow sends emails for expired contracts

Flows / Data Quality

Root Cause

The flow filters for Status = "Active" contracts. If an expired contract has not had its Status updated to "Expired", it will still be included in the flow's query and may trigger a reminder email.

Diagnosis Steps

  1. 1.Check the flow run history. Identify which contracts triggered the email.
  2. 2.Open those Contract records in the app. Check the Status field.
  3. 3.If Status = Active but the End Date has passed, the contract is expired but not marked as such.

Resolution

Update the Status of expired contracts to "Expired". Consider adding a separate scheduled flow that automatically sets Status = Expired when End Date has passed. This prevents the reminder flow from sending emails for expired contracts.

Prevention

Data quality is a process problem, not just a technical problem. Define a process for who is responsible for updating contract status when a contract expires. The automated status update flow is a good safety net.

TS-006

Business Rule "Require Strategic Fit Rationale" fires even when Strategic Fit Score is empty

Business Rules

Root Cause

The business rule condition checks "Strategic Fit Score is not empty". If the condition is evaluated incorrectly — for example, if the column has a default value of 0 rather than null — the condition may evaluate as true even when the user has not entered a score.

Diagnosis Steps

  1. 1.Open the Application table in the solution. Check the Strategic Fit Score column definition.
  2. 2.Check if there is a default value set. If the default value is 0, the column is never truly empty.
  3. 3.Open the business rule. Check the condition: "Strategic Fit Score is not empty". If the column has a default of 0, this condition is always true.

Resolution

Remove the default value from the Strategic Fit Score column (set it to null/no default). Alternatively, change the business rule condition to "Strategic Fit Score is greater than 0".

Prevention

Be careful with default values on optional numeric columns. A default of 0 is not the same as "not entered". Use null (no default) for optional fields where "not entered" is a meaningful state.

TS-007

Model-Driven App shows "You do not have permission to access these records" for some users

Security

Root Cause

The user has not been assigned a security role in the Dataverse environment. Being a member of the Microsoft 365 tenant is not sufficient — users must be explicitly added to the Dataverse environment and assigned a security role.

Diagnosis Steps

  1. 1.Go to the Power Platform Admin Centre. Select the environment.
  2. 2.Go to Settings → Users + permissions → Users.
  3. 3.Search for the affected user. Check if they appear in the list.
  4. 4.If they do not appear, they have not been added to the environment.
  5. 5.If they appear but have no security roles, they have been added but not assigned a role.

Resolution

Add the user to the environment (if not already present) and assign the appropriate security role (e.g. APM Portfolio Viewer). The user may need to sign out and back in for the role to take effect.

Prevention

Before go-live, create a user acceptance testing (UAT) checklist that includes verifying access for each user group. Do not assume that users who can access Power Apps can automatically access the Dataverse environment.

TS-008

After importing the managed solution to Test environment, flows are in a "Suspended" state

ALM / Flows

Root Cause

When a managed solution is imported to a new environment, the connections used by flows are not transferred. The flows are suspended because they have no valid connection. This is expected behaviour — connections are environment-specific.

Diagnosis Steps

  1. 1.In the Test environment, go to Solutions. Open the DToDApplicationPortfolio solution.
  2. 2.Select Cloud flows. Check the status of each flow.
  3. 3.If any flow shows "Suspended", open it and look for a warning about missing connections.

Resolution

Open each suspended flow. Select Edit. For each action that uses a Dataverse connection, select the connection and either create a new connection or select an existing one for the Test environment. Save and turn on the flow.

Prevention

Use Connection References in your solution (see Stage 13 — Release). Connection References allow you to define a placeholder for a connection in the solution, and then map it to an environment-specific connection during import. This is the correct ALM approach and avoids the suspended flow problem.

TS-009

OData filter in "List rows" action returns no results even though matching records exist

Flows / OData

Root Cause

OData filter syntax for Dataverse is strict. Common mistakes: using the display name instead of the schema name, using text values for Choice columns instead of integer values, using incorrect null check syntax, or missing the correct column prefix (dtod_).

Diagnosis Steps

  1. 1.Open the failing flow action. Check the Filter rows expression.
  2. 2.Identify the column being filtered. Go to the table definition in the solution and find the column's Schema name (not the Display name).
  3. 3.If filtering a Choice column, find the integer value for the choice option you are filtering on.
  4. 4.Test the OData filter by temporarily removing it and checking if records are returned. Then add the filter back one condition at a time.

Resolution

Correct the OData filter syntax. Use schema names (e.g. dtod_status), integer values for Choice columns, and correct null syntax (eq null). Example: dtod_status eq 1 and (_dtod_businessowner_value eq null or _dtod_technicalowner_value eq null)

Prevention

Always test OData filters by running the flow manually and inspecting the output of the List rows action. The output shows exactly which records were returned and why.

TS-010

Integration table has two lookup columns both named "Application" — the form is confusing

Data Model / UX

Root Cause

The Integration table has two lookups to the Application table: Source Application and Target Application. If both lookups were named "Application" during creation, they will both display as "Application" on the form, which is confusing.

Diagnosis Steps

  1. 1.Open the Integration table in the solution. Check the column names.
  2. 2.If both lookups are named "Application", one needs to be renamed.
  3. 3.Check the schema names: they should be dtod_sourceapplication and dtod_targetapplication.

Resolution

Rename the lookup columns: Display name: Source Application and Target Application. Update the Integration form to show both columns with their correct labels. Update any views that reference these columns.

Prevention

When creating multiple lookups to the same table, always give them distinct, descriptive display names immediately. Do not accept the default name "Application" for both.

Stage Complete — What You Now Have

  • ✓10 troubleshooting scenarios with root cause, diagnosis steps, resolution, and prevention
  • ✓Security: flow permission errors, user access denied, security role assignment
  • ✓Data model: calculated column formula errors, lookup filter issues, duplicate lookup names
  • ✓Flows: OData filter syntax, suspended flows after ALM import, data quality issues
  • ✓Business rules: default value conflicts, condition evaluation
  • ✓ALM: connection references and the suspended flow problem
NextRelease

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project