Hello Veizi Ioanna,
From the error message it seems like your source data factory might have a non linked SHIR that you are using in your linked service.
If this the case, you need to set SHIR in a ternary data factory and share it out and utilize linked SHIRs in the data factory where you export the templates
This is discussed at https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#best-practices-for-cicd.
I hope this helps.