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 / 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,687 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard