cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TesDA
Responsive Resident
Responsive Resident

Concurrent function Error

For my app I have the following function in OnStart:

 

Concurrent(
ClearCollect(EmployeeData, {PMFilter: "PM", DirectorFilter: "Director", PPMDFilter: "PPMD"}),
Collect(EmployeeData, '[dbo].[vps_App_PAFNewProj_Emp]'),
ClearCollect(SL, {}),
Collect(SL, '[dbo].[PS_SL_Mapping]')
)

 

The clearcollect just adds an empty line to the table.

I'm getting an error: The function concurrent has some invalid arguments. Any thoughts on how to solve it?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Eelman
Super User
Super User

@TesDA 

You MUST run the Collect()'s you have outside your Concurrent() as they appear to be dependent on the ClearCollect()'s?

 

You cannot run code that is dependent on other code inside a Concurrent function.

View solution in original post

eka24
Super User
Super User

Try this

Concurrent(

ClearCollect(EmployeeData, '[dbo].[vps_App_PAFNewProj_Emp]'),
ClearCollect(SL, '[dbo].[PS_SL_Mapping]')
)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
Eelman
Super User
Super User

@TesDA 

You MUST run the Collect()'s you have outside your Concurrent() as they appear to be dependent on the ClearCollect()'s?

 

You cannot run code that is dependent on other code inside a Concurrent function.

View solution in original post

eka24
Super User
Super User

Try this

Concurrent(

ClearCollect(EmployeeData, '[dbo].[vps_App_PAFNewProj_Emp]'),
ClearCollect(SL, '[dbo].[PS_SL_Mapping]')
)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,156)