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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 'Int' error when impor...
Power Automate
Unanswered

'Int' error when importing data from Excel sheet in OneDrive into Dataverse Whole number column type

(0) ShareShare
ReportReport
Posted on by 56

Hi all,

 

Wonder if you could help me out of a pickle! 🙂

 

I have a workflow (image attached) which attempts to bring numerous columns from an Excel spreadsheet table (located in OneDrive) into a Dataverse table. This works in part, but I have stumbled upon an error related to a number column and an expression I have. The 'Logged Time' Dataverse column relates to a column in Excel (Total Milliseconds) which is the 'General' type. I have this expression to import the data from that column: int(items('Apply_to_each')?['Total Milliseconds']).

 

The Dataverse column type is set as 'whole number'.

 

But I get this error after just a handful of successful columns being imported to the Dataverse table, which is odd, that some are imported, then it errors as below:

 

"Unable to process template language expressions in action 'Add_a_new_row_to_selected_environment' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'."

 

Any ideas to put me out of my misery please? 😁

Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @eel1 Could you add a Compose action above the Add New Row to Select Environment action and insert the dynamic content for the Total Milliseconds? Can you run a test and screenshot the output of that Compose action? 

     

    Is there a decimal place in your Total Milliseconds value? If so, can you try using this expression?

    int(float(items('Apply_to_each')?['Total Milliseconds']))

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • eel1 Profile Picture
    56 on at

    Thanks a lot @creativeopinion . That did the trick!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard