Experience Edgeへパブリッシュすると、未処理の例外により失敗する可能性があります。
#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ...
この問題の根本原因は、パブリッシュ対象の一部のアイテムのテンプレートが欠落していることです。実際に欠落しているテンプレートを示す次のエラーもログに記録されている可能性があります。
ERROR Data template '{Item_ID}' not found for item '/sitecore/Item_path' in 'master' database
この問題を解決するには、Sitecore XP 10.2およびSitecore Headless Rendering 20の場合、KB1003491で入手可能なExperience Edge Connectorモジュールの累積Hotfixをダウンロードしてインストールしてください。