Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Error while executing the script #2

Description

@ambarishrh

Hello,

I edited the following parameters on the config file:

Tenant
DocumentName
ExportPath
applePushNotificationCertificate: True

Then executed the PS and got the below errors:

Format-PSTable : A parameter cannot be found that matches parameter name 'NoAliasOrScriptProperties'.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:65 char:81

  • ... -ExcludeProperty $ExcludeProperty -NoAliasOrScriptProperties:$NoAlias ...
  •                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Format-PSTable], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Format-PSTable

Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:66 char:13

  •         $WorksheetHeaders = $Data[0] # Saving Header information  ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:68 char:34

  • ... $NumberColumns = if ($Data[0].Count -ge $MaximumColumns) { $Max ...
  •                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Exception calling "InsertTable" with "2" argument(s): "Specified argument was out of the range of valid
values.
Parameter name: Row and Column count must be greater than zero."
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:365 char:9

  •     $WordTable = $WordDocument.InsertTable($NrRows, $NrColumns)
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentOutOfRangeException

Format-PSTable : A parameter cannot be found that matches parameter name 'NoAliasOrScriptProperties'.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:65 char:81

  • ... -ExcludeProperty $ExcludeProperty -NoAliasOrScriptProperties:$NoAlias ...
  •                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Format-PSTable], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Format-PSTable

Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:66 char:13

  •         $WorksheetHeaders = $Data[0] # Saving Header information  ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:68 char:34

  • ... $NumberColumns = if ($Data[0].Count -ge $MaximumColumns) { $Max ...
  •                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Exception calling "InsertTable" with "2" argument(s): "Specified argument was out of the range of valid
values.
Parameter name: Row and Column count must be greater than zero."
At C:\Program Files\WindowsPowerShell\Modules\PSWriteWord\0.5.8\Public\PSWordTable.ps1:365 char:9

  •     $WordTable = $WordDocument.InsertTable($NrRows, $NrColumns)
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentOutOfRangeException

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed more infoNeed more info to be able to fix the issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions