Fix: System generated stored procedures are created incorrectly in P2P publication if the schema name of published table contains a period (.) in SQL Server 2014 or 2016

Applies to: SQL Server 2014 DeveloperSQL Server 2014 EnterpriseSQL Server 2014 Enterprise Core

Symptoms


Assume that you create a Peer-to-Peer (P2P) publication in Microsoft SQL Server 2014 or 2016. In this P2P publication, you publish a table whose schema name contains a period (.). When the distribution agent runs for this publication, it may fail with the following error:

Procedure or function ProcedureName has too many arguments specified

Cause


This issue occurs because the system generated stored procedures are created incorrectly in P2P publication when the schema name of published table contains a period (.).

Resolution


This issue is fixed in the following cumulative updates for SQL Server:

       Cumulative Update 7 for SQL Server 2016 RTM

       Cumulative Update 4 for SQL Sever 2016 SP1

       Cumulative Update 6 for SQL Server 2014 SP2

       Cumulative Update 13 for SQL Server 2014 SP1

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.