Hello. I am having an issue with a SharePoint document library that utilizes the PowerApps customized form in SP. The app allows the user to start on the welcome page and select either assigning a number (via a lookup from a list) or submitting for approval (via a change of choice column status). The lookup function will pick a number from a different SP list and assign it to that document. The approval function lets the user click a button that changes the status column in the library to "Request Peer Review", which then starts some PowerAutomate flows.
All this functionality has worked just fine with no problems in any scenario for months. However, it just now started to give me an error "The specified column is read-only and can't be modified". The only things I have changed to the library since I last confirmed the app worked are adding a few columns for more data points and some other PowerAutomate flows that just copy text from other columns for different data points.
SubmitForm(SharePointForm1_2);
Patch(
'CE Document Library',
SharePointIntegration.Selected,
{'Approval Status':{Value: "Request Peer Review"}}
)
From everything I've read on other similar issues, it appears to be attempting to patch a column that is read-only (such as a calculated column, lookup column, or something like modified-by, modified, etc.). Why would it just start to do that after it's been working fine for so long?
Hi @HammettDown ,
Here are some things you might want to check:
Column Settings: Ensure that the column you're trying to patch ('Approval Status' in your case) is not set to read-only in the SharePoint list settings. Sometimes, columns can be set to read-only due to changes in content approval settings or other list/library settings.
Column Type Change: If the column type has been changed recently, for example, from a Choice to a Managed Metadata column, or to any other type that might not be directly patchable, this could cause issues.
Content Approval: If you're working with the 'Approval Status' column in a SharePoint document library with content approval enabled, it's possible that changes to the settings of the content approval feature might have affected the ability to modify this column directly. Typically, this field should be managed through the content approval process, not directly patched.
Power Automate Flows: Check the Power Automate flows you've added. If any flow is triggering upon modification of the same item and locking it for editing, or if they modify the columns in such a way that conflicts with the PowerApps patch operation, that could cause issues.
List/Library Settings: Sometimes, SharePoint list/library settings are changed, affecting columns indirectly. For example, versioning settings could potentially impact how items are edited.
App Permissions: Ensure that the PowerApps app still has the appropriate permissions to modify list items.
To troubleshoot, I suggest the following steps:
Check Column Settings: Go to the SharePoint list settings and check the column settings for 'Approval Status'. Ensure that it's not read-only and is a type that can be edited.
Review Changes: Look at any recent changes to the SharePoint list/library or to related Power Automate flows. See if any of these changes could have affected the 'Approval Status' column.
Test Directly in SharePoint: Try manually changing the 'Approval Status' in the SharePoint list to see if the field can be edited outside of PowerApps.
Use SharePoint Form: Attempt to change the 'Approval Status' via the default SharePoint form instead of the PowerApps custom form to see if the error persists.
Test Patch: As a test, try patching another editable text column with a simple value to confirm if the issue is with the 'Patch' function or specifically with the 'Approval Status' column.
PowerApps Version: Ensure that your PowerApps version hasn't been updated recently which might affect the functionality of your app. Sometimes platform updates can lead to unexpected behaviors.
Kindly mark the solution as accepted if it resolves your issue.
Best Regards
Muhammad Mudassar Mazhar
Thanks for the tips to test this out. I have confirmed that all fields I am attempting to edit from the PowerApp are editable from SharePoint column field edits, meaning I can manually change them. I did have some PowerAutomate flows running that would run anytime an edit was made (which turned out to be basically non-stop). At first that flow was changing the status to "Draft" each time. That flow was pulling the name of the file and a number assigned to it and putting it in single text fields. I since corrected this and turned off this flow and have changed it to be scheduled. The flow doesn't have any permission changes though, only a trigger when an item is modified, a "Get Items" and an "Update Items". The flow is now off and not running but I'm still seeing the error.
Also, I can't find a setting for Read-Only on this column type. This issue is happening to multiple columns that can be edited manually in properties.
As a side note, I have this exact same setup on a different SP site. It works just fine. The only difference is it has a few less columns (I have added some for extra data points) and it had the flow running on it.
Given the additional context you've provided, it seems you've ruled out the direct causes related to permissions and settings. However, the problem persists. Here are some further steps to diagnose and potentially resolve the issue:
1. **Column Validation or Site Column**:
- Check if there is any column validation set on any of the columns that could be failing due to the data provided.
- If the columns are site columns (shared across multiple lists/libraries), ensure that there are no settings at the site column level that could be affecting this.
2. **List Item Event Receivers**:
- There might be List Item Event Receivers attached to the list/library that are not visible through the UI. These might be interfering with updates.
- You can check for event receivers by using SharePoint PnP PowerShell commands or by contacting your SharePoint administrator.
3. **Cached Data**:
- Sometimes, the form or SharePoint might have cached data that causes conflicts. Try to clear the cache by logging out, clearing browser cache, or trying in a different browser/incognito mode.
4. **Formulas in PowerApps**:
- Double-check the formulas in PowerApps, especially where the `Patch` function is used. Ensure that no invisible characters or syntax errors might be causing the issue.
5. **SharePoint Versioning and Draft Item Security**:
- If the library has versioning and/or draft item security settings, these might interfere with how items are updated. Especially check if the settings for who can see draft items might affect how PowerApps interacts with the list.
6. **Test with a New Form**:
- As a test, try creating a new form and patching the same fields to see if the error replicates. This could help isolate if the issue is with the current form setup or the list itself.
7. **Custom Scripts or SharePoint Framework Customizations**:
- Verify if there are any custom scripts or SharePoint Framework (SPFx) customizations that could interfere with the form submissions.
8. **Compare Working vs. Non-Working Environment**:
- Since you mentioned a similar setup works on a different SP site, compare the two environments in detail. Look at the versioning settings, content types, workflows, column settings, and anything that could be different.
9. **Inspect Browser Console**:
- Open the browser's developer tools and inspect the console for any errors when you submit the form. Sometimes, the console errors can give more insight into what is failing.
10. **Detailed SharePoint Logs**:
- Consider reaching out to your SharePoint admin to see if they can get more detailed logs on why the updates might be failing.
11. **Check SharePoint Updates**:
- Sometimes, Microsoft rolls out updates to SharePoint Online that can cause unexpected behaviors. Check the Office 365 Message Center or the Health dashboard to see if there have been any recent updates or advisories that could relate to your issue.
12. **Contact Microsoft Support**:
- If none of the above steps help, consider raising a support ticket with Microsoft. They will have the necessary tools to delve deeper into the issue, including logs and advanced diagnostic tools.
13. **Power Platform Admin Center**:
- Review the Power Platform Admin Center for any policies or settings that might have changed and could impact your app.
14. **Copy and Republish App**:
- As a last resort, you could try to save your app as a package, and then import it to see if the issue persists. Sometimes, republishing the app can resolve hidden issues.
When you troubleshoot such issues, it's essential to make changes one at a time and test thoroughly after each change to identify the root cause.
This will look up the tab in the collection where the TabId matches the CurrentTabId.
Kindly mark the solution as accepted if it resolves your issue.
Best Regards
Muhammad Mudassar Mazhar
Thank you for the suggested methods to correct the issue. I've gone through many and have yet to be successful with it. Currently my only diagnosis is that something was corrupted during some of the automation, as it was running a "when item or file is modified" connector which essentially has it running constantly with many overlapping iterations.
I've since gone a different route that is not using PowerApps to perform the modification or actual update to the library item properties. I reverted back to performing the updating in SharePoint itself as it was still working fine with that.
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!
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 in the Forums 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 of SolutionsSuper UsersNumber of Solutions @anandm08 23 @WarrenBelz 31 @DBO_DV 10 @Amik 19 AmínAA 6 @mmbr1606 12 @rzuber 4 @happyume 7 @Giraldoj 3@ANB 6 (tie) @SpongYe 6 (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. Community MembersSolutionsSuper UsersSolutions @anandm08 10@WarrenBelz 25 @DBO_DV 6@mmbr1606 14 @AmínAA 4 @Amik 12 @royg 3 @ANB 10 @AllanDeCastro 2 @SunilPashikanti 5 @Michaelfp 2 @FLMike 5 @eduardo_izzo 2 Meekou 2 @rzuber 2 @Velegandla 2 @PowerPlatform-P 2 @Micaiah 2 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 Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27 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 Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8 SunilPashikanti8
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.
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