web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

(0) ShareShare
ReportReport
Posted on by 15

While trying to add any subgrid to a reference panel I'm getting this weird "The color code isn’t valid. Use a valid hexadecimal value." error pop-up that's preventing me from adding sub-grid. I'm able to add quick view forms though. I'm not sure which color code is this talking about? Tried with multiple entities with same result. 

Is support ticket the only way forward?

2020_2D00_02_2D00_21_5F00_12_2D00_43_2D00_47.png

I have the same question (0)
  • Suggested answer
    Andre H Profile Picture
    on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    this did the trick, thank you.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    I had the same issue, but I managed to solve it.

    It turns out to be a problem with CRM themes and high contrast settings.

    Please check in your personal settings (gear icon>personalization settings>general) if "Enable high contrast" is active. If it's active, that's the issue - deactivate it, it should work now.

  • jruana Profile Picture
    15 on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    Did you got any answer from Support? I'm facing same issue...

    Jordi

  • Abhisek Profile Picture
    15 on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    Thanks Henry! Yes, my first instinct was to try this out from the new editor but reference panels are not even there.

    Legacy editor is where I'm facing this issue.

    Let me check with support, as this could be specific to our environment.

  • Suggested answer
    Henry J. Profile Picture
    5,237 on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    Hi Abhisek,

    Are you using the legacy or the modern form editor?

    From my tests, I was only able to customize a Reference Panel from the legacy form editor, and didn't encounter any error message while adding a subgrid to a reference panel.

    Please share additional details on where exactly you have this error.

    As you said, you can also raise a Support Request to get help in troubleshooting that issue: https://admin.powerplatform.microsoft.com/support.

    Henry

  • rthompson Profile Picture
    1,532 on at
    RE: Adding sub-grid to a Reference Panel throws error: The color code isn’t valid. Use a valid hexadecimal value.

    Hi,

    If you are able.  Would you please give a little more information.  Some code and screenshots.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans