Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version giving alignment errors #13

Closed
ajkeane-aws opened this issue May 18, 2021 · 2 comments
Closed

Latest version giving alignment errors #13

ajkeane-aws opened this issue May 18, 2021 · 2 comments

Comments

@ajkeane-aws
Copy link

ajkeane-aws commented May 18, 2021

Running the script gives the following errors - also provided the current versions of everything and I updated to the latest.

get-module importexcel

ModuleType Version Name ExportedCommands


Script 7.1.2 ImportExcel

$psversiontable.psversion

Major Minor Patch PreReleaseLabel BuildLabel


7 1 2

az --version
azure-cli 2.23.0
core 2.23.0
telemetry 1.0.6
Extensions:
resource-graph 1.1.0

Errors-

The property 'HorizontalAlignment' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\WindowsPowerShell\Modules\ImportExcel\7.1.2\Public\Set-ExcelRange.ps1:107 char:17

  • ... $Range.Style.HorizontalAlignment = $HorizontalAlignment
  •               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

The property 'Format' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\WindowsPowerShell\Modules\ImportExcel\7.1.2\Public\Set-ExcelRange.ps1:128 char:17

  • ... $Range.Style.Numberformat.Format = (Expand-NumberFormat $ ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

WARNING: Failed autosizing columns of worksheet 'Subscriptions': You cannot call a method on a null-valued expression.
WARNING: Failed adding PivotTable 'P1': Index operation failed; the array index evaluated to null.
WARNING: Failed adding chart for pivotable 'P1': Cannot bind argument to parameter 'PivotTable' because it is null.
Report Complete. Total Runtime was: .83 Minutes

@ClaudioMerola
Copy link
Contributor

Hi,

I think this error is because you were using the old version of Azure Resource Graph.

I updated the script to support the old versions too.

Can you try the version 1,4,5 and see how it goes?

Thanks

@ajkeane-aws
Copy link
Author

Thanks -- I didn't realize I was using an outdated version. I updated to the latest which is 2.0 and it worked. Thanks for the quick response.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants