web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collection: Excepting ...
Power Apps
Answered

Collection: Excepting a Number value.

(0) ShareShare
ReportReport
Posted on by 901

Happy Wednesday!

 

Trying to load SQL data into a collection and notice that "CLAIMID" is a data type varchar() in SQL , is there a workaround or do i have to reach out to the SQL Developer team and ask them to change the data type?

 

SQL.PNG

 

The SQL connector is pointing to a view.

 

Always as thank you so much in advance.

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @oappdev 

    I would reach out to the SQL developer team and ask them to change the data type.

    On the basis that the data source is a view, the SQL developer should be able to cast CLAIMID to an int, and therefore be able to make this change without modifying the underlying table.

    The only other option would be to use the syntax Value(CLAIMID) >= 2905902, but this would result in an inefficient/non-delegable expression.

    I'm also curious as to why you're collecting these records into a collection. This is the typical pattern I see when app builders attempt to overcome delegation limitations. SQL provides much better delegation support, so this type of syntax is often not necessary.

  • oappdev Profile Picture
    901 on at

    Hi @timl 

    Thank you so much for the fast response, much appreciated.  You are correct, it was more of a quick way to load data from an SQL view to a collection. Testing different approaches and came to that error.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard