Hi,
since last friday I have the problem when teamcity wants to create a release (or I want to do it manually on the octopus server) I get an error: “The current value ‘String’ type is not compatible with the expected ‘System.DateTimeOffset’ type.”
this error is caused by the call: http://our.server/deploy/api/feeds/feeds-teamcity/packages?packageIds=Backend.Services.WebDataAccessLayer
{
“ErrorMessage”: “The current value ‘String’ type is not compatible with the expected ‘System.DateTimeOffset’ type.”,
“FullException”: “System.InvalidOperationException: The current value ‘String’ type is not compatible with the expected ‘System.DateTimeOffset’ type. —> System.FormatException: The string ‘2015-05-15T10:20’ is not a valid AllXsd value.\r\n at System.Xml.XmlConvert.ToDateTimeOffset(String s)\r\n at System.Data.Services.Client.ClientConvert.ChangeType(String propertyValue, Type propertyType)\r\n — End of inner exception stack trace —\r\n at System.Data.Services.Client.ClientConvert.ChangeType(String propertyValue, Type propertyType)\r\n at System.Data.Services.Client.AtomMaterializer.MaterializeDataValue(Type type, AtomContentProperty atomProperty, DataServiceContext context)\r\n at System.Data.Services.Client.AtomMaterializer.MaterializeDataValues(ClientType actualType, List1 values, Boolean ignoreMissingProperties, DataServiceContext context)\r\n at System.Data.Services.Client.AtomMaterializer.MaterializeResolvedEntry(AtomEntry entry, Boolean includeLinks)\r\n at System.Data.Services.Client.AtomMaterializer.DirectMaterializePlan(AtomMaterializer materializer, AtomEntry entry, Type expectedEntryType)\r\n at System.Data.Services.Client.AtomMaterializer.Read()\r\n at System.Data.Services.Client.MaterializeAtom.MoveNextInternal()\r\n at System.Data.Services.Client.MaterializeAtom.MoveNext()\r\n at NuGet.DataServiceQueryWrapper
1.d__7.MoveNext()\r\n at System.Collections.Generic.List1..ctor(IEnumerable
1 collection)\r\n at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)\r\n at NuGet.PackageRepositoryExtensions.FindPackagesById(IPackageRepository repository, String packageId)\r\n at Octopus.Server.Web.Api.Actions.PackageSearchAction.<>c__DisplayClass3c.<Versions>b__38(String p) in y:\\work\\refs\\heads\\master\\source\\Octopus.Server\\Web\\Api\\Actions\\PackageSearchAction.cs:line 105\r\n at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()\r\n at System.Linq.Buffer
1…ctor(IEnumerable1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)\r\n at Octopus.Server.Web.Api.Actions.PackageSearchAction.Execute() in y:\work\refs\heads\master\source\Octopus.Server\Web\Api\Actions\PackageSearchAction.cs:line 41\r\n at Octopus.Platform.Web.Api.Responder1.Respond(TDescriptor options, NancyContext context) in y:\\work\\refs\\heads\\master\\source\\Octopus.Platform.Web\\Api\\Responder.cs:line 163\r\n at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)\r\n at CallSite.Target(Closure , CallSite , Object , Object , NancyContext )\r\n at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass5.<.ctor>b__2(Object o) in y:\\work\\refs\\heads\\master\\source\\Octopus.Server\\Web\\Api\\OctopusRestApiModule.cs:line 47\r\n at CallSite.Target(Closure , CallSite , Func
2 , Object )\r\n at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)”
}
My guess was that one of the nuget packages has a wrong publish date - 2015-05-15T10:20 I tried to remove all nuget-packages (manually and with the help of retention policies, but nothing worked.
I am using version: Octopus Deploy 2.6.5.1010
Thanks,
Thomas