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 / savedata - "There was ...
Power Apps
Unanswered

savedata - "There was a problem saving your data. Name could be too long"

(0) ShareShare
ReportReport
Posted on by

I am building my first app utilizing Savedata/Loaddata to keep some local user settings and unsent orders caused by lack of connectivity. I've searched and searched, and I can't seem to figure out what the issue is. Hopefully someone here can?

 

In App.OnStart I have Loaddata functions to recall saved data, and if no files were found to create the collections. (i.e. first time user). If it's a new file I have it Savedata and I don't see any issues.

I have a Settings Screen I've built where the user can modify some of the record fields in that data collection. The controls patch part of the record, and then when the "Save" button is pressed, it patches others and then is supposed to Savedata the collection but I get the error I put in the subject.

I've tried versions 3.23033.11, .14 & .15. I've tried putting in the ClearData command before the save data. I've tried on both the web player and on my iphone and received the same issue.

The collection is only one record, with 26 fields. Does anyone know what I'm doing wrong?

Thank you!

 

 

 

//Test network connection
If(
 !Connection.Connected,
 Notify(
 "No Connection to Server, Please try again at another time.",
 NotificationType.Error
 ),
//Display loading/working spinner
 UpdateContext({SettingsWorking: true});
 
//If user chooses not to keep order history, clear the collection
If(
 !togPhone_Settings_Theme_1,
 Clear(colOrderHistory)
 );
 
//Check if users has changed markets
If(
 cbPhone_CommunityChoice_1.Selected.Name <> First(colUserData).MarketName,
//If user has, update UserData
 Patch(
 colUserData,
 First(colUserData),
 {
 MarketName: cbPhone_CommunityChoice_1.Selected.Name,
 MarketCode: Value(cbPhone_CommunityChoice_1.Selected.LawsonID),
 MarketStreet: cbPhone_CommunityChoice_1.Selected.StreetAddress,
 MarketCity: cbPhone_CommunityChoice_1.Selected.City,
 MarketState: cbPhone_CommunityChoice_1.Selected.State.Value,
 MarketZip: cbPhone_CommunityChoice_1.Selected.Zip,
 MarketFSE: cbPhone_CommunityChoice_1.Selected.FSE.DisplayName,
 MarketFSEmail: cbPhone_CommunityChoice_1.Selected.'FSE Mail'
 }
 );
 
//Retrieve new market printers if market has changed
Set(
 varMarketName,
 First(colUserData).MarketName
 );
 ClearCollect(
 colMarketPrinters,
 Filter(
 'FSEApp-Printers',
 Active = true,
 Market.Value = varMarketName
 )
 );
 
//Set variable if market is utilizing printer list
If(
 CountRows(colMarketPrinters) > 0,
 Set(
 varMarketPrintersExist,
 true
 ),
 Set(
 varMarketPrintersExist,
 false
 )
 )
 );
 
//Patch UserData with set environmental settings
Patch(
 colUserData,
 First(colUserData),
 {
 PhoneBodyFontSize: sliderPhone_BodyFont.Value,
 PhoneTitleFontSize: SliderPhone_TitleFont.Value,
 PhoneHeaderFontSize: sliderPhone_HeaderFont.Value,
 PreferenceTheme: If(
 togPhone_Settings_Theme,
 "Dark",
 "Light"
 ),
 PreferenceMemory: togPhone_Settings_Theme_1,
 PreferenceMemoryLength: ddPhone_Yellow_1.Selected.Value
 }
 );
 
//Clear stored User Data
ClearData("psuserdata");
 
//Save User Data
SaveData(
 colUserData,
 "psuserdata"
 );
 
//Navigate back home
Back(ScreenTransition.UnCover);
 
//Hide loading/working spinner
UpdateContext({SettingsWorking: false})
)

 

 

Categories:
I have the same question (0)
  • SIH007 Profile Picture
    14 on at

    no solution so far? I am having the same issue

  • NielsNachtegaal Profile Picture
    115 on at

    @iWendol

     

     Seems to be after publishing, (older) published apps, still works fine. There are a couple of topics about this and whats was stated is that Microsoft is aware of the issue and will be resolved(hopefully) within a couple of weeks. In the meantime, A rollback of power apps works for some. Not sure what version it was. Hope that helped a lil 😄

  • WiredForSound Profile Picture
    50 Microsoft Employee on at

    When did you post this?  I am having this issue on one of my new apps and can't seem to shake this bug.    Where did you see that microsoft is aware of this?  Why does it work in some of my apps and not others?

  • SIH007 Profile Picture
    14 on at

    2 - 3 weeks ago, obviously Microsoft did not solve the problem so far 😔

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 428

#2
Haque Profile Picture

Haque 338

#3
timl Profile Picture

timl 333 Super User 2026 Season 1

Last 30 days Overall leaderboard