
Announcements
Hi,
Facing an issue with Power automate for desktop. where Looping the PowerShell to move files from One folder to Another based on the file name. during this process the flow got stuck at "Run PowerShell Script" Action without fail.
Here is the Script:
$source="%CountryInputFolder%"
$destination="%CountryTempFolder%"
$filter = [regex] "%FilteredCountryName%"
$bin = Get-ChildItem -Recurse -Path $source | Where-Object {$_.Name -match $filter}
Write-Host $bin.Length
Its hardly looping over 19 times and stuck there. sometimes it will stuck at first 5 records.
Is there any suggestions or tips to follow?
Thanks in advance.