Skip to content

Script Error after 00Initialize Data Collection #2

@red-erik

Description

@red-erik

Hello,
I receive the following error:
WARNING:
00 Initialize and Data Collection
Index operation failed; the array index evaluated to null.
At C:\Reports\vCheck-Exchange\vCheck.ps1:192 char:5

  •             $Question = $file[$Line]
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArrayIndex

You cannot call a method on a null-valued expression.
At C:\Reports\vCheck-Exchange\vCheck.ps1:196 char:5

  •             $CurSet = $Split[1].Trim()
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Do you have any suggestion ? Script running on Windows 2016 with EMS 2016 installed.

Regards.
Red.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions