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 / Bad Bug / Error ? Save...
Power Apps
Answered

Bad Bug / Error ? SaveData (Collection, "mylocalData") --- if a Image is in the Collection:

(0) ShareShare
ReportReport
Posted on by 99

= BUG:  SaveData Error ... 
"There was a problem saving your data. Name could be too long."
It do not work on a mobile phone. NO Data will be stored on the phone, if an Image is in the collection.
If I store only Text (put away the image, empty); then it works.

In the Studio the error is shown but it works Is there also not! 

Destination: I want store in offline-mode local data (text/fotos) and send to the server, when back online!
Please urgent help needed.

 

Best regards Jens / Hannover

 

here the code lines:


Collect(LocPic; {BVNR:BVNR.Text; GEWERKNR:GEWERKNR.Text; BEM:"Freie Bemerkungen"; FOTO:buffBild}));;

SaveData(LocPic; "LocPic")

 

 

Categories:
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi jeanshak,

     

    In the collection, how do you get the photo? Is the photo saved under Media>Image?

     

    In the code you provided, I guess that “buffBild” should be the name of the photo.

     

    To test this issue, I create the collection using two different codes(set the screen’s OnVisible property).

     

    Test Code1, I will get the image through a Add picture control:
    Collect(pictest,{name:Label1.Text,photo:Image1.Image});SaveData(pictest,"pictest")

     

    Test Code2, I will get the image which is saved under Media>Image:
    Collect(pictest,{name:Label1.Text,photo:apple});SaveData(pictest,"pictest")

     

    Then I run the app on iPhone, I don’t get the error message you mentioned. The data in the collection can be displayed on a gallery in offline mode.

     

    Please show me more details about your code. Please also try again with it.


    Best regards,
    Mabel Mao

  • jeanshak Profile Picture
    99 on at

    Thanks! 

    the problem was that I named the the Image like "upImage" BUT I forgot add the extension "Image" 

    CODE OK:

    If (GEWERKNR.Text="" || BVNR.Text="" ;
    "NIX-tun";

    Collect(LocPic; {BVNR:BVNR.Text; GEWERKNR:GEWERKNR.Text; BEM:"Freie Bemerkungen"; FOTO:upImage.Image}));;

    Reset(BVNR);;
    Reset(GEWERKNR);;
    SaveData(LocPic; "LocPic")

    CODE NOT OK:

    Collect(LocPic; {BVNR:BVNR.Text; GEWERKNR:GEWERKNR.Text; BEM:"Freie Bemerkungen"; FOTO:upImage}));;

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard