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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,727)