Quantcast
Channel: PowerShell App Deployment Toolkit
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: Cannot bind parameter 'Date'. Cannot convert value "12/17/2014" [122]

$
0
0
Hi

I started to use 3.5.0 for some deployments. Today we got error:



The specified date/time [12/17/2014 10:06:51] is not in a format recognized by the current culture [sk-SK].
Error Record:
-------------

Message : Cannot bind parameter 'Date'. Cannot convert value "12/17/2014
10:06:51" to type "System.DateTime". Error: "String was not r
ecognized as a valid DateTime."
InnerException : System.Management.Automation.PSInvalidCastException: Cannot co
nvert value "12/17/2014 10:06:51" to type "System.DateTime". E
rror: "String was not recognized as a valid DateTime." ---> Sy
stem.FormatException: String was not recognized as a valid Dat
eTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo
dtfi, DateTimeStyles styles)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.ConvertV
iaParseMethod.ConvertWithCulture(Object valueToConvert, Type r
esultType, Boolean recursion, PSObject originalValueToConvert,
IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.Conversi
onData`1.Invoke(Object valueToConvert, Type resultType, Boolea
n recurse, PSObject originalValueToConvert, IFormatProvider fo
rmatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConvertT
o(Object valueToConvert, Type resultType, Boolean recursion, I
FormatProvider formatProvider, TypeTable backupTypeTable)
at System.Management.Automation.LanguagePrimitives.ConvertT
o(Object valueToConvert, Type resultType, IFormatProvider form
atProvider)
at System.Management.Automation.ParameterBinderBase.CoerceT
ypeAsNeeded(CommandParameterInternal argument, String paramete
rName, Type toType, ParameterCollectionTypeInformation collect
ionTypeInfo, Object currentValue)

FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Com
mands.GetDateCommand
ScriptStackTrace : at Get-UniversalDate<Process>, C:\_SMSTaskSequence\Pack
ages\CHP000A2\AppDeployToolkit\AppDeployToolkitMain.ps1
: line 4211
at Show-InstallationWelcome<Process>, C:\_SMSTaskSequen
ce\Packages\CHP000A2\AppDeployToolkit\AppDeployToolkitM
ain.ps1: line 4519
at <ScriptBlock>, C:\_SMSTaskSequence\Packages\CHP000A2
\Deploy-Application.ps1: line 123

PositionMessage : At C:\_SMSTaskSequence\Packages\CHP000A2\AppDeployToolkit\App
DeployToolkitMain.ps1:4211 char:48
+ [string]$universalDateTime = Get-Date -Date $Da
teTime -Format ($culture).Date ...
+ ~~~
~~~~~~

------------------------------------------------------------------------------------------------------------------
Moving date to 9.12.2014 allow me to install application.

Any help?


Rudolf
Comments: We are using Deploy Tools with SCCM. Today a tested deployment . Our script for java ( version 3.2.0 ) was OK, new package for LibreOffice (version 3.5.0 ) finished with error. I will try repackage with 3.2.0 and 3.6.0.

Viewing all articles
Browse latest Browse all 2341

Trending Articles