After a clone, importing unpublished changes for a scoped application (ABC) from an external repository (like git) throws the below error:
"Application 'ABC' is already associated with another repository configuration"
Release or Environment
There exists an older repository configuration for the app on sys_repo_config table.
1. Delete the old config record in "sys_repo_config" table for the application.
2. Open the application in Studio.
3. Navigate to Source Control > Link to Source Control.
4. Enter the proper config/credentials to link to the repository and click Submit.
Link an application to source control: https://docs.servicenow.com/bundle/madrid-application-development/page/build/applications/task/t_LinkAnApplicationToSourceControl.html