Skip to content
Rishan Solutions
Rishan Solutions
  • PowerApps
  • SharePoint online
    • Uncategorized
    • Uncategorized
  • PowerAutomate
Rishan Solutions
Latest Posts
  • Agentic AI: The Dawn of Autonomous Intelligence Revolutionizing 2025 June 24, 2025
  • Recursive Queries in T-SQL May 7, 2025
  • Generating Test Data with CROSS JOIN May 7, 2025
  • Working with Hierarchical Data May 7, 2025
  • Using TRY_CAST vs CAST May 7, 2025
  • Dynamic SQL Execution with sp_executesql May 7, 2025

Lookup field returning blank

Posted on April 25, 2025April 25, 2025 by Rishan Solutions

Loading

In Power Pages (formerly Power Apps Portals), lookup fields are commonly used in Entity Forms, Web Forms, and custom Liquid templates to associate one record with another—like selecting a related Account for a Contact or a Product for a Quote. A common issue occurs when these lookup fields appear blank or empty on the portal, even when data exists in Dataverse.

This detailed guide explains why lookup fields return blank, and provides step-by-step solutions to fix it. It includes common causes, configuration checks, and best practices.


What Is a Lookup Field?

A lookup field in Dataverse is a field that references another table (entity). For example:

  • Contact.AccountId references the Account table.
  • Case.CustomerId may point to Contact or Account.
  • Opportunity.PrimaryContactId points to Contact.

In Power Pages, these fields are used in:

  • Entity Forms
  • Web Forms
  • Entity Lists with inline editing
  • Custom Liquid rendering

Common Scenario: Lookup Appears Empty

Symptoms:

  • Lookup field is blank in a form
  • No dropdown values are shown
  • Data isn’t populated even though it exists in Dataverse
  • Error in console or dev tools: 403 / Access Denied

Root Causes

  1. Missing Entity Permission on the referenced table
  2. No Web Role assigned to portal user
  3. Incorrect scope in Entity Permission
  4. Missing relationship setup in Entity Permission
  5. Parent table has no access through relationship
  6. Incorrect or absent lookup configuration on the form
  7. Form uses metadata filtering (e.g., FetchXML filter) without permissions

Step-by-Step: How to Fix Lookup Field Showing Blank

Step 1: Identify the Lookup Field and Related Table

Check:

  • The field name (e.g., accountid)
  • The target table (e.g., account)
  • The relationship name used (visible in Dataverse table schema)

Step 2: Check Entity Permissions on Related Table

You must define Entity Permissions on the related table (not just the one hosting the form).

Example:

If you’re showing a Contact form with a lookup to Account:

  1. Go to Portal Management App
  2. Navigate to Entity Permissions
  3. Create a new Entity Permission:
    • Table Name: Account
    • Scope: Global (or Account if scoped)
    • Privileges: At minimum, Read
  4. Add the permission to the appropriate Web Role

Save and publish.


Step 3: Add Relationship Permission (If Scope Is Not Global)

If you’re using scoped permissions (Contact/Account/Parent), and the lookup data is related through a relationship, then:

  1. Open your existing Entity Permission for the current entity (e.g., Contact)
  2. Under Child Entity Permissions, add a child:
    • Relationship: Pick the correct relationship (e.g., contact_customer_accounts)
    • Permission: The one you created on Account
    • This allows the portal to resolve the relationship for the lookup

Step 4: Assign Web Role to User

Check that your test user:

  • Is registered on the portal
  • Has the correct Web Role that includes both permissions
  • If not, assign the Web Role via Contact > Web Roles in the Portal Management App

Step 5: Clear Portal Cache

Any permission changes require a cache refresh.

Visit:

https://<yourportal>.powerappsportals.com/_services/about

Click Clear cache
Or clear via Power Platform Admin Center.


Step 6: Check Entity Form Configuration

In Entity Forms, confirm:

  • Lookup field is enabled and not hidden
  • Lookup settings do not use custom JavaScript overriding behavior
  • No additional filtering metadata is breaking the default behavior

Step 7: Use Dev Tools to Verify Error Codes

Open browser Developer Tools (F12) → Network tab:

  • Filter for api/data/... requests
  • If you see a 403, it’s an access issue
  • If you see an empty response (200 OK with no results), it’s likely a scoping or filter issue

Step 8: Test with a Clean Portal User

Create a new test user:

  • Register from the portal
  • Assign the correct Web Role
  • Try opening the same form

Sometimes existing users retain cached roles or permissions.


Real-World Example

Problem:

A lookup field Primary Contact on an Account form is blank on the portal.

Solution:

  1. Create Entity Permission on Contact table
  2. Scope: Global (for testing), then later change to Account
  3. Privileges: Read
  4. Link as child permission to Account Entity Permission using account_primary_contact relationship
  5. Assign both to same Web Role
  6. Assign Web Role to portal user
  7. Clear cache and refresh page

Now, Primary Contact will populate with available contacts.


Advanced Tip: Filter Lookups Using Metadata

You can filter lookup results using Metadata > Attributes in the Entity Form designer:

  • Set Filter Criteria like:
    • Status = Active
    • City = New York

Ensure users have permission to access filtered results—otherwise the lookup will break.


Best Practices

  • Never skip permission on related tables used in lookups
  • Use Global scope temporarily to test
  • Assign Web Roles properly to real portal users
  • Use Child Entity Permissions for scoped access with relationships
  • Clear cache after permission updates
  • Avoid too complex lookup filters in portal forms unless necessary
Posted Under Power Pagesblank lookup field dataverse portal child permission lookup clear portal cache contact account lookup missing dataverse portal lookup not working dataverse relationship permission entity form lookup blank entity permission for lookup lookup dropdown fix power pages lookup field blank portal form lookup fix power apps portal lookup dropdown empty power pages contact lookup power pages lookup issue power pages relationship access web role assignment web role lookup not showing

Post navigation

Dynamic filters not working due to permission
Report Scheduler Tools

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Agentic AI: The Dawn of Autonomous Intelligence Revolutionizing 2025
  • Recursive Queries in T-SQL
  • Generating Test Data with CROSS JOIN
  • Working with Hierarchical Data
  • Using TRY_CAST vs CAST

Recent Comments

  1. Michael Francis on Search , Filter and Lookup in power apps
  2. A WordPress Commenter on Hello world!

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • March 2024
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • January 2022

Categories

  • Active Directory
  • AI
  • AngularJS
  • Blockchain
  • Button
  • Buttons
  • Choice Column
  • Cloud
  • Cloud Computing
  • Data Science
  • Distribution List
  • DotNet
  • Dynamics365
  • Excel Desktop
  • Extended Reality (XR) – AR, VR, MR
  • Gallery
  • Icons
  • IoT
  • Java
  • Java Script
  • jQuery
  • Microsoft Teams
  • ML
  • MS Excel
  • MS Office 365
  • MS Word
  • Office 365
  • Outlook
  • PDF File
  • PNP PowerShell
  • Power BI
  • Power Pages
  • Power Platform
  • Power Virtual Agent
  • PowerApps
  • PowerAutomate
  • PowerPoint Desktop
  • PVA
  • Python
  • Quantum Computing
  • Radio button
  • ReactJS
  • Security Groups
  • SharePoint Document library
  • SharePoint online
  • SharePoint onpremise
  • SQL
  • SQL Server
  • Template
  • Uncategorized
  • Variable
  • Visio
  • Visual Studio code
  • Windows
© Rishan Solutions 2025 | Designed by PixaHive.com.
  • Rishan Solutions