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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching items from a ...
Power Apps
Unanswered

Patching items from a gallery acting as a new form.

(0) ShareShare
ReportReport
Posted on by

Hello, 

I'm using a gallery, with a combo box in it and a text box, this controls get added dynamically into the gallery when clicking on add new line button, because it doesn't have predeterminated amount of rows of info to be added.

so I'm having a problem when I'm trying to save, the items from the gallery to the sharepoint List and I want this items to be created as a new item, as if this gallery was a form creating new items.

I'm using this on the on select button: 

ForAll(
    carga_hs_gal.AllItems;
    Patch(
        'Propuesta Carga de Hs ';
        Defaults('Propuesta Carga de Hs ');
        {
            Productos: Productos_combo.Selected;
            Horas: Hs_txt
        }
    )
)
But it gives me a patch error (operation not valid)
tried changing also what I use into this other version: 
Patch(
    'Propuesta Carga de Hs ';
    ForAll(
        carga_hs_gal.AllItems;
        {
            Productos: Productos_combo.Selected;
            Horas: Hs_txt
        }
    )
)
But the patch keeps giving an error. If I use the same to save it into a new collection, it saves fine, but why not into a sharepoint list?
Any idea what could it be or how to fix it?
Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,674 Super User 2024 Season 1 on at

    @MarTorres07 -

     

    1. Could you take a screenshot of the error message.

     

    2. As a test, can you check if patching a single record also returns an error?

     

    Patch(
     'Propuesta Carga de Hs ';
     Defaults('Propuesta Carga de Hs '),
     {
     Productos: Productos_combo.Selected;
     Horas: Hs_txt
     }
    )

     

  • MarTorres07 Profile Picture
    on at

    Sorry I figured out already it was a dumb mistake lol just didn't realize didn't do the .text after the text input.

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard