cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TesDA
Continued Contributor
Continued Contributor

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
Anonymous
Not applicable

@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
Anonymous
Not applicable

@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.

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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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