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: The...
Power Apps
Answered

Incompatible Type: The column in data source you're updating expects a 'Number' type and you're using a 'Text' type.

(0) ShareShare
ReportReport
Posted on by 20
I'm having trouble with the coding on my PowerApp and need help. My data source is a SharePoint List. How do I fix an Incompatible Type error? I'm in the process of coding for the ADD button on a form. I'm attempting to use the collect function to make this happen. However, I continue to receive an error that tells me the "LastFour" column in data source you're updating expects a 'Number" type and you're using a 'Text' type. I'm not sure what ending I'm needing to make this work (e.g. .Text, .Selected , etc.) I've been searching and have come up blank.  Is there a way to get this to happen. The "LastFour" column is my only column from my SharePoint List whose category is Number. I've attached a screenshot of the Collect Function I've created.
 
DJfinley_0-1680118224252.png

 

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    Wrap that in a Value() call. So Value(LastFour) and see if that fixes the error. This is essentially typecasting the text value into a number value.

  • Jessica_Okezie1 Profile Picture
    2 on at

    I’m having an issue with this Code. 
    incompatible Type. The ‘OrdeID’ Column in the data source you’re updating expects a Text Type and you’re using a Number Type. 
    I went to my SharePoint List and corrected the column to use Text Type and it hasn’t corrected itself. 
    how do I go about it? 

    image.jpg
  • jofergalope Profile Picture
    6 on at

    hello, i'm having a problem where it says 
    "Incompatible Type. The 'Date' column in the data source you're updating expects a 'Text' type and you're using a 'Time' type

     

    this is my function:


    Collect(
    Leak_Reporting2,
    {
    Date:
    Value(date.Selected.Value) +
    Time(
    Value(HourValue1_1.Selected.Value),
    Value(MinuteValue1_1.Selected.Value),
    0
    ),
    'WCAV Unit': wcavunit.Text,
    'Reported By:': reportedby.Text,
    'Type of Leak': typeofleak.Text,
    'MRU': mru.Text,
    'Complete Adress(provide house number if possible)': completeaddress.Text,
    'Nearest Landmark/Meter Number': nearestlandmark.Text,
    'Contact Number(if available)': contactnumber.Text,
    'CAN(if available)': can.Text,
    'Chlorine Test': chlorinetest.Text,
    'Remarks': remarks.Text,
    }
    )

     

    -

    I hope you can help me with this.

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

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard