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 / Excel to Sharepoint Li...
Power Automate
Unanswered

Excel to Sharepoint List (Excel Null or Error in Functions DIV etc)

(0) ShareShare
ReportReport
Posted on by 301

Hi,

 

I have a simple Flow where a user in SharePoint selects a excel file from the SharePoint Document Library and clicks run, the flow runs and simply copies the table data from the selected Excel files table to a SharePoint List all works wonderful, However every so often the excel file has an null or DIV error such as the image below

ShaneITAutomate_0-1625780190115.png

 

How do i get the flow to simply enter any errors as 0 or empty?

 

Any help would be appreciated.

 

PS The excel files are sent to me externally so i have no control over this without manually checking and changing which will not suite

 

Categories:
I have the same question (0)
  • ccc333ab Profile Picture
    1,144 on at

    You should be able to just check to see if the value being added to SharePoint is #DIV/0 and if so, either add in a null or don't even add anything in at all for that column (i.e., just skip it). Can you show a screenshot of your flow so I can see how you are adding items to SharePoint? Might be able to give a better answer than this if I can see what you are doing. 

  • ShaneITAutomate Profile Picture
    301 on at

    Im not quite sure how to do that using an excel file could you please do a quick example?, i could do it in Sharepoint but with excel and having to use the workaround to create dynamic table names etc how can i reference and change the #DIV/0 error?

     

    Heres a pic of my flow as requested (all data is filled out and the flow works beautifully, however i removed the names etc for sensitive data security)

     

    1.png2.png3.png4.png

  • Verified answer
    ccc333ab Profile Picture
    1,144 on at

    Holy redacted screenshots 😄

       Because I need to use something, I'm going to pretend there is a field in your list called "TotalAmount".

     

    So I am going to guess that any of your fields you currently have your float expression could contain a #DIV/0, so then you would need to adjust all of those expressions to the following: 

     

     

    if(or(empty(items('Apply_to_each_2')?['TotalAmount']),equals(items('Apply_to_each_2')?['TotalAmount'],'#DIV/0!')),null,float(items('Apply_to_each_2')?['TotalAmount']))

     

    What this expression does is to check if the Excel value is either "#DIV/0!" or it is empty. If so, add a NULL, otherwise convert it to a float and add that. 

     

    (I added the empty as I think you were saying that was possible in your initial post). 

  • ShaneITAutomate Profile Picture
    301 on at

    Thankyou, i was trying to complicate it with the update rows actions, a condition and filter queries lol. Cheers

    Thanks

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard