Friday, March 4, 2016

Application error when access /_admin/owners.aspx, Error=User cannot be found. reolved using PowerShell

While trying to set site collection admin and secondary admin from central admin in SharePoint I got below error in ULS log,

Application error when access /_admin/owners.aspx, Error=User cannot be found.   at Microsoft.SharePoint.SPUserCollection.GetByID(Int32 id)     at Microsoft.SharePoint.Administration.SPSiteAdministration.get_SecondaryContactLoginName()

User below PowerShell

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Set-SPSite –Identity https://contoso.com/sites/it/ –SecondaryOwnerAlias domain\umorbale

https://technet.microsoft.com/en-in/library/ff631156.aspx?f=255&MSPPError=-2147217396

https://pholpar.wordpress.com/2011/05/13/user-cannot-be-found-error-solved-using-a-sql-query/

Select and Delete text vertically in bigger text OR flat file

If you want to Select and Delete text vertically in bigger text OR any flat file use below command to do it. Example below: A BCEDF CDEF...