Skip to content

ExtractSolution.ps1 error with invalid path in latest version #314

Description

@ghexplorer007

Hi Wael.

I noticed this error as soon as version 9.1.0.2 of powershell was released but haven't got time to investigate it in details until now.

In short, ExtractSolution script is failing with error:
Expand-XrmSolution : The given path's format is not supported.
At C:\Program Files\WindowsPowerShell\Modules\Xrm.Framework.CI.PowerShell.Cmdlets\9.1.0.2\ExtractSolution.ps1:100 char:1

After debugging script I found out that cmdlet Export-XrmSolution(used internaly by ExtractSolution script) is in latest version returning full path to zip file, which then concatinated with variable $env:TEMP produces invalid path for solution packager.
In version 9.1.0.1 cmdlet returns only zip name without path. See attached screenshots for both versions

Cheers

CIV9 1 0 1
CIErrorV9 1 0 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions