< class="prominent-subhead ">

Get Documents method is failing. Error message appears: "Identifier is too long. Maximum length is 128 characters"

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


After the copy document step (executing Get Documents method) an error message appears about maximum length being too long:

'Identifier.. is too long. Maximum length is 128'

The identifier that starts with ’_x0034__x002d_column_x0020_Name_x0020__x0028_Properties_x002c
__x0020_Pg1_x002c__x0020_ __x0020_docx_x002c__x0020_’ is too long.
Maximum length is 128.


The SharePoint column(s) are created with an internal name containing more than 128 characters. View the internal name for a SharePoint column by browsing to the List Settings > Edit Column and look at the QueryString. This will be url encoded but it is a simple way of retrieving the internal name.

After decoding, the actual field name in this example is "4th Step Review" but it contains extra ASCII characters from when the field was created. This can happen if the field name was copied/pasted from MS Word.






Troubleshooting Steps

To resolve this issue, delete the column and re-create it. The SmartObjects can then be re-generated for the SharePoint library/list.