I'm adding a publication via sp_addpublication with the compress_data parameter set to true but it's generating a 14151 application event ID. This was working with SQL Server 2016 and is only a problem since moving to SQL Server 2017.
The event log shows the following:
Log Name: Application
Source: MSSQL$AXISDIPLOMAT
Date: 16/10/2019 10:12:55
Event ID: 14151
Task Category: Server
Level: Error
Keywords: Classic
User: SYSAXIS\AXISDiplomatServices
Computer: COCOA.systemsaxis.co.uk
Description:
Replication-Replication Snapshot Subsystem: agent COCOA\AXISDIPLOMAT-AXISLogs-AXISLogs-5 failed. The replication agent had encountered an exception.
Source: Replication
Exception Type: Microsoft.SqlServer.Replication.FciException
Exception Message: The replication agent had encountered a file compression (cabinet) library error while calling 'FCIC
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSSQL$AXISDIPLOMAT" />
<EventID Qualifiers="49152">14151</EventID>
<Level>2</Level>
<Task>2</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-10-16T09:12:55.153531900Z" />
<EventRecordID>13058</EventRecordID>
<Channel>Application</Channel>
<Computer>COCOA.systemsaxis.co.uk</Computer>
<Security UserID="S-1-5-21-2143581470-1533220960-538272213-14285" />
</System>
<EventData>
<Data>Replication Snapshot Subsystem</Data>
<Data>COCOA\AXISDIPLOMAT-AXISLogs-AXISLogs-5</Data>
<Data>The replication agent had encountered an exception.
Source: Replication
Exception Type: Microsoft.SqlServer.Replication.FciException
Exception Message: The replication agent had encountered a file compression (cabinet) library error while calling 'FCIC</Data>
<Binary>47370000120000001300000043004F0043004F0041005C0041005800490053004400490050004C004F004D004100540000000D00000064006900730074007200690062007500740069006F006E000000</Binary>
</EventData>
</Event>
It happens every time I add the publication. If I switch off compression then the error goes away.
Can anyone suggest the cause of the error?