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 / Concurrent function error
Power Apps
Answered

Concurrent function error

(0) ShareShare
ReportReport
Posted on by 215

I am creating app that has to update collect on change property of dropdown.
below code giving me error . is that i am missing something 

========================================================

 

Concurrent(
UpdateIf(ColNewitems,ID=ThisItem.ID,{Title:User().FullName}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{'WBS Element':Self.Selected.Name}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{'Week Ending':DateValue( Text( Dropdown2.Selected.WeekEnd,"mm/dd/yyyy"))}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{'Manager Name':VarManager}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{Name:VarUserName}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{Year:DateValue( Text( Dropdown2.Selected.WeekEnd,"yyyy"))}),
UpdateIf(ColNewitems,ID=ThisItem.ID,{'Send Cost Center': VarCostCenter }),
UpdateIf(ColNewitems,ID=ThisItem.ID,{Personnel:VarPersonal})
)

==================================================================================

 

Thank you

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @ursNani you don't need the concurrent statement, you can write everything in one UpdateIf statement:

     

     

    UpdateIf(
     ColNewitems,
     ID=ThisItem.ID,
     {
     Title: User().FullName,
     'WBS Element':Self.Selected.Name,
     'Week Ending':DateValue( Text( Dropdown2.Selected.WeekEnd,"mm/dd/yyyy")),
     'Manager Name':VarManager,
     Name:VarUserName,
     Year:DateValue( Text( Dropdown2.Selected.WeekEnd,"yyyy")),
     'Send Cost Center': VarCostCenter,
     Personnel:VarPersonal
     }
    )

     

     

    As a general remark: (1) ThisItem can only be used in a gallery, (2) you can fetch the year of a date value via the function Year(YourDate) instead of DateValue().

     

    I hope this helps!

  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @ursNani 

     

    Since you are updating the same item, that's the reason why concurrent is having an issue. Please try this code on your end.

    UpdateIf(
     ColNewitems,
     ID=ThisItem.ID,
     {
     Title: User().FullName,
     'WBS Element': Self.Selected.Name,
     'Week Ending': DateValue(Text( Dropdown2.Selected.WeekEnd,"mm/dd/yyyy")),
     'Manager Name': VarManager,
     Name: VarUserName,
     Year: DateValue(Text( Dropdown2.Selected.WeekEnd,"yyyy")),
     'Send Cost Center': VarCostCenter,
     Personnel: VarPersonal
     }
    )

     


      ✔️
    Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION.  This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard