• 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

249 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
  • Sample Templates 
  • Impact of Microsoft changes regarding email storage in Dataverse
  • Dynamic document Header & Footer selection via the DocumentsCorePack Dialog
  • Azure Blob Storage: Setting Recommendations 
  • Migrating One-Click-Actions Using the Data Migration Tool 
  • Force Service to be the only document-generating service
Latest Articles
  • Sample Templates 
  • Step-by-Step: How to create an account sales report template
  • Step-by-Step: How to create a NDA-contract template 
  • Step-by-Step: How to create a work order template
  • Step-by-Step: How to create a quote template 
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Online Service Configuration
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • 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
  • How licenses are counted
Categories
  • *News and General Infos* 52
  • Webinars 37
  • Template Designer(DCP 192
  • DocumentsCorePack(DCP 204
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 64
  • 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.