cannot see files in document library in search results sharepoint

User cannot see files in document library and sharepoint 2019 search not returning results from specific document library.I came across this search error where user is trying to search documents selecting the option “search in same site” instead of “all sites” from search box and sharepoint search not returning results. User can find documents from other library with in same site but cannot see files in specific document library. The first point comes to mind for search error is content not crawled. Indexing not done for this situation and sharepoint search not working. As per my investigation I found the setting of the library as below.

Advertisements
cannot see files in document library sharepoint search

By default SharePoint only crawls major versions of files and draft items are only viewable by their creators. SharePoint is behaving as expected out of box.Draft items are not crawled in SharePoint for which user cannot see files in document library.

Advertisements

Resolve search result error for document library as below

  • Navigate to Document Library Settings -> Versioning Settings -> Draft Item Security.
  • Select option “Any user who can read items”.
  • This will allow all users to see draft items including the crawling account.
  • Else you need to select “Create major versions” option or can publish the documents as major versions if want to get those documents in search result as per client wish.
  • Reference link Click Here.

Applying above settings you will find document not showing in search sharepoint will start showing result.

Advertisements
Advertisements

unattached content database recover contents list library

unattached content database – recover contents list library from is required while moving list or library as content migration. You can recover files from content database that is not attached to any web application in sharepoint 2019. Recovering data from content database unattached will restore only specific list library in sharepoint site. Follow the step by step procedure to recover list library from sharepoint content database not attached.

Advertisements
  • Navigate to central admin in sharepoint 2019.
  • Select “Backup and Restore” from left navigation and click on “Recover data from an unattached content database” present under “Granular backup”.
recover contents list library from unattached content database
Advertisements
  • Select “Database Server”.
  • Select “Database Name” which is unattached to any web application.
  • select the radio button “Export site or list”, if you want to export list or library from unattached content database.
  • Choose radio button “Backup site collection” to export site collection from content database unattached.
recover files from content database that is not attached
Advertisements
  • Select site collection present in the unattached content database.
  • choose site from the site collection selected above.
  • Select list or library that you want to recover or restore.
select site list library in sharepoint from contact database unattached
Advertisements

After that, follow the same procedure described in previous post “export import list library sites in sharepoint” to import list or library described once export is completed.

Import-SpWeb -Identity "site url in which you want to import list" -Path "exported item saved location" -IncludeUserSecurity -UpdateVersions Overwrite -verbose

Import-SpWeb -Identity "site url in which you want to import library" -Path "exported item saved location" -IncludeUserSecurity -UpdateVersions Overwrite -verbose
Advertisements

watch the video to get in detail step by step

Advertisements
Advertisements

Sending Attachments with the Email Messages Sent to SharePoint Document Library

Once I was trying to send the attachments along with the email messages being sent to the SharePoint document library. All the configurations were proper and I had properly associated the document library with an email address. After the stage was properly setup for the document library to receive emails with the attachment, I tested the same and expected it to work just fine, but I did not get any success.

I did a quick research over the internet and found out the solution from the MSDN site. The reason mentioned was pretty straight forward. While associating a document library with an email address, the Directory Management Service might miss out adding the following two attributes:

  • internet Encoding = 1310720
  • mAPIRecipient = false

These two attributes must be added manually using the Active Directory Service Interfaces (ADSI).

Note:
On Windows Server 2008 or Windows Server 2008 R2, the Active Directory Service Interfaces (ADSI)  Edit is installed after you have installed the Active Directory Domain Services role. You can also install Windows Server 2008 Remote Server Administration Tools (RSAT) on domain member servers or stand-alone servers.

For adding the attributes by using Active Directory Service Interfaces (ADSI) Edit, follow the steps mentioned below:

  1. Click Start, and then click Run.
  2. In the Run dialog box, type Adsiedit.msc, and then click OK.
  3. In the ADSI Edit window, expand ADSI Edit, expand Domain [DomainName], expand DC=DomainName, DC=com, and then expand CN=Users.
  4. Right-click the user name to which you want to add the missing attributes, and then click Properties.
  5. In the Properties dialog box, double-click internet Encoding on the Attribute Editor tab.
  6. In the Integer Attribute Editor dialog box, type 1310720 in the Value box, and then click OK.
  7. In the Properties dialog box, double-click mAPIRecipient on the Attribute Editor tab.
  8. In the Boolean Attribute Editor dialog box, click False, and then click OK two times.