Anyone running into issue trying to purge old version from powershell in Tridion 2013?
I am running the following command:
Remove-TcmItemsOldVersions –ContainerItemIds(Get-TcmRepository).id –VersionsToKeep 5 -recursive
Remove-TcmItemsOldVersions : This request operation sent to net.tcp://localhost:2660/CoreService/2012/netTcp did not receive a reply within the configured timeout (00:01:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.
I tried it for just one publication and getting a timeout as well.
Here's the command for one pub:
Remove-TcmItemsOldVersions –ContainerItemIds "tcm:x-x-x" –VersionsToKeep 5 -recursive
In my Tridion\web\web.config I included this new endpoint behavior for netTcp_2012
<endpoint name="netTcp_2012" address="net.tcp://localhost:2660/CoreService/2012/netTcp" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" contract="Tridion.ContentManager.CoreService.Client.ISessionAwareCoreService" behaviorConfiguration="Tridion.ContentManager.CoreServiceBehavior"/> <behaviors> <endpointBehaviors> <!-- some other behavior name might exist here --> <behavior name="Tridion.ContentManager.CoreServiceBehavior"> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> </behavior> </endpointBehaviors> </behaviors>
It does not seem to be working still....