-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Describe the bug
If the actionName has a length < 5, for example a Tri scope, then you will receive the following error message:
Where-Object : Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\temp\gooseleggs-logicappdocs\logicappdocs\src\Helper.ps1:276 char:76
+ ... ($Actions | Where-Object { $_.RunAfter -eq $(('{0}-False') -f $(($cur ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Where-Object], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.WhereObjectCommandThis is caused by the line
# Current error is that there can be an newly created action that does not have a parent property.???
elseif (($null -ne $currentAction.Parent) -and ($Actions | Where-Object { $_.RunAfter -eq $(('{0}-False') -f $(($currentAction.Parent).Substring(0, ($currentAction.Parent).length - 5))) } )) {in `helper.ps1. This is because the it is assumed that the length of the string is at least 6 characters long, which is not always the case.
To Reproduce
Steps to reproduce the behavior:
Use a logicApp definition where the actionName is < 5 characters
Expected behavior
Should not error out
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels