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
Eelman
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,522)