cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

SharePoint columns not updating

I am updating my SharePoint from excel using Power Automate. 

I have a total of 11 columns but only 8 columns update while three (3) are blank though having data in the excel file. 

few things I have tried: 

1. change data type from Number to single line and to Multiple lines. 

2. Clearing the browser cache 

however issues persist. 

I need help !!! 

 

Aitee_0-1702046435812.png

 

3 ACCEPTED SOLUTIONS

Accepted Solutions

Interesting, now we have a mystery.

Functionally everything looks good, and you know the small stuff like naming columns correctly which helps a lot. The expressions look fine, especially if they work for all of the other columns. So really all to do is start troubleshooting to see what is happening to the data.

 

You can go through these things in order to try and find the precise issue.

 

  • Are any of the columns hidden in the Excel file? I see they aren't now, but was someone using the file table  hid the columns? That really shouldn't be an issue, but just something to double check while troubleshooting. 

 

  • If you run the flow without the expressions does it work? Like just put the dynamic content into the field without checking for empty and run the flow. See if the values appear in the SharePoint list.

 

  • If you run the flow (with or without expressions) and look at the outputs of the Create/Update action, does it show values in the Update/Create item for those rows? Basically trying to see if Power Automate does have values, but then SharePoint is not accepting them. Or if Power Automate is not even getting the values in the field in the first place.

 

  • Would having the number 0 zero in the column be a problem? If you had a number type column, I think zero would be preferred anyways. The coalesce() will take the first non-null value. So if you use coalesce and the Excel field is empty, it will use the string(0), which will then be turned into an integer zero. Instead of using if(empty( you could try the expression below.
int(coalesce(items('Publish')?['ProductLoss'],string('0'))

 

  • I know it is painful, but can you delete the Update/Create item actions; then re-add them? Or honestly I would delete the whole flow and re-create it. This would make sure all of the connectors are completely refreshed Excel and SharePoint. But do not use the copy/clipboard, you would have to literally add new actions and re create them. If you use the copy actions, it could duplicate the problem or cause another issue.

Can you check through some of those bullet points and see if anything changes? Let me know if you see something or anything changes.

 

(The final test is delete the SP List columns that are causing problems and try again with new columns. If that doesn't work delete everything, SharePoint List and Flow. The file wouldn't necessarily have to be deleted.

I have seen issues where the SharePoint columns are not being recognized by PA and new columns have to be created, and if that doesn't work a new SP list has to be created. This sometimes happens if there are changes being made the SP List and PA kind of bugs and doesn't recognize it. It is not common, but it is something that has happened to me and I've seen others with the issue and that was the solution.)

View solution in original post

Hi @wskinnermctc 

 

  • "If you run the flow without the expressions does it work? Like just put the dynamic content into the field without checking for empty and run the flow. See if the values appear in the SharePoint list"

First trying point you suggested above - worked for 2 columns and then writing an expression for the third worked. 

What I finally did was delete the create/update items actions and re-created them and I've got all columns updating now. 

 

Thank you so much 

View solution in original post

You are not able to have Time Only in a SharePoint date/time type column. A SharePoint date/time type column can have Date Only or Date & Time, but it cannot have Time Only as a value.

A SharePoint date/time type column can't accept a Time Only value nor can it display Time Only of a full date-time value.

 

The only way to have a Time Only value in a SharePoint list is to use a Single Line Text type column. And then you put the "hh:mm" into the text field.

(It is possible to have a second Calculated column which displays Time Only, but it must reference a separate date/time type column which has a full date/time value. See example: Time Only in SharePoint List. But I don't think this is what you can do because you only have time value and not a date value. And using calculated columns usually leads to problems later.)

 

The only thing I can see that you could do would be to have two separate Single Line Text column types in the SharePoint list and then put the formatted time value into the field.

 

Since Power Automate is reading the Excel value "12:19" as date time and applying a date of 12/30/1899, you need to format this value with an expression to only show the time, and then put that into the single line text type columns.

To format the value into time only would use an expression like:

formatDateTime(items('Publish')?['RTFStart'],'HH:mm')

 

View solution in original post

12 REPLIES 12

First thing I would try is deleting the flow actions and recreating the steps. Sometimes if you change SP List column information, it doesn't get recognized by Power Automate if it already has a link to the list. You kind of have to refresh the connector.

 

Can you show a screenshot of what the Excel file looks like. Primarily want to see the Excel column names.

 

Can you provide a screenshot of your power automate flow. And have a screenshot of the step that is Updating Item or Creating Items so that we can see the fields dynamic content being added from Excel.

thank you @wskinnermctc 

 

I am sharing excel screen shots first: 

Aitee_0-1702048799988.pngAitee_1-1702048841216.pngAitee_2-1702048890211.png

 

here is the flow below: 

 

Aitee_3-1702049019662.pngAitee_4-1702049097549.pngAitee_5-1702049119832.pngAitee_6-1702049156870.pngAitee_7-1702049330339.pngAitee_8-1702049389587.pngAitee_9-1702049412409.png

 

 

Flow runs successfully without errors but those 3 columns DO NOT get updated. 

 

Thanks 

Aitee 

Excellent thank you for showing, and good job avoiding that second apply to each on the SharePoint Get Items by using first() on the ID.

 

Now I need one more thing.

 

The expressions being used on the columns that are not being filled. I see you have some if() functions, but need to see the remaining of it to check the issue.

 

You can copy and paste the expressions directly into a reply so I can see exactly how they are written. Otherwise you would have to hover over each one and take a screenshot showing the full expression.

Thank you so much @wskinnermctc 

 

here it is as a screen shot (culprits highlighted) 

Aitee_0-1702050333824.png

and then as text for easy edit 

if(empty(items('Publish')?['ProductLoss']),null,int(items('Publish')?['ProductLoss']))

if(empty(items('Publish')?['TimeLoss']),null,int(items('Publish')?['TimeLoss']))

 

let me quickly highlight that everything worked 3 weeks ago. But suddenly noticed this a few days back 

Interesting, now we have a mystery.

Functionally everything looks good, and you know the small stuff like naming columns correctly which helps a lot. The expressions look fine, especially if they work for all of the other columns. So really all to do is start troubleshooting to see what is happening to the data.

 

You can go through these things in order to try and find the precise issue.

 

  • Are any of the columns hidden in the Excel file? I see they aren't now, but was someone using the file table  hid the columns? That really shouldn't be an issue, but just something to double check while troubleshooting. 

 

  • If you run the flow without the expressions does it work? Like just put the dynamic content into the field without checking for empty and run the flow. See if the values appear in the SharePoint list.

 

  • If you run the flow (with or without expressions) and look at the outputs of the Create/Update action, does it show values in the Update/Create item for those rows? Basically trying to see if Power Automate does have values, but then SharePoint is not accepting them. Or if Power Automate is not even getting the values in the field in the first place.

 

  • Would having the number 0 zero in the column be a problem? If you had a number type column, I think zero would be preferred anyways. The coalesce() will take the first non-null value. So if you use coalesce and the Excel field is empty, it will use the string(0), which will then be turned into an integer zero. Instead of using if(empty( you could try the expression below.
int(coalesce(items('Publish')?['ProductLoss'],string('0'))

 

  • I know it is painful, but can you delete the Update/Create item actions; then re-add them? Or honestly I would delete the whole flow and re-create it. This would make sure all of the connectors are completely refreshed Excel and SharePoint. But do not use the copy/clipboard, you would have to literally add new actions and re create them. If you use the copy actions, it could duplicate the problem or cause another issue.

Can you check through some of those bullet points and see if anything changes? Let me know if you see something or anything changes.

 

(The final test is delete the SP List columns that are causing problems and try again with new columns. If that doesn't work delete everything, SharePoint List and Flow. The file wouldn't necessarily have to be deleted.

I have seen issues where the SharePoint columns are not being recognized by PA and new columns have to be created, and if that doesn't work a new SP list has to be created. This sometimes happens if there are changes being made the SP List and PA kind of bugs and doesn't recognize it. It is not common, but it is something that has happened to me and I've seen others with the issue and that was the solution.)

Thanks @wskinnermctc 

 

Apologies our time zone difference could make me finish this discussion on Friday. 

 

I will try out these steps now and revert to you over the next hour or so. 

Hi @wskinnermctc 

 

  • "If you run the flow without the expressions does it work? Like just put the dynamic content into the field without checking for empty and run the flow. See if the values appear in the SharePoint list"

First trying point you suggested above - worked for 2 columns and then writing an expression for the third worked. 

What I finally did was delete the create/update items actions and re-created them and I've got all columns updating now. 

 

Thank you so much 

one more thing @wskinnermctc 

 

My excel sheet for these two columns are:

Aitee_0-1702310921289.png

 

when I import into SharePoint it comes this way:

Aitee_1-1702311210127.png

what have I tried?

1. importing without expression 9 same result as above)

2. used expression - if(empty(item('Publish')['RTF Start']),null,addDays('1899-12-30',int(item('Publish')['RTF Start']),'yyyy-MM-dd')). 

Returns error 

 

Any ideas to tweak the expression ? 

 

What type of SharePoint List columns are "RTF Start" and "RTF End" in the SharePoint List settings? Are they Single Line Text Type or DateTime?

 

In the Excel file for the "RTF Start" and "RTF End" what type of columns are they and what value is in the field. Is it a datetime type column and it has a date like 12/11/2023 12:19 PM but then the view format of the column is only showing the 12:19? 

Or does it just contain the 12:19?

Basically I want to know what value is being pulled into PowerAutomate from the Excel file. 

If you put a blank Compose step into your flow and added the Excel dynamic content of RTF Start, what does the value look like?

 

What Excel date should be combined with RTF Start? Is it the "Production Date", "Sales Date", "Time"?

 

I need to know how Power Automate is reading the Excel data as well as the desired output to the SharePoint list column.

Thanks @wskinnermctc 

"RTF Start" and "RTF End" are time production "start" and "End" time per batch, my goal is to represent them just as it is in excel. (so in SharePoint in represent as Date/time)

 

In excel it is just 12:19 - no date attached to it 

 

I was hoping I could extract same way to SharePoint (time only).

Extracting directly without an expression in the flow returns samples like 12/30/1899 12:19

"RTF Start" and "RTF Stop" are manual time entries to show start and end times for production batches,  they are not calculated or referenced they are absolute values from our SAP system to signify when each batch of production starts and ends.

You are not able to have Time Only in a SharePoint date/time type column. A SharePoint date/time type column can have Date Only or Date & Time, but it cannot have Time Only as a value.

A SharePoint date/time type column can't accept a Time Only value nor can it display Time Only of a full date-time value.

 

The only way to have a Time Only value in a SharePoint list is to use a Single Line Text type column. And then you put the "hh:mm" into the text field.

(It is possible to have a second Calculated column which displays Time Only, but it must reference a separate date/time type column which has a full date/time value. See example: Time Only in SharePoint List. But I don't think this is what you can do because you only have time value and not a date value. And using calculated columns usually leads to problems later.)

 

The only thing I can see that you could do would be to have two separate Single Line Text column types in the SharePoint list and then put the formatted time value into the field.

 

Since Power Automate is reading the Excel value "12:19" as date time and applying a date of 12/30/1899, you need to format this value with an expression to only show the time, and then put that into the single line text type columns.

To format the value into time only would use an expression like:

formatDateTime(items('Publish')?['RTFStart'],'HH:mm')

 

Thanks @wskinnermctc 

This worked perfectly 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (805)