Symptoms
Specified cast is not valid
Diagnoses
Issue: User getting errors when submitting to a SharePoint list based form. Specified cast is not valid
Resolution
Known issue and ticket has been linked to existing TFS item. Send the following steps to the customer to resolve the issue: If the users Oauth token is expired and it attempts to refresh the error is surfaced. To resolve this issue do the following:
1. Delete the Microsoft Online token from the K2 Management site for the problematic user. To access K2 Management: SharePoint site collection andgt Site Contents andgt K2 Appit for SharePoint andgt K2 Management andgt Authentication andgt OAuth andgt Tokens
2. As the user, access any view, it will prompt for re-auth
3. After authorization is successful, the view will load without any errors