SharePoint Issue- Can't Open Folder by clicking on Folder name, but only opens with Folder Icon????

I came to the office today, and was notified that users are having difficulty accessing folders in document libraries.

Folders are given custom names, and have a folder icon next to them.

See picture below. 

As of my understanding and experience, folders can be open in two ways. One through clicking the folder title, or clicking the folder icon. 

I find it much easier to just click the folder/file title.

In this case, Clicking the File/Folder title, throws an error.

Only clicking the "Folder Icon" will the contents be displayers.

See the error below.

Error

Invalid argument.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: c34f6144-8afa-43fc-bff1-4e05e7da605c

Date and Time: 8/17/2015 10:41:42 AM

I used ULS viewer, and this is what displayed.

See picture below.

This is very important, and I can't see a solution.

Please help me.

Picture is hard to see.

Here are the messages given.

Name=Request (GET:https://blsconnect.brooklaw.edu:443/_layouts/DocIdRedir.aspx?ID=)

Site=/

Leaving Monitored Scope (Request (GET:https://blsconnect.brooklaw.edu:443/_layouts/DocIdRedir.aspx?ID=)). Execution Time=13.3077667692402

August 17th, 2015 10:47am

A few thoughts:

  • Did you rename the "Name" field to "File Title", or is that a homemade hyperlink column?
  • Including the folder name, what is the full URL length of those folders? Many interfaces won't work correctly when a filename length exceeds 255 characters, which can happen with lots of nested sites or folders.
  • Does it work with other browsers?

  • Edited by thriggle 13 hours 39 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 11:33am

Thank you for your response.

It seems the "File Title" is a homemade hyperlink column. It is a calculated column. This column is also apart of a content type called "Document" and "Link to a Document" both.

The calculated column uses this code.

="<script type='text/javascript'>"&" var buildURL = '/_layouts/DocIdRedir.aspx?ID="&[Document ID Value]&"';"&" var target = '_blank';"&" var innerHTML = '<a href=' + buildURL + ' target=' + target + '>"&Title&"</a>';"&"document.write(innerHTML);"&"</script>"

Is this code correct?

It used to work as far as I know, but now it doesn't. When I copy the hyperlink address of the folder (when clicking the folder name) it gives this address.

https://example.com/_layouts/DocIdRedir.aspx?ID=

The ID number is blank.

This error applies to many pages. These pages use the same content types.

I need to remove this column, and add a new one. Is this possible?

August 17th, 2015 12:48pm

What does the Document ID Value column look like? Is that a calculated column, or perhaps a text field populated by a workflow?

One thing you can try is editing the calculated column formula and saving it without making any changes. That should re-calculate the formula on all items in the library. 

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 2:13pm

Great find!

So the folders do not have ID. Only documents do. See pic below.



Now that we know that there are no ID's .. seems like the code doesn't work for folders..

I must change the code. (Previous admin wrote it)

Any ideas?

August 17th, 2015 3:10pm

I would try changing the formula to something like this:

=IF(ISBLANK([Document ID]),"<a href='http://site/library/"&Title&"'>"&Title&"</a>","<script type='text/javascript'>"&"var buildURL = '/_layouts/DocIdRedir.aspx?ID="&[Document ID Value]&"';"&" var target = '_blank';"&"var innerHTML = '<a href=' + buildURL + ' target=' + target + '>"&Title&"</a>';"&"document.write(innerHTML);"&"</script>")

Where 'http://site/library/' is the path to your library. This will only work if you don't have nested folders. You'll also want to set the return type on the calculated column to number in order to get it to render HTML.

What that formula is saying is this: If the Document ID field is blank, show a link to a folder with the same name as the Title field, otherwise do the original thing with the link to the document by Document ID.




  • Edited by thriggle 11 hours 11 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 4:25pm

Wow thanks so much for the detailed answer. If I apply this to a content type will this effect all other libraries? My situation is that there about 150 classes. Professors use their class library to post documents for students to view. All 150 classes have this column, and now that we have discovered, cannot use folders. Each class has its own library. Not sure what to put in the URL now.
August 17th, 2015 4:57pm

Yikes, that sounds like a mess! Yeah, you wouldn't want to create that column at the content type level if it's used in multiple document libraries. If they were all in one big library, with a folder for each class, then you'd be okay.

An alternative might be to sneak some more JavaScript into the calculated column formula to get the URL of the current library.

The easiest thing to do would be to make the out-of-the-box "Name (linked to item)" column visible in the view settings. That's the column SharePoint provides to give you a link to open folders and documents. The only caveat with that approach is that it would show up for documents as well as for folders, and I'm assuming there was some reason that thee previous admin added that homemade link column. Maybe to ensure students can always get to their documents (by document ID) regardless of whether they're moved or archived into different folders or document libraries.

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 5:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics