Forum / Remote Desktop Manager - PowerShell Repository

Set-RDMCurrentRepository generates error

  • Create an Issue
  • Cancel

I need to specify vault to be used in script. I do that in script using next code:
$RdmVault = Get-RDMRepository -Name $Vault
Set-RDMCurrentRepository -Repository $RdmVault

Abovementioned code always gets error:

Set-RDMCurrentRepository : Object reference not set to an instance of an object.
At C:\Projects\scripts.telia\src\TeamPass\new-testfoldertree.ps1:110 char:5
+ Set-RDMCurrentRepository -Repository $RdmVault
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (smile [Set-RDMCurrentRepository], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,RemoteDesktopManager.PowerShellModule.SetRDMCurrentRepositoryCommand


Despite the error message, current vault is sucessfully changed.

Changing Set-RDMCurrentRepository commandline parameters from -Repository to -ID generates same error.

Adding -ErrorAction SilentlyContinue to commandline doesn't supress the message.

RDM version: 2019.1.30.0
Data source is Microsoft SQL Server

Meelis

Clock6 mths


Hello,

Thank you for reporting that issue.

We have been able to reproduce the issue. A ticket has been sent to our engineering department. Once a fix will be available, we will update this thread.

Best regards,



Érica Poirier

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock6 mths

I have the same error, is this issue fixed ?

foreach ($repo in $repos)
{
Set-RDMCurrentRepository $repo

}

-->

Set-RDMCurrentRepository : Object reference not set to an instance of an object.
At C:\Users\GeoffreyGhesquière(G\Source\Git\Ghalan.RDM\Test_en_cours.ps1:18 char:5
+ Set-RDMCurrentRepository -Verbose $repo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (smile [Set-RDMCurrentRepository], NullReferenceException
+ FullyQualifiedErrorId : System.NullReferenceException,RemoteDesktopManager.PowerShellModule.SetRDMCurrentRepositoryCommand

Thanks


Clock5 mths


Hello,

This issue isn't fixed yet. I will ask to increase the priority on this ticket.

Best regards,



Érica Poirier

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock5 mths


Hello,

The issue has been resolved intenally and the fix will be available in the next RDM version 2019.1.40.

Best regards,



Érica Poirier

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock5 mths

Thanks

Clock5 mths


Hello,

Just to let you know that RDM 2019.1.40 is now available online and the fix is included in that version.

Best regards,



Érica Poirier

Happy Holiday Season!
Although our various support queues will be monitored during the coming holiday season, Devolutions' offices will be closed from December 24th, 2019, to January 1, 2020, inclusively.

signaturesignature

Clock5 mths