LEGACY CONTENT
This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Introduction

When using the SmartObject Event Wizard to replicate datafields and one of the SmartObject properties is of Date/Time type, a "Specified cast is not valid" error will occur if this source SmartObject property is left empty.

Error Scenario Steps

Note: The steps below describe one scenario under which this error may occur. The steps below are simplified and not all the steps will be shown or described.
  1. Create a list in SharePoint with a Date column
  2. Click on the Actions menu in SharePoint
  3. Click K2 Site Settings> SmartObject Integration
  4. Select the Sharepoint list and click create
  5. Add a record to the list, leaving the Date property empty
  6. Create an InfoPath form to load the record
  7. Load the record
  8. An error occurs

Error Messages

Specified cast is not valid



Error Resolution