Fix Conditional Formatting Errors In SharePoint Linked Data Lists
Summary
This guide helps you troubleshoot and resolve: Fix Conditional Formatting Errors In SharePoint Linked Data Lists. Follow the steps below to fix the issue.
Common Causes
Conditional formatting allows you to highlight important data in SharePoint list columns based on specific rules. When SharePoint lists are migrated from local network drives to SharePoint Online, formatting rules may fail because they reference columns that no longer exist or have been renamed. This can cause visual inconsistencies and errors in your list views.
Conditional formatting applies to the current list and view only. It does not create dependencies across different lists or site collections, and it cannot validate data in another SharePoint list.
Quick Fix Steps
- Open the SharePoint list containing the column with broken conditional formatting.
- Open the column settings and select Format this column.
- Choose Conditional formatting to review existing rules.
- Update any rules that reference deleted or renamed columns within the same list.
- Save your changes and refresh the list view to confirm the formatting displays correctly.
Detailed Instructions
Step 1: Access Column Settings
- Navigate to your SharePoint site and open the affected list.
- Select the column header for the column displaying the formatting error.
- Select Column settings from the dropdown menu, then choose Format this column.
- Select Conditional formatting to open the formatting rules panel.
Step 2: Review Formatting Rules
- Review each conditional formatting rule listed in the panel.
- Look for rules that reference column names which have been deleted or renamed during migration.
- Check for error messages such as "Reference not found" or "Invalid column reference."
- Identify the internal name of the column you want to reference. Internal names often differ from display names and may contain encoded characters.
Step 3: Update Column References in JSON
- Select the rule you need to edit to view its JSON formula syntax.
- Replace any invalid column references with the correct internal column name from the current list.
- Ensure all referenced columns exist in the same list. SharePoint Online column formatting does not support references to other lists.
- Example JSON condition checking a column named
ProjectStatus:
{
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if(@currentField == 'Completed', '#d4edda', if(@currentField == 'In Progress', '#fff3cd', '#f8d7da'))"
}
}
- Select Save to apply the formatting changes to the column.
Step 4: Add Rules for Missing Data
- Create a new conditional formatting rule to handle blank or null values.
- Set the condition to check if the referenced column is empty.
- Apply a neutral colour or text style to indicate missing data rather than displaying an error.
- Position exception rules at the top of your rule list so they are evaluated before other conditions.
Step 5: Save and Validate
- Select Save to apply all formatting changes.
- Return to the list view and confirm the colours, icons, and text styles appear as expected.
- Test the view with different data entries to ensure the rules trigger correctly.
Troubleshooting
Formatting Does Not Appear After Saving
- Refresh your browser page to clear cached list views.
- Confirm you have Edit permissions for the list.
- Check that conditional formatting is enabled for the specific view you are using, as formatting can be view-specific.
- Verify that the column internal names used in your JSON rules match the actual internal names in the list settings.
Rules Work in One View but Not Another
- Conditional formatting is applied per column and can differ between views.
- Open the view where formatting is missing and repeat the column formatting steps for that view.
- Ensure you have list-level permissions to modify column formatting for all views.
Column Reference Errors
- Confirm the referenced column still exists in the current list.
- Use the internal column name, not the display name, in your JSON formula.
- Check that the data type of the referenced column matches the logic in your formatting rule.
If you continue to experience issues with SharePoint list formatting, you can Open a Ticket for assistance from our support team.
Still Having Issues?
💻 Open a Ticket