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 / SQL HierarchyID and Po...
Power Apps
Answered

SQL HierarchyID and PowerApps

(0) ShareShare
ReportReport
Posted on by 195

Hi,

 

I have a traditional SQL hierarchy table (id points to parentid in the same table).   I am trying to make use of the SQL HierarchyID to see if I can get any improved performance but PowerApps wants nothing to do with this table as a data source.  I get this error :

"Service call was successful. However, there was a problem processing the server response. Please refresh your data source and republish your app."

I get it if I try and add the table to "items" on a gallery, or if I try and collect the records into a collection , or patch any record or remove any record.  

 

LaelH_1-1599919098152.png

 

Any ideas, other than removing HierarchyID from the table and giving up on the performance benefits?

 

Thanks

Regards

Lael

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @LaelH 

    You'll need to abandon the HierarchyID - it is not supported in the SQL connector.

    Take a look at the docs on datatypes supported - you'll see a note about types not supported, it includes the HierarchyID.

     

    Sorry to say...but that will be what you need to do.

     

    I hope this is helpful for you.

  • Verified answer
    LaelH Profile Picture
    195 on at

    Hi @RandyHayes 

     

    Thanks for the feedback. It sent me down another thought path which resulted in a nifty workaround which means I don't have to abandon my HierarchyID and its associated efficiencies.

     

    1) I created a SQL view of the table, but without the Hierarchy ID in it, so that any PowerApps front-end work can be done off that view. 

    2) Then for the required back-end table action (insert, update, delete) I created a very simple generic Flow called SQLQuery, which allows me to construct any query I want in PowerApps and send that to flow for execution.

     

    eg:  SQLQuery.Run("Update MyTable set MyColumn = 1 where ID = 1")  

     

     

    LaelH_6-1600414315418.png

     

    So I have got the best of both worlds now and my issued is resolved.

    Thanks again for pointing out that documentation.

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard