Stage 12 of 17
10 advanced troubleshooting scenarios covering security, calculated columns, lookups, subgrids, flows, OData filters, business rules, and ALM deployment.
Note
Flow fails with "Principal user is missing prvRead privilege on dtod_application entity"
Security / FlowsRoot 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
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.
Risk Score column shows 0 or does not update after changing Likelihood or Impact
Calculated ColumnsRoot 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
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.
Lookup field on Application form shows no results when searching for a Business Owner
Lookups / ViewsRoot 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
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.
Subgrid on Application form shows "No records found" even though related records exist
Subgrids / RelationshipsRoot 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
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.
Contract Review Reminder flow sends emails for expired contracts
Flows / Data QualityRoot 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
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.
Business Rule "Require Strategic Fit Rationale" fires even when Strategic Fit Score is empty
Business RulesRoot 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
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.
Model-Driven App shows "You do not have permission to access these records" for some users
SecurityRoot 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
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.
After importing the managed solution to Test environment, flows are in a "Suspended" state
ALM / FlowsRoot 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
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.
OData filter in "List rows" action returns no results even though matching records exist
Flows / ODataRoot 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
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.
Integration table has two lookup columns both named "Application" — the form is confusing
Data Model / UXRoot 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
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.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.