RamblingCookieMonster / PSExcel

A simple Excel PowerShell module
http://ramblingcookiemonster.github.io/PSExcel-Intro/
MIT License
245 stars 67 forks source link

Cannot find type [OfficeOpenXml.ExcelPackage]: verify that the assembly containing this type is loaded. #57

Open johnpeck09 opened 7 years ago

johnpeck09 commented 7 years ago

Greetings,

We receive the following error when we use the Import-XLXS module to try to combine 2 excel files in PowerShell 5.

    PS C:\windows\system32> $L = Import-XLSX C:\Users\Public\KBs\SecurityUpdates.xlsx
    Import-XLSX : Failed to open 'C:\Users\Public\KBs\SecurityUpdates.xlsx':
    Cannot find type [OfficeOpenXml.ExcelPackage]: verify that the assembly containing this type is 
    loaded.
    At line:1 char:6
    + $L = Import-XLSX C:\Users\Public\KBs\SecurityUpdates.xlsx
   +      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   + CategoryInfo          : NotSpecified: (  [Write-Error], WriteErrorException
   + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Import-XLSX  

I look forward to hearing back from you soon concerning this issue.

RamblingCookieMonster commented 7 years ago

Hi John!

A few questions:

Cheers!

johnpeck09 commented 7 years ago

Good news, we got the module working; however, we are still having the following issue. When we import the xlsx one sheet has embedded URLs and the other is for a join-object key. when we do a "join-object" and export-xlsx, why doesn't it keep the URLs?

I appreciate the help.