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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Problem SaveData with collect

(0) ShareShare
ReportReport
Posted on by 41

Hi

 

I have this event on select button and message box with error "error when saved data because the name is long"

 

Refresh('[Access].[Clienti]');;Clear(Clienti1) ;;Collect(Clienti1;(Filter('[Access].[Clienti]';  CodiceUtenteSharepointCliente=Utente.Text && (FatturatoAnnoPrecTot +  FatturatoAnnoCorrente) <>0 )));;SaveData (Clienti1;"CliA1") 

 

thank

I have the same question (0)
  • v-yamao-msft Profile Picture
    on at
    Re: Problem SaveData with collect

    Hi giancarlo,

     

    The table name you created using the Collect function is “Clienti1”, right?


    When using Collect function, we need to specify a name for the data source that you want to add data to, then the new records.


    The function configuration might looks like Collect( IceCream, { Flavor: "Pistachio", Quantity: 40 }, { Flavor: "Orange", Quantity: 200 } )

     

    Please check the Collect function and please feel free reply if you need more help.

     

     

    Best regards,
    Mabel Mao

  • giancarlo Profile Picture
    41 on at
    Re: Problem SaveData with collect

    Hi

     

    Yes my collect name is Clienti1, and imported record from table sharepoint azure db. this collect it's OK and i use in form ....

     

    the problem is when save this collect in a local ... i have the error in save data "the name is too long"

     

     

    Thank 

     

     

     

     

  • giancarlo Profile Picture
    41 on at
    Re: Problem SaveData with collect

    I have same problem also with simple example:

     

    Button A with this code on select

    Collect( IceCream; { Flavor: "Pistachio"; Quantity: 40 }; { Flavor: "Orange"; Quantity: 200 } )

     

    Button B with this code on select

    SaveData(IceCream;"Local1")

     

    In the form, in web edit error this name is too long. .!!!!

     

     

     

     

  • v-yamao-msft Profile Picture
    on at
    Re: Problem SaveData with collect

    Hi giancarlo,

     

    Thanks for updating.


    On PowerApps studio for Web, I can reproduce this issue.


    The same SaveData function works fine on PowerApps studio for Windows, while on Web player, an error message “There was a problem saving your data. Name could be too long” will be shown after I clicked the SaveData button.

    3.PNG

    As a temporary workaround, please consider to use PowerApps studio for Windows. I will try to report this issue from my side and back to you once I got any updates.

     


    Best regards,
    Mabel Mao

  • v-yamao-msft Profile Picture
    on at
    Re: Problem SaveData with collect

    Hi giancarlo,

     

    I have some updates for you.

     

    Currently SaveData function has not been supported on PowerApps Web Studio, but seems that PGs are working on it, and it will be coming soon.


    Best regards,
    Mabel Mao

  • giancarlo Profile Picture
    41 on at
    Re: Problem SaveData with collect

    Hi Mabel Mao

     

    Thank for information, waiting for the update

     

     

     

    Best regards

    Giancarlo

     

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard