Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
File names over 230 characters will cause JGit exception during source control operations - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • File names over 230 characters will cause JGit exception during source control operations
KB0714205

File names over 230 characters will cause JGit exception during source control operations


795 Views Last updated : Apr 9, 2024 public Copy Permalink
KB Summary by Now Assist

Description

If a file name exists that is over 230 characters, and therefore close to the maximum Unix filename length of 255 characters, then source control operations can fail.




Inspecting the logs show the following exception:

JGitInternalException: Exception caught during execution of reset command. File name too long

This is because jGit generates temporary files using the prefix "._" and then the update's name, followed by a random long number (maximum of 19 digits) and a final suffix of ".tmp". 

Hence 255 - 2 - 4 - 19 = 230 characters is the limit and anything greater than this will generate a file name longer than is supported by the underlying operating system.

Given a random long value is used as part of the filename, it is possible that the issue is not seen every time, but is more likely the longer the update name is over 230 characters.

Steps to Reproduce

One easy way to get a long file name is to create a compound index with a lot of columns, as the generated name will contain each column on the index. The resulting file name will follow this general format:

sys_index_table_name_column_a_column_b_column_c_column_d_column_e.xml

Workaround

After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make this decision lightly, and we apologise for any inconvenience.

The workaround is to avoid creating compound indexes with more than a small amount of columns. This is a preventative measure.

In case the issue has already occurred, you will no longer be able to perform source control operations with the existing repository. The solution in that case is to delete or reduce the complexity of the compound index, unlink your application from source control, and then re-link it to a brand new empty repository.


Related Problem: PRB1307874

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.