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 / Incompatible Type. Col...
Power Apps
Unanswered

Incompatible Type. Column in data source expects a "Number" type your using a "Text" type

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using an Excel Online connector to my Canvas app. 

 

I want to Collect the datasource on app load and then patch the Datasource with new/edit records as I work with them on Local Collection Storage.

 

According to Excel the types are:

Text, Number, Text, Text

MLawlor_0-1647020848240.png

 

However when I Collect the Table from DataSource (Excel Sheet) I cannot run it as I get the Error: Incompatible Type. Column in data source expects a "Number" type your using a "Text" type. 

 

 

ClearCollect(CurrencyCollection,Currency2);
ClearCollect(tempCurCollection,Currency2);
ForAll(tempCurCollection, Collect(CurrencyCollection,ThisRecord));

 

 

Neither method works, (im aware they're basically the same thing).

 

It's true, when I load it in to a separate Collection I haven't predefined values on, It loads in as a Text Field, even if in my Excel Sheet it has been noted as a number.

 

I have found a workaround to get the values to load in: 

 

 

ClearCollect(tempCurCollection,Currency);
ForAll(tempCurCollection, Collect(CurrencyCollection, 
{
 Cur_Name: ThisRecord.Cur_Name,
 Date:ThisRecord.Date,
 ExchangeRate: Value(ThisRecord.ExchangeRate)
})); 

 

 

 

But as I mentioned I want to maintain the sync between the two, I know if you just load in the collection without explicity stating values (like I have done above) then you can "Patch" the record back as they save the PowerAppsID too. 

 

I think I could also do an UpdateIf to maintain the sync but, in terms of code friendliness, finding a way to force the schema from Excel would really help.

 

Can anyone think of a way around this problem? 

 

Thanks in advance, 

Michael 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    Data types are automatically set for the Excel connector, the trick as in the below topic can help you manipulate that process:

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Excel-Data-Type-date-vs-string/td-p/360540

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your reply. However, It didn't work, automatically reverted to the original problem.

     

    The creation of an extra collection for this just to enter seems a little much but for now it works, if there is a more straight forward solution that works I would implement it.

     

     

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @Anonymous,

     

    If it's an option for you, I would probably import the data from Excel to a SharePoint list and use that as the data source, rather than working from Excel direct. 

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