cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Caroline
Resolver I
Resolver I

table control 'expected text value' error on new columns

I have a form control which I have just added columns to from the data source. All the existing columns are fine, but the new ones are showing [object Object], and the text function is showing the 'expected text value' error. Previously added columns show correctly, regardless of the data type.

In the image below, the withdrawal reason was an existing column, and Age was added today. Any ideas on why this is happening?

 

Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions

So, I thought I'd take out the whole formula and add it one item at a time (again), to try and identify where the error is, and this time it was accepted without any errors. As the collection was looking good, I reloaded the data table (which was still showing [object Object] where the original data source column was an option set), and that is looking fine too.

Thanks for the assistance, @PowerAddict @v-siky-msft  

View solution in original post

17 REPLIES 17
PowerAddict
Most Valuable Professional
Most Valuable Professional

Hi,

Can you please tell me what your datasource is? Also can you try removing and adding your data source back?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

@PowerAddict The data source is a collection. I've cleared it and collected again, but am having the same issue.

PowerAddict
Most Valuable Professional
Most Valuable Professional

Can you share the format of column in your collection? Also can you share the datacard properties of the controls within the form that are facing this error?

If you would like, you could share the via a private message.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

@PowerAddict It's a table control that I'm having this issue with, not a form. How do I find the column format for the collection? Are they the same as the original data source that it is collecting from?

PowerAddict
Most Valuable Professional
Most Valuable Professional

Yes. The columns should be the sam, so yes the format of the datasource columns should be good. And yea, I would like to see how you are collecting from the data source.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)
v-siky-msft
Community Support
Community Support

Hi  @Caroline ,

 

It seems that the Age column is a nested table in your collection. The table control only support to show text.

You can check it in the File - Collections, the value of Age column would show like a grid as shown below.

I guess you added a table in Age column, can you share the formula you use to add Age column?

Snipaste_2019-11-14_17-02-25.png 

Best regards,

Sik

If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

@v-siky-msft @PowerAddict You're right, the columns that are not showing correctly are displaying a grid in the Collections tab. I've also just realised that all the columns in error were added to the collection from a different data source, which has presumably nested them. ( I thought the improved table control setting meant that the table could handle them)

I'm using two Collect() fomulas, one is based on the gallery.selected, the other filters another data source by the primary name of the gallery.selected. The latter are the ones that have been nested. 

A shortened version of the Collect() that I'm using is:

 

OnCheck=Collect(Reports,{'First name':BrowseLearnerGallery_2.Selected.'First name',Surname:BrowseLearnerGallery_2.Selected.Surname});Collect(Reports,{'Phone number':(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Cell phone number','Email address':(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Email address'})

 

I've tried using AddColumns() instead of the second Collect(), but I think I must be missing something, as it didn't add columns to the collection.

Is there another way around this?

Hi @Caroline ,

 

OnCheck=Collect(Reports,{'First name':BrowseLearnerGallery_2.Selected.'First name',Surname:BrowseLearnerGallery_2.Selected.Surname});Collect(Reports,{'Phone number':(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Cell phone number','Email address':(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Email address'})


Two filter expression above will return a single-column table, this is why the column is nested in the collection.

You can try to use First(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Cell phone number' OR LookUp(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN).'Cell phone number'.

These two formula will return a text/number, please take a try and check if your issue is fixed.

 

OnCheck=Collect(Reports,{'First name':BrowseLearnerGallery_2.Selected.'First name',Surname:BrowseLearnerGallery_2.Selected.Surname});Collect(Reports,{'Phone number':First(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Cell phone number','Email address':First(Filter(Learner_Details,SWN=BrowseLearnerGallery_2.Selected.SWN)).'Email address'})

 

By the way, the AddColumns returns a table, not modify the table, you have to use it together with ClearCollect() function.

 

ClearCollect(col2, AddColumns(col1,"ColumnName","Value"))

 

Best regards,

Sik

If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

@v-siky-msft @PowerAddict Thanks. I tried both First and LookUp, and both return 'Incompatible type. The item you're trying to put into a collection has a type that's not compatible with the collection.'

 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Top Solution Authors
Top Kudoed Authors
Users online (3,311)