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 / Collection showing as ...
Power Apps
Unanswered

Collection showing as Variable instead of Table

(1) ShareShare
ReportReport
Posted on by 270
Hi,
 
I have an app where everything was working fine.  I deleted a Dataverse table and imported an updated version - I made sure all columns are the same etc.
 
As soon as I did that I noticed an error.  A Collection is showing as causing a problem - on deeper scrutiny I noticed that the Collection is showing as a Variable instead of Table.
 
Anyone know why this might be happening - I changed no code at all and the code in error is based on 5 tables in a Switch - I only updated 1 of those tables. The error starts at the Switch level stating it has some invalid arguments.  If I change the collection name in all the appropriate spots the error goes away until I run it and then it returns the new collection to a Variable instead of Table.
 
Something seems to have corrupted.  
 
See below - TempDataAscTemp1 is not a table.
 
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Show the error in the Switch statement.
    How do you initialize the collection in the app? If this isn't done properly you can run into trouble if data structures it depends on are changed.
    Did you try saving and republishing the app?
  • Gargoolgala Profile Picture
    270 on at
    Hi ronaldwalcott,
     
    you prompted me to revert to an old version as it seemed that today a new PA version was pushed by MS.
     
    It is now all working - for now.  I will see what happens when MS force the latest version on my app again.
     
    Let's hope it was simply a glitched upgrade by MS - grrrrr.
  • ErikM9 Profile Picture
    163 on at
    As  stated, it explains my issue.
    I made the mistake of changing a column type in SharePoint. Now my app is littered with errors.
    I've gone through the app to make sure that all values are text and not just number, as it was originally. But that didn't do the trick.
    Though, when I recreate the collection but, under a new collection name, that works.
     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard