Space or Site imports fail when URLs in import file are longer than 255 characters
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
When importing a space or site which contains URLs longer than 255 characters, the following error is encountered:
1
2
ERROR [Long running task: Importing data] [engine.jdbc.spi.SqlExceptionHelper] logExceptions Data truncation: Data too long for column 'LOWERURL' at row 1
ERROR [Long running task: Importing data] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.links.ReferralLink] [Id[id]=75925448, Property[viewCount]=1, Property[url]=<URL>[lowerUrl]=<URL>
Cause
Currently the EXTRNLNKS
and TRACKBACKLINKS
tables use a VARCHAR 255 data type for URL
and and LOWERURL
columns.
Workaround
Edit the import file and shorten/remove URLs longer than 255 characters or increase the data storage type up from 255.
Feature Request
There is a suggestion logged to request Confluence support the storage of longer URLs, please see CONFSERVER-58754 - support for storing URLs longer than 255 characters
Was this helpful?