cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
crdawson
Helper II
Helper II

Network Error when using Patch function: The Specified Column is generated by the server and can't be specified

I'm having an issue with a patch function showing the above error and I can't figure out why it's happening. This is the forumla:


Patch(
'QA Form Entries',
{
Evaluator: EvaluatorInput.Selected, Person field
'Evaluators Manager': EvaluatorsManagerInput.Selected, Person field
Agent: AgentInput.Selected, Person field
'Agents Manager': AgentsManagerInput.Selected, Person field
Location: _Location, Single line of text
'Contact Date': ContactDateInput.SelectedDate, Date
'Session Date': SessionDateInput.SelectedDate, Date
'FTE Group': FTEGroupInput_2.Selected, Choice
Brand: BrandInput.Selected, Choice
Market: MarketInput.Selected, Choice
'Total Contact Score': _TotalScore, Number
'Compliance?': _Pass, true/false
'Contact Type': ContactTypeInput.Selected, Choice
Professional: ProfessionalRadio.Selected, Choice
'Communication Skills': CommunicationSkillsRadio.Selected, Choice
'Attentive Listening': AttentiveListeningRadio.Selected, Choice
'Questioning Techniques': QuestioningTechniquesRadio.Selected, Choice
'Contact control': ContactControlRadio.Selected, Choice
'Taking ownership': TakingOwnershipRadio.Selected, Choice
'Was the issue/request clearly identified': Radio1_6.Selected, Choice
'Did the agent address all issues raised/answer all questions?': Radio1_7.Selected, Choice
'All actions taken to ensure expected outcome?': Radio1_8.Selected, Choice
'Were correct expectations set/next step(s) clearly explained to customer?':Radio1_9.Selected, Choice
'Did the agent display knowledge about the area': Radio1_10.Selected, Choice
'Was information given correct & Complete?':Radio1_11.Selected, Choice
'Did the agent use all their available resources effectively':Radio1_12.Selected, Choice
'Was the customer correctly identified (DPA)': Radio1_13.Selected, Choice
'Did the agent follow the steps of the procedures applicable?': Radio1_14.Selected, Choice
'Were branding scripts followed ( opening, hold, transfer, closing)': Radio1_15.Selected, Choice
'Customers details captured correctly/updated (GDPR)?':Radio1_16.Selected, Choice
'Were there case notes?':Radio1_17.Selected, Choice
'Are the case notes correct and complete?': Radio1_18.Selected, Choice
'Was the contact tagged correctly? (Contact & Case)': Radio1_19.Selected, Choice
'Sales through Service': Radio1_20.Selected, Choice
'Has the customer been in contact about this before ': Radio1_21.Selected, Choice
'Reason for non-resolution ': NonResInput.Selected, Choice
'Proxy CSAT score': ProxyCSATInput.Selected, Choice
'Contact Logging': ContactLoggingInput_2.Selected, Choice
'Session ID': Text(AgentInput.Selected.Email & Text(SessionDateInput.SelectedDate, "ddmmyyyy")), Single line of text
'Reason for Contacting Back Office': ReasonInput.Selected, Choice
Title: interactionIDInput_2.Text, Title Column, single line of text
Comments: CommentsInput.HtmlText, Multiple lines of text (tried both with and without the enhanced rich text option enabled in sharepoint list)
'Revealed to Agent': false
}
)

 

The patch goes to a sharepoint list called "QA Form Entries". I've put what type of column each field is in italics for reference.

All of the choice fields are either radio buttons or combo boxes, the person fields are controled by combo boxes too with only the agent being selectable, the other three are auto filled based on the user (evaluator) and their managers via O365.


I did also try switching out the rich text editor for just a regular text editor but it didn't fix the issue either. Does anyone know why this error is appearing or how I can tell which column it's reffering too? It doesn't highlight a specific field, just the whole patch function.

1 ACCEPTED SOLUTION

Accepted Solutions
crdawson
Helper II
Helper II

Figured it out, it had been so long since I created the sharepoint list, I forgot that the column "Evaluator" was actually a renamed "Created By" Column 🤣

 

By trying to define it, the patch failed. Can't say why it didn't give the column name though

View solution in original post

9 REPLIES 9
RandyHayes
Super User
Super User

@crdawson 

The suspect are your person columns.  If the comboboxes that you have to select them are based on (the Items property) Office365 lookups, then those are not SharePoint user records.  They need to be converted to such before submitting.

 

Are those based on Office365 users?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
danieluokof
Regular Visitor

Hello....

 

Can your please nake those configurations?

 

Choice field: _____.Selected.Value

Person field: should follow a structure like this=>

 {
    DisplayName: ___.Selected.DisplayName,
    Claims: "i:0#.f|membership|" & ___.Selected.Email,
    Department: "",
    Email: ___.Selected.Email
}

 

RandyHayes
Super User
Super User

@danieluokof 

Both of those determinations are completely dependent on the Items properties of those controls...

Choice fields can be given the Selected record of a control that has records with Value columns, for example.

 

Your Person field record is missing information that will cause the record to not be stored.

SharePoint likes to get a full record, or it will reject it.

i.e.

{ 
   Claims:"i:0#.f|membership|" & Lower(<emailHere>), 
   Department:"", 
   DisplayName: "", //Can be empty or a name provided - depending on the 
                      need for the display name and the SharePoint to Office365 sync process state/freqency.
   Email: <emailHere>, 
   JobTitle: "", 
   Picture: ""
}
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hey! Thanks for the reply. The Combo Boxes are all set up like this:
Choices([@'QA Form Entries'].Agent)

So I think they should be the same format as the sharepoint person fields. I've used this setup before with other patches without issue but I'll try switching it up if you think it will help. If I get the chance to test today I will post an update

I replaced all the Person Fields with the record format you posted but sadly it hasn't worked. I also check another patch function I'd used elsewhere and tried the format:


Evaluator: First(
Choices(
[@'QA Form Entries'].Evaluator,
User().Email
)
)

This works in another patch but doesn't work here so it must be something else. I've also checked all the radio boxes to make sure their Items are the Choices available for that column in the list and they all match up.

 

The only difference I can find is that the previous Patch worked off a form, whereas this patch all the inputs are individual as it was easier to do with the layout I've gone for.

I could get around it by making an invisible form that has the defaults set to the input for this form but it would be very inefficient. I'd also still like to get to the bottom of this just for my own knowledge going forward so any other ideas would be much appreciated

crdawson
Helper II
Helper II

Figured it out, it had been so long since I created the sharepoint list, I forgot that the column "Evaluator" was actually a renamed "Created By" Column 🤣

 

By trying to define it, the patch failed. Can't say why it didn't give the column name though

aforonwak
New Member

so what did you do to fix this?

The issue turned out to be that I was trying to define a metadata column which you can't do. I just got rid of the Evaluator field in the patch function since it was a renamed "Created By" Field.

MFJ
Regular Visitor

This error come when a Field in table is not editable and you are try to insert data in it.

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Top Solution Authors
Top Kudoed Authors
Users online (5,898)