Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Update From Gallery not Updating SharePoint List

(0) ShareShare
ReportReport
Posted on by 4,700 Super User 2025 Season 1

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:
  • Phineas Profile Picture
    4,700 Super User 2025 Season 1 on at
    Re: Update From Gallery not Updating SharePoint List

    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

  • Verified answer
    Michael E. Gernaey Profile Picture
    40,777 Super User 2025 Season 1 on at
    Re: Update From Gallery not Updating SharePoint List

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard