Files Not Uploading to Sharepoint Could It Be a Load Balancer Issue

000183173 kA74Q0000004Z8KSAU

Article

Title Cannot upload documents in sub-folders synced from SharePoint
URL Name cannot-upload-documents-in-sub-folders-synced-from-sharepoint
Environment Product: Sitefinity
Version: 9.2, x.0
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description

When trying to upload documents to a sub folder within a library which is synced from SharePoint to Sitefinity an error is thrown saying that the url is non valid.
The same mistake message is thrown when a document inside this sub-folder is synced from SharePoint to Sitefinity and then the certificate is opened for edit and re-published. A validation error message will be shown for the url of the document saying that the url is non valid.

Steps to Reproduce 1. In SharePoint create a library
2. Within this library create a sublibrary with a space in its name (east.g. New Binder)
3. In Sitefinity configure the SharePoint connector
4. Sync the library with the sub library from SharePoint to Sitefinity
5. From the Sitefinity backend try to upload a document in the sub-folder

As a consequence an error will be thrown saying that the url is invalid.

Error Message Cannot save the file: [The URL: '/docs/default-source/library-name/Folder Name/documentTitle' is non valid.]
Defect Number Bug 215369 https://feedback.telerik.com/Projection/153/Feedback/Details/215369
Cause

The result is caused by a bug in Sitefinity.
The folder url name has a infinite in the url which makes the url invalid.

Resolution

Until the set up is bachelor, use the workaround beneath.

Workaround
                                      1. Make a backup of your project files 2. Get to Content  -> Documents & Files 3. Click on the Actions link of the sub binder where the effect reproduces 4. Select Modify library URL five. In the url field alter the url by replacing the space with a nuance. For instance if in the url field the url is: "sub binder" change it to sub-folder past replacing the infinite with a dash 6. Click on the Change Library URL button  Notation that the old urls with spaces will exist added as boosted urls and they demand to be removed manually or using the API since they will cause issues when editing and re-publishing the documents. The additional urls do not permit spaces in the url and the document will not be able to exist published.  Hither is a sample on how to                                        delete all the additional urls of all the documents nether the Sub Binder folder:                                        var librariesManager = LibrariesManager.GetManager();              DocumentLibrary album = librariesManager.GetDocumentLibraries().Where(i => i.Title == "My Docs Library Title").SingleOrDefault();             IFolder folder = librariesManager.GetAllFolders(album).Where(f => f.Title == "Sub Folder").FirstOrDefault();              var documentsInsideFolder = librariesManager.GetDocuments().Where(i => i.FolderId == binder.Id).ToList();              foreach (var document in documentsInsideFolder)             {                 var urls = certificate.MediaFileUrls.Where(u => !u.IsDefault).ToList();                  if (urls.Count > 0)                 {                     certificate.ClearMediaFileUrls(librariesManager, true, true);                      for (int i = urls.Count - 1; i >= 0; i--)                     {                         librariesManager.Provider.Delete(urls[i]);                     }                 }             }              librariesManager.SaveChanges();                                                                                                                  
Last Modified Engagement 4/xx/2017 3:11 PM

Disclaimer The origins of the data on this site may exist internal or external to Progress Software Corporation ("Progress"). Progress Software Corporation makes all reasonable efforts to verify this information. Nonetheless, the information provided is for your data only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Whatever sample code provided on this site is non supported under whatsoever Progress support plan or service. The sample code is provided on an "AS IS" footing. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the unsaid warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample lawmaking is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any amercement whatsoever (including, without limitation, damages for loss of business profits, business pause, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample lawmaking, even if Progress has been advised of the possibility of such damages.

arnetterepasustem.blogspot.com

Source: https://knowledgebase.progress.com/articles/Article/cannot-upload-documents-in-sub-folders-synced-from-sharepoint

0 Response to "Files Not Uploading to Sharepoint Could It Be a Load Balancer Issue"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel