Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Missing column when patching collection to SharePoint (Column missing is from Distinct result record)

(0) ShareShare
ReportReport
Posted on by

Hi experts,

 

Noob here. I'm having a problem updating collection to my sharepoint. It able to patch column with data type Text and Value but not with the result.

 

My collection:

naifhanis92_0-1674122844588.png

 

All collection column able to be patched to SharePoint except column "TestMethod" and "Clause" which it is in column result (Because i use distinct function to make dependent choice)

naifhanis92_2-1674122975580.png

Another record (other than test method and clause) able to be patched nicely. By the way I'm using below to do collection (OnChange). I tried to put .Selected.Value and .Selected.result but there's an error.

naifhanis92_3-1674123068561.png

 

Below is the code to patch collection to SharePoint.

naifhanis92_4-1674123261675.png

 

Thanks all. If there are any other info i need to provide, will happily give you guys.

  • naifhanis92 Profile Picture
    on at
    Re: Missing column when patching collection to SharePoint (Column missing is from Distinct result record)

    OMG thanks a lot @WarrenBelz 😭. I stuck here for more than 2 days trying "lot" of things to make that right. Thanks for the help, wishing a best time for you and your family!

  • Verified answer
    WarrenBelz Profile Picture
    146,651 Most Valuable Professional on at
    Re: Missing column when patching collection to SharePoint (Column missing is from Distinct result record)

    Hi @naifhanis92 ,

    The issue here is that if you want to use the process of patching a collection directly to a list as you are, then every field in the collection has to exist in the list in both name and field type/structure, so you have to make the "foot fit the shoe" so to speak. So if you are patching to (for example) a Choice field, you need a Table field with the field name Value (not Result). You can use RenameColumns to do this when you originally put this into the collection. The other option is to Patch all the fields individually and "line up" the relevant values.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard