Hi,
I am trying to create item in my SP list from my Excel Table.
I am getting error msg -
Unable to process template language expressions in action 'Create_item' inputs at line '0' and column '0': 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
my column i am trying to input is a general column in the excel table, could have blank values or values like .45, or 8.0.
I am using this expression - float(items('Apply_to_each_3')?['2023_01_02'])
Hi @wonka1234
As the column could hold blank values so you need to handle the case for blank value as well. Pls try the below expression:
if(empty(items('Apply_to_each_3')?['2023_01_02']),null,float(items('Apply_to_each_3')?['2023_01_02']))
here, I am assuming that '2023_01_02' is the name of the column in excel. If not, then pls replace it with the name of column in excel table that holds decimal value.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks
bump
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492