@zuurg
I recommend to call Errors only once, so i would recommend reducing the repetition of Errors(Projects) using With like below:
With
(
{errorsInProjects:Errors(Projects)},
If(IsEmpty(errorsInProjects),
Notify("Update successful!",NotificationType.Success,2000),
Collect(colErrors,errorsInProjects);
Notify("Update failed!",NotificationType.Error,2000)
)
)
I do not know for sure this will end up helping with the issue you are having.
In case it does help with the issue, let me know.
If the above does not work, try the below, see if it helps:
Clear(colErrors);
With
(
{errorsInProjects:Errors(Projects)},
If(IsEmpty(errorsInProjects),
Notify("Update successful!",NotificationType.Success,2000),
Collect(colErrors,errorsInProjects);
Notify("Update failed!",NotificationType.Error,2000)
)
)
Try adding
Clear(colErrors);
before using the Collect. You can also put it closer to where it's about to be used if you prefer, like this:
With
(
{errorsInProjects:Errors(Projects)},
If(IsEmpty(errorsInProjects),
Notify("Update successful!",NotificationType.Success,2000),
Clear(colErrors);
Collect(colErrors,errorsInProjects);
Notify("Update failed!",NotificationType.Error,2000)
)
)
Or even just use ClearCollect instead, like this:
With
(
{errorsInProjects:Errors(Projects)},
If(IsEmpty(errorsInProjects),
Notify("Update successful!",NotificationType.Success,2000),
ClearCollect(colErrors,errorsInProjects);
Notify("Update failed!",NotificationType.Error,2000)
)
)
See if it helps @zuurg