cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SaWu
Level 8

DataSourceInfo.MaxLength returning nothing

Hello

Please be so kind as to read my full post before responding.
Thank you for your consideration.

In my PowerApps retrieving MaxLength (for Text fields) via DataSourceInfo from Dynamics/CDS does not seem to be working anymore.
I only get empty results.
Last checked with
Session ID: cdc39558-0a90-4b1d-9849-3de65c7eef75
PowerApps 3.19061.14
Instance version 9.1.0.5426
Here two screenshots of a custom entity
image.pngimage.png
Even with something like a standard User Entity I get nothing

image.png

How do I get MaxLength back?

Thank you,
    Sa Wu.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Lars4
Level: Powered On

Re: DataSourceInfo.MaxLength returning nothing

Is the switch "Improve data source experience and Common Data Service views" turned on or off? 

Do you see the same behavior if you create a new app from scratch? 

View solution in original post

SaWu
Level 8

Re: DataSourceInfo.MaxLength returning nothing

Hi

There also has been a fix rolled out sometime around December 4 (checked after info from MindTree support).
Now DataSourceInfo.MaxLength seems to work again irrespective of "Improve data source experience and Common Data Service views"

Thanks,
    Sa.

View solution in original post

9 REPLIES 9
Community Support Team
Community Support Team

Re: DataSourceInfo.MaxLength returning nothing

Hi @SaWu 

 

Thanks for your post.

The issue is reproduce on my side.

And I have submit this to my team.

Will update ASAP once get the reply.

 

Best Regards.

Yumia

Rebetcha
Level 10

Re: DataSourceInfo.MaxLength returning nothing

@v-yuxima-msft , any progress to report on this issue? I am delivering an app in a day and have multiple attendees with this issue. 

 

Lars4
Level: Powered On

Re: DataSourceInfo.MaxLength returning nothing

What is the state of the feature switch "Improve data source experience and Common Data Service views" for your app?

What happens if you change it? In my experience it changes some MaxLength behavior.

 

 

Highlighted
SaWu
Level 8

Re: DataSourceInfo.MaxLength returning nothing

Hi @v-yuxima-msft 

Has there been an update on this?

Thank you,
    Sa.


@v-yuxima-msft wrote:

Hi @SaWu 

 

Thanks for your post.

The issue is reproduce on my side.

And I have submit this to my team.

Will update ASAP once get the reply.

 

Best Regards.

Yumia




Rebetcha
Level 10

Re: DataSourceInfo.MaxLength returning nothing

It was on.
It was during an App in day I presented at. This setting is by default nowadays for every new app.
Haven't tried it with the setting switched of though.
SaWu
Level 8

Re: DataSourceInfo.MaxLength returning nothing

Hello

The issue still persists:
image.png
Last tested with:
Session ID: bbdabe1a-6d36-4910-af9f-89ce0c7fd69c
PowerApps 3.19093.16


Thank you,
    Sa Wu.

Lars4
Level: Powered On

Re: DataSourceInfo.MaxLength returning nothing

Is the switch "Improve data source experience and Common Data Service views" turned on or off? 

Do you see the same behavior if you create a new app from scratch? 

View solution in original post

SaWu
Level 8

Re: DataSourceInfo.MaxLength returning nothing

Hi @Lars4 
Thanks, you were right that the "Improve Data Source experience and Commond Data Service Views" feature was the missing part.
With a fresh App this is on be default and it works.
image.pngIn my orignal older App it isn't turned on and it doesn't work
image.png
Just out of curiosity I disabled the feature in my fresh App, after removing data sources, and added my data sources again.
Without this feature, in a fresh App, DataSourceInfo.MaxLength does not work.

Moreover, toggling this feature requires removal and re-adding all data sources, potentially breaking my App elsewhere in the meantime... not sure I'll go through that experience with hundreds of controls missing their data sources and the App Checker going haywire...
image.png

Thanks,
    Sa.

SaWu
Level 8

Re: DataSourceInfo.MaxLength returning nothing

Hi

There also has been a fix rolled out sometime around December 4 (checked after info from MindTree support).
Now DataSourceInfo.MaxLength seems to work again irrespective of "Improve data source experience and Common Data Service views"

Thanks,
    Sa.

View solution in original post

Helpful resources

Announcements
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.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (8,685)