• For all those who are facing this issue with SQL 2016/2017, following can help. It helped me.

    Please note, this setting needs to be disabled in addition to EXEC sp_configure 'remote proc trans', '0';
    RECONFIGURE;

    https://am2.co/2018/02/replication-availability-groups-2/