lunes, 5 de junio de 2017

Change SharePoint STP lenguage

An easy way to copy a list with content between to sites is to create a list template, upload it in the other site to the list template gallery and create a new list with the uploaded template.

The problem starts when the site templates have different languages. For example you create a list template in a site with english site template and you upload it to a site with a german site template, you'll not see the template in the create page.

Extract the template file

Now we will modify the .stp file. An .stp file is nothing more than a microsoft cabinet file. Therefore rename the file from "mylist.stp" to "mylist.cab". You can now open the file and see all the compressed files inside.

Afterwards open the manifest.xml in the mylists folder and change the language code within the xml to the destination language code. (See Language Codes )

Create a new template

In this step we create the stp again. Unfortunately it is not so easy as it seems to be. First of all we have to create a .ddf file. Create a new file in the mylist folder and rename it to "definition.ddf".

Open the .ddf file and paste the fallowing code inside:

; DIAMOND Directive File (.ddf)
.OPTION EXPLICIT
; Generate errors on variable typos
.Set CabinetNameTemplate=mylist.stp
.Set Cabinet=on
.Set Compress=on

;The files specified below are stored, compressed, in the cabinet file
30000000.000
manifest.xml

In the last section write down all the files which should be within the new .stp file. These should be all except the .ddf file.

Create cabinet

Open the DOS command promp and go to the mylists folder. Type the following command:

makecab /f definition.ddf



The result should end in a mylist.stp file within a subfolder. You can now go and upload the new .stp file to the list gallery of your destination site.

jueves, 1 de septiembre de 2016

Set retention period for Usage definitions


Here's a sample script that will set the retention period to three days:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Set-SPUsageDefinition -Identity "Sandboxed Requests" -DaysRetained 3
Set-SPUsageDefinition -Identity "Content Import Usage" -DaysRetained 3
Set-SPUsageDefinition -Identity "Workflow" -DaysRetained 3
Set-SPUsageDefinition -Identity "Clickthrough Usage" -DaysRetained 3
Set-SPUsageDefinition -Identity "Content Export Usage" -DaysRetained 3
Set-SPUsageDefinition -Identity "Page Requests" -DaysRetained 3
Set-SPUsageDefinition -Identity "Feature Use" -DaysRetained 3
Set-SPUsageDefinition -Identity "Search Query Usage" -DaysRetained 3
Set-SPUsageDefinition -Identity "Site Inventory Usage" -DaysRetained 3
Set-SPUsageDefinition -Identity "Sandboxed Requests Monitored Data" -DaysRetained 3
Set-SPUsageDefinition -Identity "Timer Jobs" -DaysRetained 3
Set-SPUsageDefinition -Identity "Rating Usage" -DaysRetained 3

When a file can't be check-out / check-in or deleted because is locked from someone

Hello!

This is the time, when you can do magic via PowerShell..!

The PS script to unlock your file is this one:

$web = get-spweb "SITE URL"
$list = $web.Lists["LIST NAME "]
$item = $list.Items.GetItemById(DOCUMENT ID)
$item.File.ReleaseLock($item.File.LockId)
$web.Dispose()

ie:
$web = get-spweb "https://abcde.com/team/IT/SharePoint/"
$list = $web.Lists["Documents"]
$item = $list.Items.GetItemById(225)
$item.File.ReleaseLock($item.File.LockId)
$web.Dispose()

There are different ways to find the DOC ID, however the easy way is adding in your VIEW (list/library) the column named ID.

Cheers!

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.

martes, 13 de enero de 2015

Webcast: Tengo Yammer ... y ahora que??


 

La Comunidad de SharePoint comienza este año conociendo las tecnologías innovadoras de Microsoft. 
En esta charla en línea el MVP Ricardo Muñoz nos cuenta que es Yammer y cómo puedo se puede utilizar dentro de las organizaciones.

Jueves 5 de febrero, 7:00 PM - Esta es una charla online.

Registro

viernes, 28 de noviembre de 2014

SharePoint 2010: Windows could not start the administration service on local computer.


Related also with: 

Error 1053: The service did not respond to the start or control request in a timely fashion (SharePoint)

Resolution:

Increased the default service time-out
  • Click Start, click Run, type regedit in the Open box, and then click OK.
  • Locate and then select the following registry subkey:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
  • Right-click Control, point to New, and then click DWORD Value.
  • In the New Value box, type ServicesPipeTimeout, and then press Enter.
  • Right-click ServicesPipeTimeout and then click Modify.
  • Click decimal, type the number of milliseconds that you want to wait until the service times  out, and then click OK.
  • Exit Registry Editor and then restart the computer.
Restarted the server and issue has been resolved.

jueves, 27 de noviembre de 2014

Pantalla negra luego de logueo en servidor (RDP)




Hola,

Luego de horas de busqueda sin resultados positivos, mis canas han dado frutos y he encontrado una solución a mi problema.

Escenario:
  • Conectado a un PC#01 usando RDP
  • Desde la PC#01 me conecto a un servidor llamado SERVER#01 usando Remote Desktop Connection Manager v2.2
Al conectarme al SERVER#01 luego de ingresar los credenciales, recibo una pantalla negra la cual no permite continuar trabajando.


La forma que encontré para solventar dicho problema es el siguiente:
  • Ingresar al servidor con otro usuario
  • Abrir el taskmgr.exe con el usuario que se tiene problemas de logueo
  • Hacer un log off del usuario con problemas.
Listo, ya puedes volver a cargar el perfil y va a fucionar sin problemas

martes, 25 de noviembre de 2014

PowerShell: Finding Creator of List, Finding Date of List Creation



To find list creator:

$web = Get-SPWeb “Name of your site (keep the quotes)”
$list = $web.lists["Name of your list (keep the quotes)"]
$listAuthor = $list.Author
Write-Host $listAuthor

To find list creation date:

$web = Get-SPWeb “Name of your site (keep the quotes)”
$list = $web.lists["Name of your list (keep the quotes)"]
$listCreatedDateTime = $list.Created
$web.Dispose()
$web=$null
Write-Host $listCreatedDateTime

Enjoy it!

jueves, 18 de septiembre de 2014

Charla online: Publicando aplicaciones en SharePoint 2013

Hoy es nuestra última charla en línea sobre SharePoint y LightSwitch, brindada por nuestro colega César Loaiza Picado.

El tema para hoy es: "Publicando aplicaciones en SharePoint 2013"

Iniciaremos a las 7:00PM

Les esperamos

Registro

jueves, 11 de septiembre de 2014

Webcast: SharePoint y LightSwitch - Interfaz gráfica de un app




Hoy seguimos con las charlas impartidas por César Loaiza Picado sobre LightSwitch. El tema para hoy es: "Interfaz gráfica de un app"

Con mucho placer los invitamos a participar de esta charla:
-HOY Jueves 11 de setiembre, 7:00 PM - LAB

Próxima charla:
-Jueves 18 de setiembre, 7:00 PM - LAB: Publicando aplicaciones SharePoint 2013

Registro

martes, 2 de septiembre de 2014

Webcast "SharePoint y LightSwitch - SharePoint como fuente de datos"



La Comunidad de SharePoint junto con Cesar Loaiza ha preparado un grupo de charlas online para introducirlos en el mundo de SharePoint y LightSwitch.

Con mucho placer los invitamos a participar en nuestro segundo webcast:

Esta charla:
-Jueves 4 de setiembre, 7:00 PM - LAB: SharePoint como origen de datos y manipulación de listas desde apps

Próximas charlas:

-Jueves 11 de setiembre, 7:00 PM - LAB: Interfaz gráfica de un app
-Jueves 18 de setiembre, 7:00 PM - LAB: Publicando aplicaciones SharePoint 2013

Registro: link

lunes, 25 de agosto de 2014

Charla Online: Introducción a aplicaciones HTML LightSwitch





La Comunidad de SharePoint junto con César Loaiza Picado ha preparado un grupo de 4 charlas online para introducirlos en el mundo de SharePoint y LightSwitch.
Esta charla:
-Jueves 28 de agosto, 7:00 PM - Introducción a aplicaciones HTML LightSwitch
Próximas charlas:
-Jueves 4 de setiembre, 7:00 PM - LAB: SharePoint como origen de datos y manipulación de listas desde apps
-Jueves 11 de setiembre, 7:00 PM - LAB: Interfaz gráfica de un app
-Jueves 18 de setiembre, 7:00 PM - LAB: Publicando aplicaciones SharePoint 2013

Les esperamos!

Inscribirse en el evento acá

sábado, 9 de agosto de 2014

“Database is up to date, but some sites are not completely upgraded”

Hola,

Seré breve y al grano...

Luego de que este error me sacara las canas, y buscarle una explicación lógica del porque todos los procedimientos en tres ambientes no productivos funcionaron y en producción no, he aquí el porqué:

Estuve corriendo la siguiente línea con PowerShell sobre un ambiente 2010 (SharePoint Server 2010)

  • Upgrade-SPContentDatabase -id "nombre de base de datos"
y recibí la siguiente entrada en los logs de actualización:

Microsoft.SharePoint.Portal.Upgrade.MossSiteSequence failed. Exception: Attempted to perform an unauthorized operation. at Microsoft.SharePoint.SPSite.set_AllowDesigner(Boolean value) at Microsoft.SharePoint.Portal.Upgrade.AllowMasterPageEditingAction.Upgrade(SPSite site) at Microsoft.Office.Server.Upgrade.SiteAction.Upgrade() at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()

Señoras y señores, primero que todo preguntensen.. 

¿En mis ambientes no productivos tengo en los web applications habilitado el SharePoint Designer?

Creo que ya saben el porque del error... 

Habiliten el SPD en el web application de la base de datos que te esta dando error, luego corre nuevamente el update desde el PowerShell y listo..

Nos vemos! 

miércoles, 6 de agosto de 2014

Charla "SharePoint 2013 Explotando la Inteligencia de Negocios de SQL"



Nuestra Comunidad les invita a nuestro próximo evento en línea "SharePoint 2013 Explotando la Inteligencia de Negocios de SQL" con Eduardo Castro. Esta charla será el 18 de Agosto iniciando a las 7:00PM.

Nos vemos!

Para registro del evento dar click acá

martes, 1 de octubre de 2013

Charla Comunidad SharePoint Costa Rica!

Hola gente!

Me complace invitarlos a las charlas de nuestra comunidad de SharePoint Costa Rica que impartiremos el día Martes 8 de Octubre!

Para registrarse ingresa acá:
http://sharepointcostarica.com/SitePages/Inicio.aspx


Saludos!