88 views

Description

If a file name exists that is at or close to the maximum length of 255 characters, source control operations will fail.



If you inspect the logs, you will see the following exception:

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

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

The best workaround is to avoid creating compound indexes with more than a small amount of columns. This is a preventative measure. However, if the issue has already occurred, you will no longer be able to perform source control operations with the existing repository. The simplest 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

Seen In

Jakarta
Kingston
London

Intended Fix Version

Madrid

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-10-03 14:55:27
Published:2018-10-03