How to fix Publishing error on Data Factory

Publishing error Error while publishing: At least one resource deployment operation failed. Please list deployment operations for details. Please see for usage details.

Publishing error. Publish failed due to invalid references. View details for more information Details.

Publishing error remove unused Linked services

There are multiple things that needs to be checked. Go through each pipelines and do a cleanup. Also go to Manage -> Linked services and remove the ones that are not needed.

Solution overwrite live mode

It could also be a mismatch between git and data factory. Go to Manage -> Git configuration -> Overwrite live mode. Remember to have a backup before doing this and prevent losing valuable data.