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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Named Formula results ...
Power Apps
Unanswered

Named Formula results in circular reference error when setting combo box value

(0) ShareShare
ReportReport
Posted on by 10

I have two fields: Module and Region.  I want to set the 'RBA Team_DataCard', which is a combo box of groups, to the appropriate group based on the selections made in the Module and Region fields. 

 

Rather than setting variables OnChange with duplicate code, I am trying to use a Named Formula that will pick up the correct group based on the values in the Module and Region fields.

 

If I set a label's text property to RouteToRBATeam.DisplayName, everything works as expected given these named formulas:

fModule = Module_DataCardValue.Selected.Value;
fRegion = Region_DataCardValue.Selected.Value;

RouteToRBATeam =
 With(
 First(
 Filter('MyCarestream Requests - Routing',
 'Support Level' = 1 And 
 Module.Value = fModule And
 Region.Value = fRegion
 ).'Route To'),
 {
 Claims: ThisRecord.'Route To'.Claims,
 DisplayName: ThisRecord.'Route To'.DisplayName,
 Email: ThisRecord.'Route To'.Email,
 Picture: ""
 });

 

However, when I try 'RBA Team_DataCard'.Default = RouteToRBATeam, I get the following error, "This rule creates a circular reference between properties, which is not allowed. A property cannot reference itself or other properties affected by its value. This is the shortest circular reference: 'RBA Team_DataCard'.'Default' -> 'RBA Team_DataCard','Default'."

 

I get similar errors if I try RBA_DataCardValue.DefaultSelectedItems = RouteToRBATeam

 

Here's what I've figured out from debugging:

  1. If I replace the named formulas fModule and fRegion with their expressions directly, the results are the same
  2. If I hard-code the Module and Region filters rather than referencing the dynamic field selections then RBA_DataCard.Default = RouteToRBATeam works perfectly.
  3. Setting a label's Text property = "Region: " & fRegion works as expected

 

RouteToRBATeam =
 With(
 First(
 Filter('MyCarestream Requests - Routing',
 'Support Level' = 1 And 
 Module.Value = "Business Workspace" And
 Region.Value = "GCC"
 ).'Route To'),
 {
 Claims: ThisRecord.'Route To'.Claims,
 DisplayName: ThisRecord.'Route To'.DisplayName,
 Email: ThisRecord.'Route To'.Email,
 Picture: ""
 });

 

Thank you for your help!

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard