Deployment error with SharePoint P&D when list was re-named
kbt169047
PRODUCTIssue
Deploying a SharePoint package errors when deploying to a list originally named with special characters and then re-named to remove those characters.
This results in object reference error on deployment of package.
Source List:
- List named with Underscores
- List name changed
- List appified
- Package created with SharePoint P&D
Target List:
- List named with underscores
- List name changed
- Failure on deployment with SharePoint P&D
Symptoms
Deployment with SharePoint P&D results in Object Reference not sent to an instance of an object error when analyzing the list mappings if the list chosen had been renamed to remove special characters. In the example below the list was initially named: 'Test_K2_Rename' and then changed to 'Test K2 Rename':
Resolution
Presently this issue is only found when using the SharePoint Package and Deployment tool. This tool is legacy and only available on blackpearl 4.7. Therefore the issue is not present on K2 Five or later where the Package and Deployment MMC is used.
To workaround this on 4.7, avoid renaming SharePoint lists. List templates can be used and create the list initially with the desired name to avoid errors.