Translate

Saturday 12 January 2013

SharePoint 2013 :- The SPListItem being updated was not retrieved with all taxonomy fields

The SPListItem being updated was not retrieved with all taxonomy fields

 
Hi All,
I was getting the above error while trying to assign the terms values to a custom meta data column(via programmatically as well as manually). Even after increasing the List View Lookup Threshold value above 8, still I was getting the same error.

 
Not sure about the root cause of the issue, however I could resolve the same by re creating the custom site columns and site content types once again. Thought of sharing this info, as this might help someone trouble shooting  the issue.
 

Tuesday 1 January 2013

SharePoint 2013 - Backup - Restore Managed Metadata from one farm to another

Below Powershell script can be used to back up and restore the terms from one sharepoint farm to another in sharepoint 2013.


For BackUp #Add-PSSnapin Microsoft.SharePoint.PowerShell

$mmsAppId= "Pass GUID- refer the first screen shot below to get the guid"

$mmsproxy = Get-SPServiceApplicationProxy -Identity  "GUID- refer the second screen shot for getting the guid "

Export-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\path\FileName.cab"



For Restore

move the  FileName.cab file to the new server.

Use the below PowerShell commands.

$mmsAppId= "GUID- refer the first screen shot to get the guid"

$mmsproxy = Get-SPServiceApplicationProxy -Identity  "GUID- refer the second screen shot for getting the guid "

Import-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "C:\.\FileName.cab" -OverwriteExisting;


 

Screen Shot1:-Please get the guid from the circled section of the below sccreen









Screen Shot2:-You can get the guid from  highlighted section of the the pop up from below screen shot