get "Repository does not contain an Application file to import" trying to "Import from Source Control" GitHub

Mike D4
Tera Contributor

Trying to test out an integration but get stuck trying to "Import from Source Control" (GitHub)

 

Created an app. It works correctly.

Uploaded / synced it to GitHub account A.  Shared with GitHub account B.

From account B, forked a copy to account B.  Downloaded the URL from "Clone with HTTPS".

In a new ServiceNow Developer instance attempted to "Import from Source Control"

It appears to progress showing an increasing % complete but then I get an error:

"Repository does not contain an Application file to import"

 

Using this training and doc:

https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/technology_partner_program_qu...

https://docs.servicenow.com/bundle/orlando-application-development/page/build/applications/task/t_Im...

 

1 ACCEPTED SOLUTION

Chris - thanks so much for your response.

I am not experiencing this problem anymore. I don't think I did anything to explicitly fix it.

Appreciate your suggestions

View solution in original post

11 REPLIES 11

Ramya30
Tera Contributor

Hi Mike,

 

Where you able to resolve this issue? I receive the same error and not sure how to resolve it. 

 

Thanks

Ramya

Mike D4
Tera Contributor

Hi Ramy - thanks for the reply.

Unfortunately no.  The original app was in a trial SN instance and I don't have that now.

Sounds like I may be forced to re-create the application from scratch ... 😞

 

Mike

 

Ramya30
Tera Contributor

This error is generated when one particular application file get auto-deleted from the repository. There is a sys_app_<sys_id of the app>.xml file under https://github.com/<github-handle>/<repo_name>/tree/master/<sys_id> 

 

Cause of this issue: This happens when there is an update to the sys_app record (such as increasing the version) along with updates to other files of the custom app. When the user commits changes to the Repo by unselecting the sys_app record change in the Commit List, it will trigger the deletion of sys_app record in the GIT repo. This is based on an investigation done by ServiceNow and they are working towards putting a permanent fix to it. 

 

Workaround: Do not unselect changes to sys_app in the selective commit. In case you already unchecked sys_app record at the time of commit, you can recover the app by restoring the file to your branch from a previous commit and apply remote changes on the instance. 

Community Alums
Not applicable

I am getting the same error