• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/AttachmentExtractor (AE)/SharePoint path limitation avoidance

SharePoint path limitation avoidance

193 views 0 Updated on July 27, 2022

SharePoint paths limitations are hard coded. The maximum path length is 260 characters. If that limit is exceeded, you get the SharePoint error 414. This article outlines how to avoid this error.

Minimum requirements: AttachmentExtractor v.124 and/or DocumentsCorePack v.167 or higher

mscrm-addons products offer several default ways to shorten SharePoint paths:


1) We provide you with a default shortening to a maximum of 30 characters + GUID for each folder name. 

2) We provide you with a default shortening to a maximum of 30 characters + GUID for each file name. 
3) ShortIDs: We create a 6-characters ID alternatively to the well-known 36 GUIDs of Microsoft Dynamics 365 (CRM). 
4) Use an alternative field for the generation of paths. (e.g. instead of account name we can use a unique account number field)

 

Please note: Even though the creation of short paths is a very valuable feature, existing paths cannot be shortened anymore, unless very specific criteria are met. Manual interaction is always required.

 

How to activate a ShortID for AttachmentExtractor​

1) First, you must activate ShortID for AttachmentExtractor. To do so, please follow the below path in order to get to the ShortID settings.
Please note, that you must replace [YourServiceName] with your individual service name: 

HKEY_LOCAL_MACHINE\SOFTWARE\PTM EDV-Systeme\AttachmentExtractorserver\Configurations\[YourServiceName]

2) Next, set UseShortID to true.

3) To define the cutting, you will have to create a new settingskey. If you have not created a settingskey yet, please have a look at this article.

Depending on which item you would like to customize, please enter the following settings:

For the maximum SharePoint folder name length:
SPMaxFolderLength: [number of characters that should remain]

​

For the maximum SharePoint file name length:
SPMaxFileLength: [number of characters that should remain]

For the minimum SharePoint file name length: ​

​SPMinFileLength: [minimum number of characters that should remain]
Please note: The file extension is never cut! 

Let us pretend, the minimum filename length set is 77.

If the actual file length is, for example, 80, you will receive an error message.

For the SharePoint folder name attribute: ​

​SPFolderNameAttribute: enittyschemaname;attributename|

​How to activate a ShortID for DocumentsCorePack

Creating a ShortID for DocumentsCorePack is easier than creating one for AttachmentExtractor. Simply navigate to Settings > DocumentsCorePack in your Microsoft Dynamics 365 (CRM) application. ​

Here, please add/enable the following options:

Use short Documentation Logic:
This setting cuts SharePoint path automatically.

SharePoint folder maximum length:
This setting cuts SharePoint folder names that are longer than a certain amount of characters.  ​

​


Figure 1: DocumentsCorePack settings

​For further information on how to correct SharePoint paths exceeding the limitations, please have a look at this blog article.

That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com!

Was this helpful?

Yes  No
Related Articles
  • AssureSign for DocumentsCorePack
  • How to conditionally remove a watermark in DocumentsCorePack templates
  • Document Processing with DocumentsCorePack (DCP)
  • How to activate SharePoint in DocumentsCorePack
  • Fillable PDF forms
  • How to control access to the AttachmentExtractor Config
Latest Articles
  • New DocumentsCorePack Connector features for Power Automate
  • Office Theme Support of DocumentsCorePack
  • AssureSign for DocumentsCorePack
  • Dynamic Document Properties
  • How to conditionally remove a watermark in DocumentsCorePack templates
Popular Articles
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • DocumentsCorePack Online Service Configuration
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
Top Rated Articles
  • IMPORTANT information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
  • Online Services: Required Application Permissions
  • How licenses are counted
Categories
  • *News and General Infos* 51
  • Webinars 35
  • Template Designer(DCP 173
  • DocumentsCorePack(DCP 191
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 62
  • PowerSearch (PS 48
  • ActivityTools (AT 59
  • SmartBar (SB 53
  • GroupCalendar (GC 46
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2022 www.mscrm-addons.com. All Rights Reserved.