When I try to reinitialize transactional replication with an updatable subscription, I got the following error:
A valid identity range is not available. Check the data type of the identity column.
The replication has only one table, with a column called ID
of
type int
identity (1,1)
, with 2 rows inside.
I already did:
- Drop and recreate the ranges;
-
I have executed
DBCC CHECKIDENT('Table_Name', 'reseed', Current_Value+1)
for both servers inclusive; -
executed
sp_adjustpublisheridentityrange @table_name='table_name';
I have manually updated the table MsRepl_identity_range
on
the distributor side, but not on the subscriber side.
The update with the procedure sp_MSfetchAdjustidentityrange
,
at the distributor side, throws the same error as above.
What I planning as the next step:
- Drop the subscriber table and I will try to reinitialize the replication marking it for reinitialization, using a new snapshot.
But, someone already saw this error and could help with that?
Thant you. Att,