Thanks for this solution, this helped me immensely to quickly identify some issues I've been having with my replication.
However, just to add to help others, if you are replicating to Azure SQL DB, you will have to remove the following from the joins to make this work:
+ @sub_srv + '.' + @sub_db +
Additionally, I've read the comments regarding the built in validation stored procs to do the same job, does anyone have any examples of this? Thanks in advance!