I get an error when purging a large number of publishing transactions which indicates that there is a problem with the size of the received message size being greater than 10,485,760.
I have checked the TcmServiceHost.exe.config and the MaxReceivedMessageSize is configured to 2,147,483,647.
Anyone got ideas what the real problem is?
Sample Code:
$DaysToKeep = 120
[datetime]$dt = (Get-Date).AddDays(-$DaysToKeep)
Import-Module Tridion.ContentManager.Automation
$transactions = Remove-TcmPublishTransactions -Before $dt
$purged=$transactions.count
More code to write purged transaction data to log file and notify change in Tridion Event log
Error:
Remove-TcmPublishTransactions : The maximum message size quota for
incoming messages (10485760) has been exceeded. To increase the quota,
use the MaxReceivedMessageSize property on the appropriate binding element.
At C:\scripts\PurgePublishingTransactions.ps1:58 char:17
+ $transactions = Remove-TcmPublishTransactions -Before $dt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:)
[Remove-TcmPublishTransactions], CommunicationException
+ FullyQualifiedErrorId :
System.ServiceModel.CommunicationException,Tridion.ContentManager.Automation.Commands.RemoveTcmPublishTransactionsCommand
Configuration:
C:\Program Files (x86)\Tridion\bin\TcmServiceHost.exe.config
<netTcpBinding>
<binding name="CoreService_netTcpBinding"
transactionFlow="true"
transactionProtocol="WSAtomicTransaction11"
maxReceivedMessageSize="2147483647">
<readerQuotas
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
/>
</binding>
<binding name="StreamDownload_netTcpBinding"
maxReceivedMessageSize="2147483647"
transferMode="StreamedResponse"
sendTimeout="00:10:00" />
</netTcpBinding>