If a Copilot bot linked to a model-driven app was deleted, the app may fail to publish due to a broken reference. To fix this, open the app in the designer, go to Settings, and disable the Copilot control under features. This removes the bot reference. Save and publish the app again. If the issue persists, ensure no other components are referencing the deleted bot. This should resolve the error and allow publishing. If needed, recreate the bot or contact your admin for further support. Let me know if you'd like any further help.
Thanks,
Smit Agrawal
If the response is helpful, please click on "upvote" button. You can share your feedback via Microsoft Copilot Developer Feedback link. Click here to escalate.