Code Fix: Error occurs when packages containing SharePoint Online objects are deployed

  • 19 March 2024
  • 0 replies
  • 30 views

Badge +4

Issue Description

When you upgrade from SharePoint 2013 to SharePoint Online and then attempt to deploy a package containing SharePoint Online objects, an error occurs on Package & Deployment after everything else has been deployed successfully.

Error Message:

The following error occurs:

“String was not recognized as a valid DateTime. System.FormatException: String was not recognized as a valid DateTime.

at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

at SourceCode.Runtime.Services.SharePoint.Data.DataService.AssembleWebhookSubscription(SmartPropertyCollection properties)

at SourceCode.Runtime.Services.SharePoint.Data.DataService.d__48.MoveNext()

at SourceCode.Runtime.Services.SharePoint.ListSettingsRuntimeService.ToComplexType(ISPListSetting listSetting, GetItemOptions options)

at SourceCode.Runtime.Services.SharePoint.ListSettingsRuntimeService.GetComplexType(GetItemOptions options)

at SourceCode.Runtime.Services.SharePoint.DeploymentCollator.DoPostDeploy(DeploymentPlan plan)

at SourceCode.Deployment.Runtime.ServerSession.AsyncDeploy()”

Resolution

The fix is available in:

  1. Ensure you have the correct K2 version and/or Cumulative update installed. See KB001893 to see what Fix Pack level you have installed.
  2. Download the latest Fix Pack using the links in the table above for the version you require.
  3. Install the Fix Pack to apply the fix.

0 replies

Be the first to reply!

Reply