Skip to content

Add-KeeperRecord fails when adding to folder #138

@sburns90

Description

@sburns90

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions