miércoles, 31 de agosto de 2016

Recreating the User Profile Service application using the old databases

Hello! 

Recently I have been doing some testing about the User Profile service application, and I had some issues with this picky service. I tried to fix it, but the only way to solve this is deleting the current UPA and creating one from scratch.

Guess what!!... Some users have information at MySite.. So I can't delete the content databases..

So based on this, and avoiding bunch of emails from the business asking for their information, let's recreate the UPA using current databases.

  1. Via Central Administration, STOP the User Profile Application service on all servers in the farm.
  2. Delete the User Profile Service Application, but DO NOT CHECK the option "Delete data associated with the Service Application"
  3. Identify the names of the User Profile (Social, Sync, Profile) databases.
  4. Open the SharePoint 2013 Management Shell
  5. Run the New-SPProfileServiceApplication command passing in parameters for: ApplicationPool, Name, MySiteHostLocation, ProfileDBName, ProfileSyncDBName, SocialDBName. This will create a new Profile service app using our restored profile databases. 
  6. Run the New-SPProfileServiceApplicationProxy command passing in parameters for: ServiceApplication, Name and also include the DefaultProxyGroup.
  7. Start the UPA Service on all servers in farm (all servers required)
  8. Run an IISReset on each servers
  9. Start the User Profile Synchronization Service on the application server (server that will host this service) 
  10. Wait... 
  11. Wait...... 
  12. Ensure that it is started before proceeding..!
  13. Ensure that the User Profile Sync timer job is enabled and set properly and then start a full import.. 
 Remember to test this at lower environments BEFORE doing this at PROD

Cheers! 

viernes, 24 de abril de 2015

Ups, I forgot the SharePoint Passphrase! No problem


Getting a high load on your farm and you decide to add a new Web Front End to the mix. Oh no! You forgot that SharePoint Passphrase to allow you to connect to your farm.

Before you start freaking out, check out this powershell command

Get-Help Set-SPPassPhrase -Detailed

To easily reset your SharePoint Passphrase
$passphrase = ConvertTo-SecureString -String "mySharePoint2010password" -asPlainText -Force
Set-SPPassPhrase -PassPhrase $passphrase -Confirm

Cheers! 

miércoles, 18 de febrero de 2015

Webcast: El Fundamento para un Dashboard Ejecutivo de Análisis de Datos en SharePoint




La comunidad de SharePoint Costa Rica junto con Carlos Cerrato les presenta una jugosa charla sobre dashboards con JavaScript para tu SharePoint.

Registrate en el siguiente vinculo:

EventBride

martes, 10 de febrero de 2015

There are no addresses available for this application

La razón es dada a que hay configuraciones faltantes, como lo pueden ser servicios o "settings".

Solución:

  1. Revisa que tus servicios (Central Admin) estén arriba y sin problemas. 
  2. App Pools encendidos y sin problemas en el IIS
  3. IISRESET
Saludos

"A feature with ID ....... has already been installed in this farm."



Reinstalando un WSP en mi granja 2010, he tenido un error a la hora de reinstalarlo:

A feature with ID ....... has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
Para poder instalarlo o bien reinstalarlo a la fuerza, usa el siguiente comando de PowerShell: 
Install-SPSolution -Identity  -GACDeployment -Force

jueves, 5 de febrero de 2015

The search administration web service application cannot be deleted



  • Tienen una aplicación de servicio para búsquedas, mas no tienen las bases de datos del mismo? 
  • Quisieran borrar el servicio de búsquedas para crear uno nuevo con sus bases de datos respectivas?
  • Recibes mensajes de "Login failed " a una base de datos que no existe?

Si es así estas en un buen lugar para resolver tus problemas.

En primer lugar, nunca confíes en lo que la administración central te muestre... creo que de hoy en adelante tu mejor amigo es PowerShell. Así que sigue estos pasos:

  1. Abre el SharePoint 2010 Management Shell que se encuentra en la carpeta de SharePoint (barra de inicio)
  2. Digita Get-SPDatabase

Ahora tienes una lista de bases de datos que TODAVÍA existen en SharePoint, y muy probable las mismas se estén tratando de consultar.

Para limpiar esta lista, te recomiendo usar el ID de cada base de datos (menos el dolor de cabeza) y seguir estos pasos:

  1. Utilizaremos una variable llamada $bad y en ella guardaremos nuestro ID a borrar (base de datos) con la siguiente linea: $bad = Get-SPDatabase -id "acá pegamos el ID de la db" (el ID debe ir sin comillas)
  2. Ahora borramos esta base con esta linea: $bad.delete()
  3. Ejecuta todos los pasos necesarios para eliminar cuanta base de datos sea necesaria.
  4. Ve a la administración central, al manejo de las aplicaciones de servicio y eliminalas sin problema.

Puedes observar que al eliminar las bases de datos también (en alguna ocasión) se borran las aplicaciones de servicio que intentaste en algún momento eliminar.

Éxito con tu nuevo servicio de búsqueda.