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 (.).

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.