Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-KeeperRecord fails when adding to folder #138

Open
sburns90 opened this issue Dec 5, 2024 · 1 comment
Open

Add-KeeperRecord fails when adding to folder #138

sburns90 opened this issue Dec 5, 2024 · 1 comment

Comments

@sburns90
Copy link

sburns90 commented Dec 5, 2024

Any time I attempt to add a record to a folder with a command such as this:
Add-KeeperRecord -Folder "TestFolder1234" -GeneratePassword -Notes "Created with script" -RecordType serverCredentials -Title StevesTest

I get the following error:

resolveFolderNode : Folder TestFolder1234 not found
At C:\Program Files\WindowsPowerShell\Modules\PowerCommander\0.9.19\RecordCommands.ps1:511 char:31
+                 $folderNode = resolveFolderNode $vault $Folder
+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,resolveFolderNode

This ONLY happens when adding it to a folder. It does not matter what I name the folder. The problem still occurs.
I have confirmed the folder exists.

This does NOT happen when adding to the root password vault.

For example this command:
Add-KeeperRecord -GeneratePassword -Notes "Created with script" -RecordType serverCredentials -Title StevesTest1

Results in this:

UID                             Type                         Title                Info
---                               ----                         -----               ----
XXXXXXXXXXXXXXXXX            serverCredentials          StevesTest1
@sk-keeper
Copy link
Collaborator

Folder TestFolder1234 should exist and be listed by kdir command.
If this folder is not found then a record is created in the vault root.

You can use a full path in a -Folder parameter

-Folder "\Root Folder1\Sub folder 2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants