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 III
Super User III

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 III
Super User III

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (66,741)