OSDBuilder icon indicating copy to clipboard operation
OSDBuilder copied to clipboard

Cannot convert value "18362." to type "System.Version.

Open MikeyDK opened this issue 5 years ago • 1 comments

Keeps getting this error:

VERBOSE: OSDSUS 19.9.26.1 Windows http://osdsus.osdeploy.com/release Cannot convert value "18362." to type "System.Version". Error: "Inputstrengen var ikke i et korrekt format." At C:\Program Files\WindowsPowerShell\Modules\OSDBuilder\19.9.20.0\Public\Get-OSMedia.ps1:336 char:13

  •         $ObjectProperties = @{
    
  •         ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvalidCastParseTargetInvocation

Exception setting "Revision": "The property 'Revision' cannot be found on this object. Verify that the property exists and can be set." At C:\Program Files\WindowsPowerShell\Modules\OSDBuilder\19.9.20.0\Public\Get-OSMedia.ps1:374 char:148

  • ... ct {$.Group | Select-Object -First 1} | foreach {$.Revision = 'OK'}
  •                                                   ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
    • FullyQualifiedErrorId : ExceptionWhenSetting

MikeyDK avatar Oct 01 '19 08:10 MikeyDK

Its probably an error because you have an OSMedia that didn't import or update properly. Try Get-OSMedia -Verbose to find the bad one and remove it

OSDeploy avatar Oct 01 '19 12:10 OSDeploy