-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Summary
An empty folderPath in a bucket binding ("folderPath": "") causes a misleading "FolderNotFound" validation error in the Package Requirements screen. The error message suggests the folder doesn't exist or the user lacks access, but the real cause is that the validator cannot resolve which folder to look in.
Error (Package Requirements screen)
ValidationResult: "FolderNotFound"
"Folder might not exist or user access is restricted"
Root Cause
An empty folderPath does not default to "the process's own folder" during Package Requirements validation. The validator requires an explicit folder path to look up the bucket. After setting folderPath to "Shared/Solution Invoice App", the error changed to ValidationResult: "NotFound" (bucket not yet created in that folder) — a clearer, more actionable error.
Workaround
Always provide an explicit folderPath in bucket bindings:
{
"resource": "bucket",
"key": "Invoices",
"value": {
"name": { "defaultValue": "Invoices" },
"folderPath": { "defaultValue": "Shared/Solution Invoice App" } // explicit, not ""
}
}Suggested Fix
- Treat empty
folderPathas "same folder as the process" during validation — this is the most reasonable default behavior - Or emit a clearer error when
folderPathis empty:"folderPath is required for bucket binding validation. Provide the folder path where the bucket will be deployed." - Update
uipath initto document this requirement in the generatedbindings.json(e.g. via a comment or README)
The current error message ("Folder might not exist or user access is restricted") sends developers down the wrong debugging path — they check folder permissions and bucket existence rather than the binding configuration.
Impact
- Severity: Medium
- Misleading error message causes wasted debugging time
- Easy to hit since
uipath initgeneratesbindings.jsonwithout anyfolderPathvalues