SCCM Connector 2012 r2 connector not replicating with Xenapp 6.5 farm – common fix this one

Common enough issue this one, beware of your farm objects not being spick and span! Got to have a very clean datastore otherwise issues arise SCCM Connector 2012 r2 connector not replicating with Xenapp 6 Advertisements