K2 solutions built against SharePoint lists and document libraries require that the structure of those lists and libraries remain consistent to ensure data integrity between K2 and SharePoint and between multiple environments. As such, K2 has built a structure validation into the K2 Application page of every integrated list and library. When we detect that the structure has changed, either because you intended to make the change, or because Microsoft has forced a change, we let you know so you can decide what to do. If your solution is bound to a single environment, you can choose to ignore the change. However, if you wish to move your solution between environments or even between lists and libraries on the same environment, you will need to regenerate your SmartObjects to ensure the changes to the structure are reflected in all environments. You may also need to incorporate the changes into your forms, but that is only required if you’ve customized the forms.
Regenerate your SmartObjects
- Click the K2 Application icon in the ribbon of the document library.
- You will see a warning at the top of the page.
- Click the Regenerate SmartObjects link.
You can optionally regenerate your Views and Forms depending on the level of customization you’ve applied.
Regenerate your Package
You will also need to regenerate any packages you have created to incorporate the updated SmartObjects (and optionally Views and Forms).