Test the path from the gateway machine
Open PowerShell on the gateway host and test the exact UNC path that Power Automate will use. A local path works only if it is local to the gateway host.
Test-Path '\\server\share\folder'
Get-ChildItem '\\server\share\folder' | Select-Object -First 5
Confirm the runtime account can access the folder
If the gateway service runs as a specific service account, validate that account has NTFS and share permissions. Interactive administrator access is not enough.
Replace mapped drives with UNC paths
Mapped drives are tied to a user session. Power Automate and the gateway service may not see them. Use UNC paths in connection setup and generated flow values.
Run a minimal create/read file flow
Before importing a larger generated workflow, build a temporary instant flow that creates a small test file and then reads it back using the same connection/path.