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 Apps
Answered

Patch Errors

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

I can't determine the issue or how to correct it.


Error messages -

Invalid argument type (Table). Expecting a Record value instead.
The function 'Patch' has some invalid arguments.

Thank you!

Phineas_0-1664991309571.png

 

Patch('Product Order List',
ForAll(Filter(Gallery4.AllItems, !rem),
{ID: ID,
WindowSizeNumber: TextInput1.Text,
WindowSizeWidth: Dropdown1.SelectedText.Value,
WindowSizeHeight: Dropdown1_1.SelectedText.Value,
WindowQuantity: Dropdown1_2.SelectedText.Value,
WindowCoveringType: Dropdown1_3.SelectedText.Value,
WindowFrequencyOfUse: Dropdown1_4.SelectedText.Value,
WindowShape: Dropdown1_5.SelectedText.Value,
Title: Self.LastSubmit.ID
}
)
);

Categories:
I have the same question (0)
  • Manan-Malhotra Profile Picture
    621 Super User 2024 Season 1 on at

     

    Please try it this way @Phineas 

     

    ForAll(Filter(Gallery4.AllItems, !rem),
    Patch('Product Order List',
    Defaults('Product Order List'),
    {ID: ID,
    WindowSizeNumber: TextInput1.Text,
    WindowSizeWidth: Dropdown1.SelectedText.Value,
    WindowSizeHeight: Dropdown1_1.SelectedText.Value,
    WindowQuantity: Dropdown1_2.SelectedText.Value,
    WindowCoveringType: Dropdown1_3.SelectedText.Value,
    WindowFrequencyOfUse: Dropdown1_4.SelectedText.Value,
    WindowShape: Dropdown1_5.SelectedText.Value,
    Title: Self.LastSubmit.ID
    }
    )
    ));

     

     

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Phineas 

    You need to make sure the column names are exact for your data source and that the types match.

     

    One thing off the bat (that we talked about in our lasts posts) is that your Title column is Text and you are putting an integer into the text.

     

    Please consider changing your Formula to the following:

    Patch('Product Order List',
     ForAll(Filter(Gallery4.AllItems, !rem),
     {ID: ID,
     WindowSizeNumber: TextInput1.Text,
     WindowSizeWidth: Dropdown1.Selected.Value,
     WindowSizeHeight: Dropdown1_1.Selected.Value,
     WindowQuantity: Dropdown1_2.Selected.Value,
     WindowCoveringType: Dropdown1_3.Selected.Value,
     WindowFrequencyOfUse: Dropdown1_4.Selected.Value,
     WindowShape: Dropdown1_5.Selected.Value,
     Title: Text(Self.LastSubmit.ID)
     }
     )
    );

     

    Also, do not use SelectedText!! It is a deprecated property.

     

    I hope this is helpful for you.

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

    Every moment you volunteer has been helpful, Thank you!

    The 'Table' error is still showing, and "Name it's valid, 'Value' is not recognized" is showing for the dropdowns.

    Phineas_0-1664992550327.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Phineas 

    What are the Items properties of your dropdown controls?  (looks like specifically Dropdown1_2, 1_3 and 1_4)

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

    All referenced Dropdowns have manually entered lists within the Items property (i.e. - ["1 in.","2 in.","3 in."]).

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Phineas 

    Then Selected.Value would work perfectly!

    Why are you getting an error on it?

    Can you post the exact Items property formula for Dropdown1_2?

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

    Sorry, Stepped away.

    Here is a screenshot.

    Phineas_3-1665015771429.png

     

     

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Phineas

     

    Yes, so those have all tables with records with a Value column!

    So the formula should be working as it is.

     

    Patch('Product Order List',
     ForAll(Filter(Gallery4.AllItems, !rem),
     {ID: ID,
     WindowSizeNumber: TextInput1.Text,
     WindowSizeWidth: Dropdown1.Selected.Value,
     WindowSizeHeight: Dropdown1_1.Selected.Value,
     WindowQuantity: Dropdown1_2.Selected.Value,
     WindowCoveringType: Dropdown1_3.Selected.Value,
     WindowFrequencyOfUse: Dropdown1_4.Selected.Value,
     WindowShape: Dropdown1_5.Selected.Value,
     Title: Text(Self.LastSubmit.ID)
     }
     )
    );

     

    What issue are you seeing with it now?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Phineas,

    I have found there is a duplicated case here that you have found the solution.

    I will mark here and close this case.

    Thanks for your cooperation.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard