Skip to main content
Community site session details

Community site session details

Session Id : gvztO7xBkbhDvWvfFN3PsS
Power Apps - Power Apps Pro Dev & ISV
Unanswered

The referencing entity of a relationship must have the CanBeRelatedEntityInRelationship managed property set to true

Like (0) ShareShare
ReportReport
Posted on 21 Nov 2023 21:12:28 by 306

I did some clean up on my solution - removed some unwanted relationships and tables.  Now, I'm exporting it as managed and trying to import into another environment as an upgrade.  After the importing processes for awhile, I get this error message:

 

The referencing entity of a relationship must have the CanBeRelatedEntityInRelationship managed property set to true

 

I downloaded and edited the huge import.xml file.  In it, I searched for references to that error message and found 3.  2 look like they're just listing the error for the solution.  The third points to an actual relationship between a custom table and the Activity table:

 

 <Row ss:AutoFitHeight="0" type="Entity Relationships">
 <Cell ss:StyleID="s137" name="Time">
 <Data ss:Type="String">19:38:03.30</Data>
 </Cell>
 <Cell ss:StyleID="s137" name="ItemType">
 <Data ss:Type="String">Entity Relationships</Data>
 </Cell>
 <Cell ss:StyleID="s137" name="Id">
 <Data ss:Type="String" />
 </Cell>
 <Cell ss:StyleID="s137" name="Name">
 <Data ss:Type="String">new_policy_ActivityPointers</Data>
 </Cell>
 <Cell ss:StyleID="s137" name="LocalizedName">
 <Data ss:Type="String" />
 </Cell>
 <Cell ss:StyleID="s137" name="OriginalName">
 <Data ss:Type="String" />
 </Cell>
 <Cell ss:StyleID="s137" name="Description">
 <Data ss:Type="String" />
 </Cell>
 <Cell ss:StyleID="s137" name="Status">
 <Data ss:Type="String">Failure</Data>
 </Cell>
 <Cell ss:StyleID="s137" name="ErrorCode">
 <Data ss:Type="String">0x80047003</Data>
 </Cell>
 <Cell ss:StyleID="s137" name="ErrorText">
 <Data ss:Type="String">The referencing entity of a relationship must have the CanBeRelatedEntityInRelationship managed property set to true</Data>
 </Cell>
 </Row>

 

"new_policy" is my custom table.  This relationship exists in the solution, and has for many releases.  But has never caused this error before.  I have other custom tables with a relationship to the Activity table that have the same properties.  Those do not cause errors.  In fact this one is the only entity relationship listed in the entire install log file.

 

Any ideas on how to fix this?

  • Crazy Rasik Profile Picture
    23 on 20 Mar 2024 at 10:36:24
    Re: The referencing entity of a relationship must have the CanBeRelatedEntityInRelationship managed property set to true

    @tschopp Please refer to this Blog  for the Solution Click here 

  • Crazy Rasik Profile Picture
    23 on 20 Mar 2024 at 09:58:34
    Re: The referencing entity of a relationship must have the CanBeRelatedEntityInRelationship managed property set to true

    Hello @tschopp did you get any solution for this Error

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2