web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with Patch to sp ...
Power Apps
Unanswered

Help with Patch to sp list

(0) ShareShare
ReportReport
Posted on by 25
 

Hello, 

I'm trying to write a record to a Sharepoint list. This is my second PowerApps. I just copied my patch function from the first app (works as expected).

 

This time PowerApps states "A field name Topic was specified more than once in this record"

What am I missing? I don't have another topic field. 

 

 

Patch('COVID-19 Concerns',Defaults('COVID-19 Concerns'),
//Patch('COVID-19 Concerns', Defaults('COVID-19 Concerns'),
 {
 Title: Tbox_Title.Text,
		Category: Radio_Category.Selected.Value,
		Topic: DropDwn_Topic.SelectedText.Value,
		POCs: Lb_POC.Text,
		'Account Name': Tbox_AcctName.Text,
 // Segment: Dropdown_segment.SelectedText.Value,
		Concern: TBox_Concern.Text,
	//	BAN: Tbox_Ban.Text,
		'Corp Id': TBox_CorpID.Text//,
 // 'Critical Customer Request': If(Checkbox_Critical.Value,"Yes","No")
 })

 

 
Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Sjj9166 ,

    Any reason for 

    Topic: DropDwn_Topic.SelectedText.Value

    instead of 

    Topic: DropDwn_Topic.Selected.Value,

      

  • Sjj9166 Profile Picture
    25 on at

    @WarrenBelz - No reason - 

    Selected.value produces - "Name isn't valid, identifier not recognized"

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Ok @Sjj9166 ,

    What type of control is DropDwn_Topic (I assume a drop-down) and what is the Items property.

     From your error, this seems to be the source of the issue.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Sjj9166 ,

     

    Could you please share more information about Topic field and  DropDwn_Topic control?

    What is the Type of Topic field? What is the item property of DropDwn_Topic?

    Your code syntax looks good, so I would suggest you remove the Sharepoint list connection and re-add it to check if the issue is fixed.

    If not, please try to remove the annotations, and hardcode the value into the Patch function to see if the issue still remains?

    Please let me know the debugging result.

    Sik

     

     

  • Sjj9166 Profile Picture
    25 on at

    Topic field is "Single Line Text"

    DropDwn_Topic item prop is 

    //'COVID-19 Topics'
    Filter(
     'COVID-19 Topics', 
     StartsWith(
     Category.Value, Radio_Category.Selected.Value
     )
    )

     

    Trouble shooting steps: I attempted to hard code values, I removed the connection and added it back.

    Error continues

     

     

    L_5124.tmp.PNG
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Sjj9166,

     

    What is the Column Construct of 'COVID-19 Topics' list? which column save the topic value?

     

    I find something wrong with your code, the category is choices type column, so you cannot simply save the value to that column.

    The dropdown_ topic shows the items from 'COVID-19 Topics' list, you should modify the DropDwn_Topic.SelectedText.Value to DropDwn_Topic.SelectedText.<ColumnName>

    Could you please try this code?

     

    Patch('COVID-19 Concerns',Defaults('COVID-19 Concerns'),
     {
     Title: Tbox_Title.Text,
    		Category: LookUp(Choices('COVID-19 Concerns'.Category),Value=Radio_Category.Selected.Value),
    		Topic: DropDwn_Topic.SelectedText.<ColumnName>,
    		POCs: Lb_POC.Text,
    		'Account Name': Tbox_AcctName.Text,
    		Concern: TBox_Concern.Text,
    		'Corp Id': TBox_CorpID.Text
     })

     

    Hope this helps.

    Sik

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard