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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / On prem SQL data sourc...
Power Apps
Answered

On prem SQL data source not returning any data from one table but working fine for other tables tables in the same db.

(0) ShareShare
ReportReport
Posted on by 23

I have created a gateway and added a connection to an on prem SQL database (CA Service desk manager, mdb) to it.
I then created a new power app and connected to the database.

Reading the "dbo.pri" or the "dbo.act_log" works fine but when i try to get data from the "dbo.ca_contact" table in the same database I only get the column names an no data. There is a lot of data in that table. I have verified that using sql server management studio.

Sometimes i get an error message "s is not a function" and a session id.

Does anyone know why I cant get data from this table and is there a way to get around it?

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @mabl4367 ,

     

    What is the formula that you use the show the data? Is your table connected to PowerApps successfully? Check from View > Data Source.

     

    Regards,

    Mona

  • mabl4367 Profile Picture
    23 on at
     

    Hi Mona @v-monli-msft ,

     

    I use a data tabel control to display the data from the data source so the formula i use in the "Items" property is simply '[dbo].[ca_contact]'. I've also tried to limit the amount of data by using FirstN('[dbo].[ca_contact]';10) but I still get no data at all from the ca_contact table.

    Other tables from the same data source work fine like the act_log table.

    It seams there is a problem with the data source because when I hover over it I can see the error message "s is not a function".

    I have attached some screen shots to this post.

     

    Since the tables are in the same database the only thing I can think of, that could be the cause of my problem, is that the ca_contact table has some column with an unsupported datatype while the act_log table has not.

  • mabl4367 Profile Picture
    23 on at

    I have googled some more and it seams that the sql connector does not support the data types of some of the columns in the table ca_contact.

    https://docs.microsoft.com/en-us/connectors/sql/

    ca_contact has multiple columns of type binary(16) that is not supported by the connector.

    I may not add views or stored procedures to the database so I can't create a view that excludes or transforms the columns with these datatypes.

    Any tips on where to go from here?

  • Verified answer
    David Jennaway Profile Picture
    716 on at

    The normal way around this would be to create a view that excludes the columns, and I can't think of any alternative (unless you can create a separate database that you do have permissions to create objects in, and create the view there that references the table). So, I think you'd have to ask the database administrator to create the view for you

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard