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 / Invalid Argument Type ...
Power Apps
Unanswered

Invalid Argument Type (Error). Expecting a Table Value Instead

(0) ShareShare
ReportReport
Posted on by 16

Hi All,

 

Looking for some advice with this error. I have 2 normal clearcollect statements attached to buttons on different pages within the same app.

 

They both do the same thing E.G

ClearCollect(Invoice, {Unique_ID:Unique_ID.Text)

ClearCollect(Report {Unique_ID:Unique_ID_BR.Text)

 

but one keeps bring back the same error Invalid Argument Type (Error). Expecting a Table Value Instead.

 

This is a recent thing that happens, its been working fine the past few weeks

 

Any ideas on how to fix this?

 

Thanks

Categories:
I have the same question (0)
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello,

     

    Can you try something like :

    ClearCollect(Invoice, {Unique_ID:Unique_ID.Text})

    ClearCollect(Report {Unique_ID:Unique_ID_BR.Text})

     

    Best regards,

    Alaa

  • GlitchedDuck Profile Picture
    16 on at

    Yeah sorry my code is the same as that, i just missed it out when putting it in here

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Allright. So this is because the clearcollect expect a table or an array value so what you can do is the following :

    ClearCollect(Invoice, [{Unique_ID:Unique_ID.Text}])

    ClearCollect(Report [{Unique_ID:Unique_ID_BR.Text}])

     

    Best regards,

    Alaa

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

    Hi @GlitchedDuck,

    Have you resolved your problem?

    Do you mean that Unique_ID expects table value?

    Could you please show me your app condiguration, what is the Unique_ID?

     

    Actually, if the Unique_ID expects table value, a hard code format could not solve the issue. You should format your value as a table structure.

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