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 / Update From Gallery no...
Power Apps
Unanswered

Update From Gallery not Updating SharePoint List

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

I have Gallery1.

The items of Gallery1 is varEmployeeRecord, from a gallery on another screen.

Phineas_0-1695786612135.png

I have the following in the Submit button; However, when I submit the SPList does no update, even though I get no errors, and I see 'ants' across the screen. What am I missing?
If(Edit_Individual_Suscriber_Item_ID_Fld.Text in _Client_List.ID,
    Update(
       Client_List,
       Defaults(Client_List),
         {Title: Upper(Edit_Individual_Subscriber_CML_ID_Fld.Text),
          Subscriber_Prefix: Upper(Edit_Individual_Suscriber_Prefix_ComboBox.Selected.Value),
          Subscriber_First_Name: Upper(Edit_Individual_Suscriber_First_Name_Fld.Text),
          Subscriber_Last_Name: Upper(Edit_Individual_Suscriber_Last_Name_Fld.Text),
          Subscriber_Email_Address: Upper(Edit_Individual_Suscriber_Email_Address_Fld.Text),
          Subscriber_Suffix: Upper(Edit_Individual_Suscriber_Suffix_ComboBox.Selected.Value),
          Subscriber_MI: Upper(Edit_Individual_Suscriber_MI_Fld.Text),
          Subscriber_Phone: Upper(Edit_Individual_Suscriber_Phone_Number_Fld.Text),
          Type_of_Subscriber: Upper(Edit_Individual_Suscriber_Type_Fld.Text),
          Subscriber_Source: Upper(Edit_Individual_Suscriber_Source_Dropdown.Selected.Value),
          Subscriber_Status: Upper(Edit_Individual_Suscriber_Status_Dropdown.Selected.Value),
          Comments: Upper(Edit_Individual_Suscriber_Comment_Fld.Text)})
;

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,351 Super User 2025 Season 2 on at

    Hi

     

    I notice in your Patch, you are doing an Update but with Defaults(Client_list) which means add.

    I don't see where you are doing a lookup (instead of Default(Client_list)) to find the row in the list you want to update.

     

    So can you validate you aren't accidentally adding records.

     

    Normally you would say

    Update(Client_List, LookUp(Client_List, UniqueIdFieldIMMakingUP = _Client_List.ID),

     {Title: Upper(Edit_Individual_Subscriber_CML_ID_Fld.Text),
              Subscriber_Prefix: Upper(Edit_Individual_Suscriber_Prefix_ComboBox.Selected.Value),
              Subscriber_First_Name: Upper(Edit_Individual_Suscriber_First_Name_Fld.Text),
              Subscriber_Last_Name: Upper(Edit_Individual_Suscriber_Last_Name_Fld.Text),
              Subscriber_Email_Address: Upper(Edit_Individual_Suscriber_Email_Address_Fld.Text),
              Subscriber_Suffix: Upper(Edit_Individual_Suscriber_Suffix_ComboBox.Selected.Value),
              Subscriber_MI: Upper(Edit_Individual_Suscriber_MI_Fld.Text),
              Subscriber_Phone: Upper(Edit_Individual_Suscriber_Phone_Number_Fld.Text),
              Type_of_Subscriber: Upper(Edit_Individual_Suscriber_Type_Fld.Text),
              Subscriber_Source: Upper(Edit_Individual_Suscriber_Source_Dropdown.Selected.Value),
              Subscriber_Status: Upper(Edit_Individual_Suscriber_Status_Dropdown.Selected.Value),
              Comments: Upper(Edit_Individual_Suscriber_Comment_Fld.Text)}

    )

    OR Since its a Gallery you can say

    Update(Client_List, GalleryX.Selected,

     {Title: Upper(Edit_Individual_Subscriber_CML_ID_Fld.Text),
              Subscriber_Prefix: Upper(Edit_Individual_Suscriber_Prefix_ComboBox.Selected.Value),
              Subscriber_First_Name: Upper(Edit_Individual_Suscriber_First_Name_Fld.Text),
              Subscriber_Last_Name: Upper(Edit_Individual_Suscriber_Last_Name_Fld.Text),
              Subscriber_Email_Address: Upper(Edit_Individual_Suscriber_Email_Address_Fld.Text),
              Subscriber_Suffix: Upper(Edit_Individual_Suscriber_Suffix_ComboBox.Selected.Value),
              Subscriber_MI: Upper(Edit_Individual_Suscriber_MI_Fld.Text),
              Subscriber_Phone: Upper(Edit_Individual_Suscriber_Phone_Number_Fld.Text),
              Type_of_Subscriber: Upper(Edit_Individual_Suscriber_Type_Fld.Text),
              Subscriber_Source: Upper(Edit_Individual_Suscriber_Source_Dropdown.Selected.Value),
              Subscriber_Status: Upper(Edit_Individual_Suscriber_Status_Dropdown.Selected.Value),
              Comments: Upper(Edit_Individual_Suscriber_Comment_Fld.Text)}

    )

    or

    Update(Client_List, ThisItem,

     {Title: Upper(Edit_Individual_Subscriber_CML_ID_Fld.Text),
              Subscriber_Prefix: Upper(Edit_Individual_Suscriber_Prefix_ComboBox.Selected.Value),
              Subscriber_First_Name: Upper(Edit_Individual_Suscriber_First_Name_Fld.Text),
              Subscriber_Last_Name: Upper(Edit_Individual_Suscriber_Last_Name_Fld.Text),
              Subscriber_Email_Address: Upper(Edit_Individual_Suscriber_Email_Address_Fld.Text),
              Subscriber_Suffix: Upper(Edit_Individual_Suscriber_Suffix_ComboBox.Selected.Value),
              Subscriber_MI: Upper(Edit_Individual_Suscriber_MI_Fld.Text),
              Subscriber_Phone: Upper(Edit_Individual_Suscriber_Phone_Number_Fld.Text),
              Type_of_Subscriber: Upper(Edit_Individual_Suscriber_Type_Fld.Text),
              Subscriber_Source: Upper(Edit_Individual_Suscriber_Source_Dropdown.Selected.Value),
              Subscriber_Status: Upper(Edit_Individual_Suscriber_Status_Dropdown.Selected.Value),
              Comments: Upper(Edit_Individual_Suscriber_Comment_Fld.Text)}

    )

     

    Not 

     Update(
           Client_List,
           Defaults(Client_List),

     

    If you want to update
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at

    Yes, you are correct. I made the update.

    There is a second coding group below it that is getting the following error with the updated code. What are your thoughts? - 'Incompatible type. The collection can't contain values of this types.'

    Phineas_0-1695793746357.png


    This item associated with the group causing the error above are circled in red below. All of these fields are using LookUp language to pull data from a different list than the gallery in which they are placed. 

    Phineas_1-1695794037901.png

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard