You have figured out how to use the Patch function but when you run the code you get the following error:
The requested operation is invalid. Server response: … failed: Object must implement IConvertible
Most low coders will think of a nice car without a roof now!
It’s time for another real SharePain as this high code error message in a low code platform will confuse many people.
Object must implement IConvertible in Power Apps 1
Patch the wrong way
We need to have a more detailed look at the code here.
Object must implement IConvertible in Power Apps 2
In my code the TextInput1_1 control is holding the data that I want to use to update my list item in SharePoint. it is so easy to just type the control name and assume that all is ok.
But this is wrong, TextInput1_1 is a control and not a piece of string (aka text). To get to the data in the control TextInput1_1.Text will need to be used.
Object must implement IConvertible in Power Apps 3
It is such an easy mistake to make, and such unclear error message to get.
Trying to understand the error message
Sorry we will have to go into coding language here. I’ve had a look around for an easy to understand explanation about IConvertible. From the referenced site I got:
Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value.
Any clearer now?
I prefer the following:
Turn something complicated into something simple.
So taking “Object must implement IConvertible” back into Power Platform language:
The TextInput control returns information that cannot be used as a text, number or date value.
Wouldn’t it be nice if complicated and difficult to understand error messages were translated into something more human like?
Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like.
I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@sharepains.com
Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like.
I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@sharepains.com
16 thoughts on “Object must implement IConvertible in Power Apps”
That is the best, and only, explanation of that error I have ever seen, and I have spend something like 7 hours on support calls with Microsoft support trying to remove that error. In my situation, the error was related to that specific problem though. I want to add, for the community, the solutions that MS Support attempted:
Refresh the data source
Okay, that about covers it. That worked in 1 of the three scenarios that inspired me to open a ticket. The other two were resolved by re-creating the code, as I recall.
My take-away is that this error is triggered by more situations than the developers originally envisioned.
Thanks for saving me hours of trial and error.
First time I’ve experienced this problem and the only time lost was the 5 minute Google search.
Appreciate you, Pieter!!
Mine errors on Patching a numeric column with 20240721225112600000. Short ones like 2025, 1234567. Ugh. It just can’t parse/read/save that long numeric value.
That is the best, and only, explanation of that error I have ever seen, and I have spend something like 7 hours on support calls with Microsoft support trying to remove that error. In my situation, the error was related to that specific problem though. I want to add, for the community, the solutions that MS Support attempted:
Refresh the data source
Okay, that about covers it. That worked in 1 of the three scenarios that inspired me to open a ticket. The other two were resolved by re-creating the code, as I recall.
My take-away is that this error is triggered by more situations than the developers originally envisioned.
Thank you for your comment. I’m glad that this has helped you.
Whew… Thanks for this comment. I simply changed it to .text and now I am happy and the previous hours of frustration are gone.
Thanks yiu for letting me know. I am glad that this post helped you
Perfect. Thank you, Pieter.
You are welcome
Thanks!!
Thank you for clear explanation. You rock!!
You are welcome and thank you.
Thank you so much for this! The best explanation for this issue I have ever seen. I hate powerapps a little bit less, today.
You are welcome
Thanks for saving me hours of trial and error.
First time I’ve experienced this problem and the only time lost was the 5 minute Google search.
Appreciate you, Pieter!!
That is great to hear Howard!
Mine errors on Patching a numeric column with 20240721225112600000. Short ones like 2025, 1234567. Ugh. It just can’t parse/read/save that long numeric value.
Most likely the column that you are updating doesn’t accept numbers like that. What is the data source and what is the data type of the field?
I mean, short ones like 2025, 1234567 works but not that very long one.