cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AzureLearner
Level: Powered On

DataSourceInfo is invalid

I am facing same error for MaxLength . I have changed it to - DataSourceInfo([@Table1],MaxLength,"Id") , still I can see same error. Is there any other way to fix it?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: DataSourceInfo is invalid

Hi @AzureLearner 

 

The 3rd param is the column name

DataSourceInfo function intellicense will let you pick specific column names

Not all column types work

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

Highlighted
Community Support Team
Community Support Team

Re: DataSourceInfo is invalid

Hi @AzureLearner ,

The right syntax of DataSourceInfo function is :

DataSourceInfoDataSourceInformationColumnName )

The information shoule be the format like this:

DataSourceInfo.DisplayName

DataSourceInfo.MaxLength

DataSourceInfo.MaxValue

So, try this formula:

DataSourceInfo([@Table1],DataSourceInfo.MaxLength,"Id")

Here's a doc about this function for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datasourceinfo

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: DataSourceInfo is invalid

Hi @AzureLearner 

 

The 3rd param is the column name

DataSourceInfo function intellicense will let you pick specific column names

Not all column types work

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

Highlighted
Community Support Team
Community Support Team

Re: DataSourceInfo is invalid

Hi @AzureLearner ,

The right syntax of DataSourceInfo function is :

DataSourceInfoDataSourceInformationColumnName )

The information shoule be the format like this:

DataSourceInfo.DisplayName

DataSourceInfo.MaxLength

DataSourceInfo.MaxValue

So, try this formula:

DataSourceInfo([@Table1],DataSourceInfo.MaxLength,"Id")

Here's a doc about this function for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datasourceinfo

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

AzureLearner
Level: Powered On

Re: DataSourceInfo is invalid

@RezaDorrani @v-yutliu-msft :Thanks a lot!



 

robertb
Level: Powered On

Re: DataSourceInfo is invalid

Workaround hack for the DataSourceInfo-always-true bug.

1. Create a new Sharepoint list with 1 row

2. Grant read permission only to the group you want to test

3. Add a hidden Gallery control to your PowerApp that refers to your new list

4. The Gallery will only load rows if the user has that permission, so use CountRows to test this.

 

Robert.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (2,935)