Skip to content

[BUG] Getting VBR session information Error #120

@Julien-grandin

Description

@Julien-grandin

What happened?

Getting VBR session information Error

Steps To Reproduce

No response

VeeamNotify version

v2.1

PowerShell version

5.1

Veeam Backup & Replication build number

12.3.1.1139

Relevant log output

**********************
Début de la transcription Windows PowerShell
Heure de début : 20250603162513
Nom d'utilisateur : GRANDIN\Système
Utilisateur runAs :  GRANDIN\Système
Nom de la configuration : 
Ordinateur : SRV99 (Microsoft Windows NT 10.0.20348.0)
Application hôte : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1
ID de processus : 9404
PSVersion: 5.1.20348.2849
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.2849
BuildVersion: 10.0.20348.2849
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2025-06-03T14:25:13.316Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2025-06-03_16.25.13_Bootstrap.log'.
2025-06-03T14:25:13.376Z [INFO] Version: v2.1.0
2025-06-03T14:25:13.711Z [INFO] Configuration validated successfully.
2025-06-03T14:25:13.711Z [INFO] Attempting to retrieve job ID and session ID from the parent process.
2025-06-03T14:25:13.836Z [INFO] Getting VBR job details
2025-06-03T14:25:18.313Z [INFO] Getting VBR session information
Impossible de créer un objet de type «VBRSessionInfo». Impossible de convertir la valeur «
Veeam.Backup.Core.CBackupSession[]» du type «Veeam.Backup.Core.CBackupSession[]» en type «
Veeam.Backup.Core.CBackupSession».
Au caractère C:\VeeamScripts\VeeamNotify\resources\VBRSessionInfo.psm1:50 : 9
+     return [VBRSessionInfo]@{
+            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument : (:) [], RuntimeException
    + FullyQualifiedErrorId : ObjectCreationError
Impossible de créer un objet de type «VBRSessionInfo». Impossible de convertir la valeur «
Veeam.Backup.Core.CBackupSession[]» du type «Veeam.Backup.Core.CBackupSession[]» en type «
Veeam.Backup.Core.CBackupSession».
Au caractère C:\VeeamScripts\VeeamNotify\resources\VBRSessionInfo.psm1:50 : 9
+     return [VBRSessionInfo]@{
+            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument : (:) [], RuntimeException
    + FullyQualifiedErrorId : ObjectCreationError

Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:110 : 1
+ $vbrLogEntry = $vbrSessionLogger.AddLog('[VeeamNotify] Parsing job &  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:110 : 1
+ $vbrLogEntry = $vbrSessionLogger.AddLog('[VeeamNotify] Parsing job &  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

2025-06-03T14:25:19.016Z [INFO] Bootstrap script for Veeam job '' (job 63f6e17d-755d-4e4c-9069-27768b6a9e42 session b6e06dba-bff4-4bcc-a5b0-393e984cc5d3) - Session & job detection complete.
Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:137 : 1
+ $vbrSessionLogger.UpdateSuccess($vbrLogEntry, '[VeeamNotify] Parsed j ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:137 : 1
+ $vbrSessionLogger.UpdateSuccess($vbrLogEntry, '[VeeamNotify] Parsed j ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

2025-06-03T14:25:19.082Z [INFO] Launching AlertSender.ps1...
2025-06-03T14:25:19.082Z [ERROR] Failed to launch AlertSender.ps1: Impossible dappeler une méthode dans une expression Null.
Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:151 : 2
+     $vbrSessionLogger.UpdateErr($vbrLogEntry, '[VeeamNotify] Failed t ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
Impossible dappeler une méthode dans une expression Null.
Au caractère C:\VeeamScripts\VeeamNotify\Bootstrap.ps1:151 : 2
+     $vbrSessionLogger.UpdateErr($vbrLogEntry, '[VeeamNotify] Failed t ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

2025-06-03T14:25:19.110Z [INFO] Stopping transcript logging.
**********************
Fin de la transcription Windows PowerShell
Heure de fin : 20250603162519
**********************

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions