Mostrando entradas con la etiqueta Jobs. Mostrar todas las entradas
Mostrando entradas con la etiqueta Jobs. Mostrar todas las entradas

jueves, 18 de septiembre de 2014

Ejecutar manualmente una subscripción fallada en Reporting Services integrado en Sharepoint 2013 (Execute SSRS Subscription Manually in Sharepoint 2013 Integrate Mode)

Supongamos que la subscripción que habiamos hecho sobre un reporte en Sharepoint 2013 (Reporting Services modo integrado) fallo por algún motivo, y necesitamos ejecutarla manualmente

Para ello ingresamos en la sección de nuestro SQL de Sharepoint, y ejecutamos la siguiente query sobre la base ReportingService_Database (o cómo la hayan nombrado cuando crearon el servicio de SSRS en modo integrado)

image

Validamos cual es la row que hace referencia a nuestra subscripción (pueden ver el campo Description o MathData)

Por ejemplo, en este caso el SubscriptionID que me interesa es “79363907-67F5-44FA-80A1-39D3EA588557”

A continuación ingreso a la sección de SQL Agents/Jobs, y verifico los jobs con GUID, por ejemplo “8674C40B-03B7-4918-96D2-1C34EECF8427”

image

Click derecho Propiedades, voy a la solapa de Steps y edito el job step

image

Si ustedes ven en la sección de comandos, verán que se ejecuta, en este caso se ejecuta la subscripción “79363907-67F5-44FA-80A1-39D3EA588557”

image

De vuelta hacemos click derecho sobre el job, y seleccionamos “Start Job at Setp”

image

Y automáticamente se dispará la subscripción.

Podriamos haber ejecutado de forma manual mediante el siguiente comando en el SQL Managemente? Si claro, Por ejemplo:

exec [ReportingService_Database].dbo.AddEvent @EventType='TimedSubscription', @EventData='79363907-67f5-44fa-80a1-39d3ea588557'

domingo, 31 de marzo de 2013

Tips info #12 Sharepoint 2013

1-Algunos Delegates controls

Puede encontrar más delegates controls en el siguiente link: http://todosharepoint.blogspot.com.ar/search/label/Delegate%20Controls

GlobalNavigation

image

GlobalSiteLink3

image

PublishingConsole

image

SmallSearchInputBox

image

2-Chart web part se discontinuo en Sharepoint 2013

http://office.microsoft.com/en-us/sharepoint-help/discontinued-features-and-modified-functionality-in-microsoft-sharepoint-2013-HA102892827.aspx#_Toc349821254

3-Detener for completo la granja de Sharepoint 2013

En el caso que necesitemos mover nuestras bases de datos a otros servidores, deberemos detener todos los servicios de Sharepoint, es decir detener por completo la granja.

Para ello se deberá detener los siguientes servicios en cada servidor de la granja:

SharePoint 2013 Administration
SharePoint 2013 Timer
SharePoint 2013 Tracing
SharePoint 2013 User Code Host
SharePoint 2013 VSS Writer
World Wide Web Publishing Service
SharePoint Server Search

Y a continuación has un iisreset /stop

4-Al hacer click en la página Job Definitions me lanza un error de “Object reference not set to an instance of an object”

Este error se debe a que un job no tiene un nombre o descripción, que provoca un valor nulled en la llamada a la página.

Para revisar cual es el job que está teniendo problemas, ejecute el siguiente comando de powershell:

Get-SPTimerJob >C:\temp\allJobs.txt | Format-Wide

Una vez que identificó el job que no tiene una descripción o un nombre, copie su GUID y ejecute lo siguiente (reemplace GUID_delJob con el GUID que obtuvo anteriormente.)

$job = Get-SPTimerJob GUID_delJob

$job.Delete()

5-Agregar un Shortcut (acceso directo) a una librería en Sharepoint 2013

Al hacer click en “Add to Sharepoint Sites” nos aparecerá en nuestra carpeta de favoritos de Windows una carpeta llamada “Sharepoint Sites”

image

martes, 12 de febrero de 2013

Jobs de Sharepoint 2010

Timer job title Description Schedule type

Audit Log Trimming

Trims audit trail entries from site collections.

Monthly

Cell Storage Data Cleanup Timer Job

Deletes temporary cell storage data and frees SQL Server disk space.

Weekly

Cell Storage User Data Deletion Job

Deletes user data that is stored as cell storage. This job should only be run only if the SQL Server database server is running out of disk space.

Important Important:

This job can cause user data loss and does not run automatically by default.

Monthly

Change Log

Removes expired entries from the change log of the Web application.

Daily

Config Refresh

Checks the configuration database for configuration changes.

15 seconds

Dead Site Delete

When auto site cleanup is enabled, sites that have not been used in a certain period of time are deleted.

Daily

Delete Job History

Deletes old entries from the timer job history.

Weekly

Delete Job History

Deletes old entries from the timer job history.

Weekly

Disk Quota Warning

Looks for sites that have exceeded the storage quota.

Daily

Gradual Site Delete

Deletes all the data from the host content database for all deleted site collections.

Daily

Health Analysis Job (Daily, Central Administration, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the Central Administration Web application and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Central Administration, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the Central Administration Web application and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Microsoft SharePoint Foundation Timer, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Microsoft SharePoint Foundation Timer, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Microsoft SharePoint Foundation Web Application, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run SharePoint Web applications and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Microsoft SharePoint Foundation Web Application, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs SharePoint Web applications and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, SSP Job Control Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the SSP Job Control Service and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Visio Graphics Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs Visio Services and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Web Analytics Data Processing Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs a Web Analytics Data Processing Service application and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Daily, Web Analytics Web Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs a Web Analytics Service application and the Usage and Health Data Collection Service application.

Daily

Health Analysis Job (Hourly, Security Token Service, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the Security Token Service (STS) and the Usage and Health Data Collection Service application.

Hourly

Health Analysis Job (Hourly, Microsoft SharePoint Foundation Timer, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Hourly

Health Analysis Job (Hourly, Microsoft SharePoint Foundation Timer, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Hourly

Health Analysis Job (Hourly, User Profile Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs Profile Services and the Usage and Health Data Collection Service application.

Hourly

Health Analysis Job (Monthly, Microsoft SharePoint Foundation Timer, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Monthly

Health Analysis Job (Weekly, Central Administration, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the Central Administration Web site and the Usage and Health Data Collection Service application.

Weekly

Health Analysis Job (Weekly, Microsoft SharePoint Foundation Timer, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Weekly

Health Analysis Job (Weekly, Microsoft SharePoint Foundation Timer, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs the SharePoint Timer Service and the Usage and Health Data Collection Service application.

Weekly

Health Analysis Job (Weekly, Microsoft SharePoint Foundation Web Application, All Servers)

Runs SharePoint Health Analyzer jobs on all servers in the farm that run SharePoint Web applications and the Usage and Health Data Collection Service application.

Weekly

Health Analysis Job (Weekly, User Profile Service, Any Server)

Runs SharePoint Health Analyzer jobs on the first server found in the farm that runs Profile Services and the Usage and Health Data Collection Service application.

Weekly

Immediate Alerts

Sends out immediate and scheduled alerts.

5 minutes

Microsoft SharePoint Foundation Site Inventory Usage Collection

Collects site inventory information for each site collection in the farm.

Daily

Microsoft SharePoint Foundation Usage Data Import

Imports usage log files into the logging database.

30 minutes

Microsoft SharePoint Foundation Usage Data Processing

Checks for expired usage data at the farm level and deletes the data. Expired usage data consists of records in the central usage data collection database that are older than 30 days.

If the Web Analytics Service application is also installed, this timer job moves the data to a Web Analytics Reporting database. You can run this timer job manually to force a check on expired data, or to force a usage data import to a Web Analytics application database.

Daily

Password Management

Sends e-mail and logs events for expiring passwords and password changes. This timer job helps ensure that managed passwords are changed before they expire.

Daily

Product Version Job

Checks the installation status of the computer and adds that data to the database.

Daily

Recycle Bin

Looks for content in the Recycle Bins and moves it to the next stage or deletes it.

Daily

Solution Daily Resource Usage Update

Marks the daily boundary for sandboxed solution resource quota monitoring.

Daily

Solution Resource Usage Log Processing

Aggregates resource usage data from sandboxed solution execution.

5 minutes

Solution Resource Usage Update

Records resource usage data from sandboxed solution execution, and sends e-mail to owners of site collections that are exceeding their allocated resource quota.

15 minutes

State Service Delete Expired Sessions

Deletes expired data that is stored in the state service databases.

Hourly

Timer Service Lock Management

Manages the content database locks that are used by the Timer Service to determine which server will run timer jobs for a content database.

1 minute

Timer Service Recycle

Recycles the Timer Service to free resources.

Daily

Upgrade Work Item Job

Processes deferred upgrade work items which were generated during a Microsoft Office SharePoint Server 2007 to Microsoft SharePoint Server 2010 upgrade. For example, generating thumbnails for upgraded Image libraries.

Daily

Workflow

Processes workflow events that are in the scheduled items table, such as delays.

1 minute

Workflow Auto Cleanup

Deletes tasks and instances in the workflow instance table for workflows that have been marked completed more than n days in the past, where n is specified in the workflow association. Crawls through tasks and the workflow instance table.

Daily

Workflow Failover

Processes events for workflows that have failed and are marked to be retried.

1 minute

CEIP Data Collection

Gathers farm data for the Customer Experience Improvement Program.

Daily

Diagnostic Data Provider: Event Log

Collects Windows Event Log entries and stores the data in the logging database.

10 minutes

Diagnostic Data Provider: Performance Counters - Database Servers

Collects Performance Monitor Counters data on database servers and stores the data in the logging database.

Important Important:

The timer service account must have sufficient permission to collect counters on the database server. The account should be a member of the Performance Monitor Users (PMU) group.

5 minutes

Diagnostic Data Provider: Performance Counters - Web Front Ends

Collects Performance Monitor Counters data on front-end Web servers and stores the data in the logging database.

5 minutes

Diagnostic Data Provider: SQL Blocking Queries

Collects data associated with blocked SQL queries and stores the data in the logging database.

15 seconds

Diagnostic Data Provider: SQL DMV

Collects SQL Dynamic Management Views (DMV) data and stores the data in the logging database.

30 minutes

Diagnostic Data Provider: SQL Memory DMV

Collects SQL Dynamic Management Views (DMV) data and stores the data in the logging database.

15 seconds

Diagnostic Data Provider: Trace Log

Collects Trace Log entries and stores the usage data in the logging database.

10 minutes

SharePoint Server CEIP Data Collection

Gathers farm data for the Customer Experience Improvement Program.

Daily

Document ID assignment job

Work item that assigns document ID to all items in the site collection.

Daily

Document ID enable/disable job

Work item that propagates content type changes across all sites when the Document ID feature is reconfigured.

Daily

Document Set fields synchronization job

Synchronizes metadata from the document set to the items inside the document library.

15 seconds

Content Type Hub

Tracks content type log maintenance and manages unpublished content types.

15 minutes

Content Type Subscriber

Retrieves content types packages from the hub and applies them to the local content type gallery. For more information about content types, see Plan to share terminology and content types (SharePoint Server 2010)

Hourly

Enterprise Metadata site data update

Updates all site collections after a language pack addition or an Enterprise Metadata Service application restore.

Hourly

Taxonomy Update Scheduler

Updates site collections with the latest term changes that were made to the Enterprise Metadata Service.

Hourly

FAST Search for SharePoint Master Job

Provisions the timer jobs for FAST Search Server 2010 for SharePoint if the Search service application type is set to FAST Query Application.

15 minutes

FAST Search Server 2010 for SharePoint Alternate Access Mapping Extractor Job

Retrieves the managed properties from the configured FAST Search Server 2010 for SharePoint farm that have the IsMapped flag set to true, and caches the properties on the SharePoint farm. These properties are used for alternate access mapping.

5 minutes

FAST Search Server 2010 for SharePoint Click Through Extractor Job

Extracts clickthrough data and uploads them to the configured FAST Search Server 2010 for SharePoint farm. The collected clickthrough data is used for relevancy tuning.

Daily

FAST Search Server 2010 for SharePoint Dictionary Compilation Job

Detects dictionary changes that are made by using Central Administration and exports the changes to the FAST Search Server 2010 for SharePoint farm.

5 minutes

InfoPath Forms Services Maintenance

Performs maintenance operations on administrator-approved InfoPath Forms Services form templates across all front-end Web servers.

Daily

Application Server Administration Service Timer Job

Manages shared service instances that may perform highly privileged operations. Requires that the SharePoint Administration service is running. The Search service instance is managed by this job on deployments other than stand-alone server deployments.

1 minute

Application Server Timer Job

Manages shared service instances that do not perform highly privileged operations. The Search service instance is managed by this job on stand-alone server deployments.

1 minute

Licensing Synchronizer Job

Synchronizes trial expiration time licensing information to the configuration database.

Hourly

Application Addresses Refresh Job

Synchronizes connection information for remote service applications.

15 minutes

SharePoint BI Maintenance

Deletes temporary dashboard objects and user-persistent filter values from the database. The longevity of these values can be set on the PerformancePoint Services Settings page.

Hourly

Project Server 'Project Service Application:pwa' Resource Capacity job

Resource capacity job for Project Server Service application.

Daily

Project Server 'Project Service Application:pwa' Workflow Cleanup job

Workflow cleanup job for Project Server Service application.

Daily

Project Server Service Credential Synchronizing Job

Credential synchronizing job for Project Server Service application.

1 minutes

Project Server Synchronizing Job for 'Project Service Application'

Project Server synchronizing job for Project Server Service application.

1 minute

Notification Timer Job

Queries and updates the notification list and sends out pending scheduling notifications.

Daily

Scheduled Approval

Looks for content that is scheduled for approval and moves it to the next stage in the process.

1 minute

Scheduled Unpublish

Looks for content that is scheduled to be unpublished and removes it.

1 minute

Variations Create Hierarchies Job Definition

Creates a complete variations hierarchy by spawning all sites and pages from the source site hierarchy for all variation labels.

Daily

Variations Create Page Job Definition

Creates peer pages in variant sites.

Hourly

Variations Propagate Page Job Definition

Creates or updates peer pages of the source page that has been approved or published in all target labels. The resulting peer pages are in an unpublished state.

1 minute

Variations Propagate Site Job Definition

Creates peer sites of the source site that has been created in all target labels.

1 minute

Content Organizer Processing

Processes documents in the drop-off library that match organizing rules.

Daily

Expiration Policy

Enumerates list items and looks for those with an expiration date that has already occurred. For those items, runs disposition processing. Disposition processing most often results in deleting items, but it can perform other actions, such as processing disposition workflows.

Daily

Hold Processing and Reporting

Generates a hold report by enumerating items in a hold and updating them to remove them from hold, as appropriate.

Daily

Information Management Policy

Loops through all the lists in the site collections in a Web application and collects policy and usage data.

Daily

Search and Process

Processes a search result that is scoped to a site collection and puts search results on hold.

Daily

Crawl Log Cleanup for Search Application Search Service Application

Crawls log cleanup for Search Service applications.

Daily

Crawl Log Report for Search Application Search Service Application

Crawls log report for Search Service applications.

5 minutes

Health Statistics Updating

Updates the statistics for the Usage and Health Data Collection service application.

1 minute

Indexing Schedule Manager on SQL Server

Starts scheduled crawls.

1 minute

Prepare query suggestions

Prepares candidate queries for query suggestion.

Daily

Query Logging

Logs the statistics for the number of queries performed.

15 minutes

Search Health Monitoring - Trace Events

Runs to check the events that are being traced for search health monitoring.

 

User Profile Service - Activity Feed Cleanup Job

Cleans up pre-computed activities that are used in activity feeds that are older than 14 days. This job does not affect the User Profile Change Log.

Daily

User Profile Service - Activity Feed Job

Pre-computes activities to be shown in user activity feeds.

Hourly

User Profile Service - Audience Compilation Job

Computes memberships of defined audiences.

Weekly

User Profile Service - My Site Suggestions Email Job

Sends e-mail messages that contain colleague and keyword suggestions to people who do not update their profile often, prompting them to update their profiles.

Monthly

User Profile Service - Social Data Maintenance Job

Aggregates social tags and ratings and cleans the social data change log.

Hourly

User Profile Service - User Profile Change Cleanup Job

Cleans up data that is 7 days old from User Profile Change Log. Migrates user rights from one user to another user, and migrates the user rights and cleans up that user from Active Directory Domain Services (AD DS). This is mainly used when the name of a user is changed in AD DS. The older user name is replaced by a new user name, and the older one is removed from AD DS.

Daily

User Profile Service - User Profile Change Job

Processes changes to user profiles. Changes the user profile. User rights can be migrated from one user to another user. This timer job is used when a user has to be migrated, but the previous user profile remains in AD DS.

Hourly

User Profile Service - User Profile Incremental Import Job

Manages provisioning and user profile synchronization. Imports only the user profiles that were added after the last import.

note Note:

Do not change the settings or frequency of this Timer job. To change the schedule for incremental synchronization, see Schedule profile synchronization (SharePoint Server 2010).

1 minute

User Profile Service - User Profile Language Synchronization Job

Looks for new language pack installations and makes sure that strings that related to the user profile service are localized correctly.

Daily

User Profile Service Proxy - Social Rating Synchronization Job

Synchronizes rating values between the social database and content database.

Hourly

User Profile to SharePoint Full Synchronization

Synchronizes user information from the user profile application to SharePoint users and synchronizes site memberships from SharePoint to the user profile application.

Hourly

User Profile to SharePoint Quick Synchronization

Synchronizes user information from the user profile application to SharePoint users who were recently added to a site.

5 minutes

My Site Cleanup Job

When a user is deleted, starts a workflow on that user’s My Site. The default behavior is to send an e-mail message to the manager with a link to the deleted user’s site. The e-mail message contains a request to the manager to move any documents or data that the manager wants to preserve, because the site might be deleted in the future.

Hourly

Web Analytics Trigger Workflows Timer Job

Starts Web Analytics Workflows for Web applications.

Daily

Word Automation Services Timer Job

Processes and distributes queued conversion job items to application servers.

15 minutes

Bulk Workflow Task Processing

Processes bulk workflow task completion.

Daily

viernes, 13 de julio de 2012

Links útiles #44 Sharepoint 2010

1-Crear un loop (ciclo) en un workflow de Sharepoint 2010

http://vojtan.wordpress.com/2010/10/07/creating-loops-in-sharepoint-designer-2010-workflows/

2-Sincronizar Excel 2010 con Sharepoint 2010 con un add-in (Excel 2007 add in)

http://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=589

3-Obtener el grupo del usuario autenticado mediante ECMA

http://www.spdailytips.blogspot.co.nz/2011/09/get-current-users-group.html

4-Listas de jobs default en Sharepoint 2010 ()

http://technet.microsoft.com/en-us/library/cc678870.aspx#DefaultJobs

5-Crear una granja multi servidor sobre Windows Azure

http://blog.pointbeyond.com/2012/07/06/building-multi-server-sharepoint-farm-in-windows-azure/

6-Configurar BLOBS en Sharepoint 2010

http://www.darrenmarsden.com/post/2012/03/31/Disk-Based-Caching-for-Binary-Large-Objects-(BLOB).aspx

7-Boletín de Seguridad para Sharepoint 2010 (2695502)

http://technet.microsoft.com/en-us/security/bulletin/ms12-050

8-Reporting Services 2012 Instalación y consideraciones

http://blogs.catapultsystems.com/tlingenfelder/archive/2012/07/09/upgrading-sql-server-reporting-services-2008-r2-to-sql-server-reporting-services-2012-in-sharepoint.aspx

9-Organizador de contenido en Sharepoint 2010

http://sharepointrecordsmanagement.com/2012/07/10/creating-a-content-organizer-rule-in-sharepoint-2010/

10-PivotViewer en Sharepoint 2010

http://blogs.solidq.com/sharepoint/Post.aspx?ID=187&title=Integraci%C3%B3n+del+Pivot+Viewer+con+SharePoint+2010++Parte+I

miércoles, 11 de julio de 2012

Tips/Info #48 Sharepoint

1-Error: “The filtering process could not load the item. This is possibly caused by an unrecognized item format or item corruption.”

Reinstala el Microsoft Office 2010 Filter Packs (64 bit): http://www.microsoft.com/download/en/details.aspx?id=17062

2-"Cannot perform this operation.The file is no longer checked out or has been deleted."

Al tratar de hacer un chck in Sharepoint Designer o la UI de Sharepoint nos lanza este error. Deberemos hacer lo siguiente, limpiar las siguientes carpetas:

%APPDATA%\Microsoft\Web Server Extensions\Cache
%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache

3-The solution cannot be removed when a job is scheduled or running.

stsadm -o enumdeployments

Busca el GUID del deployment pendiente y ejecuta los siguiente
stsadm -o canceldeployment –id “GUID”

4-Session State en Sharepoint 2010

SharePoint 2010 usa dos servicios relacionados a la session state, que tienen nombres parecidos pero propósito diferente

  • ASP.NET session state puede ser usado en páginas de SharePoint 2010. Este servicio es deshabilitado por default en instalaciones normales de Sharepoint 2010; y podrá ser habilitado usando algunas instrucciones que aparecen más abajo. Una vez habilitado, aparece en la página de Service Applications un servicio llamado “SharePoint Server ASP.NET Session State Service.”
  • El "State Service service application" es diseñado para y sólo disponible para componentes office internos tales como InfoPath Forms Services y Visio Services. Este servicio es habilitado por default en una tipica instalación de Sharepoint 2010 y no está relacionado a ASP.NET session state. Aparece en la página de Service Applications como “State Service.”

    Para habilitar ASP.NET session state:

    En la ventana de SharePoint 2010 Management Shell escribe lo siguiente:
    Enable-SPSessionStateService –DefaultProvision
    Sobre cada web application sobre el cual deseas usar session state, edita el web.config (previo backup) y setea la propiedad enableSessionState: <pages enableSessionState="true"

    Guía para usar en SharePoint Server ASP.NET Session State:

  • Este session state podría ser usado por custom code en web parts y otras páginas que hosteen controles
  • La información de Session state es almacenado en una base SQL configurable; esto implica lo siguiente:
  • Afinidad para la carga de balanceo no es requerido
  • El uso intensivo de session state debe ser incluído en un planning de capacity/base de datos. Por defautl, la base de datos de session state es creado en el mismo server de SQL que contiene la base de datos de configuración de Sharepoint. Esto puede ser cambiado a otro server. Para moverlo a otro SQL Server, primero deberás deshabilitarlo y habilitarlo de nuevo con una nueva configuración que apunte al server nuevo.
  • Cuando está habilitado, Session state es disponible para toda la granja. Cada web aplication puede elegir si desea usarlo o no mediante la configuración del web config(enableSessionState="true").
  • Session state es particionado usando la root URL. Esto significa que diferentes web applications tendrán diferentes objetos de  session state; un web part puede tener sólo acceso al objeto session state disponible. Si host header de site collection son usados, entonces objetos de session diferentes serán usados para cada site collection(el browser tendrá múltiple session ids en diferentes cookies).

    Para más información sobre el comando SPSessionStateService , ingrese al siguiente link: http://technet.microsoft.com/es-ar/library/ff607857.aspx

    Un ejemplo diferente:

    Enable-SPSessionStateService –DatabaseName “Session State Database” –DatabaseServer “localhost” –SessionTimeout 120
    En este ejemplo se habilita un estado de sesión de ASP.NET en un conjunto de servidores de Microsoft SharePoint Server 2010 que usa un nombre de base de datos personalizada, un servidor de base de datos, un tiempo de espera de sesión de 120 minutos y credenciales de Windows (debido a la falta de un parámetro atabaseCredentials).

  •  2112.image_thumb_5747BCBD

  • 2112.image_thumb_718825E1
    Si desean habilitar session state para Sharepoint Foundation, ingresen al siguiente link: http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=123

    Más info: http://blogs.msdn.com/b/sowmyancs/archive/2012/07/11/more-information-about-health-analyzer-rules-talking-about-session-expirations.aspx


  • domingo, 8 de julio de 2012

    Links útiles #43 Sharepoint

    1-Comparación de versiones de Sharepoint 2010 (Foundation, Server, Enterprise)

    http://sharepoint.microsoft.com/en-us/buy/pages/editions-comparison.aspx

    2-Exclusiones del antivirus para Sharepoint 2010 y SQL Server 2008

    http://spinplate.com/2012/02/antivirus-exclusions-for-sharepoint-2010-and-sql-server-2008-r2/

    3-SPQuery en Sharepoint 2010

    http://extreme-sharepoint.com/2012/06/22/spquery-pagination/

    4-Ocultar una lista en Sharepoint 2010

    http://geeks.ms/blogs/ciin/archive/2012/07/08/sharepoint-2010-c-243-mo-ocultar-una-lista-de-la-p-225-gina-ver-todo-el-contenido-del-sitio.aspx

    5-Azure Service Bus y Sharepoint 2010

    http://www.code-magazine.com/article.aspx?quickid=1203021&page=1

    6-Guía completa de jobs de Sharepoint 2010

    http://www.simple-talk.com/dotnet/.net-tools/a-complete-guide-to-writing-timer-jobs-in-sharepoint-2010/

    7-Trabajando con Resources Files en Sharepoint 2010

    http://www.fewlines4biju.com/2012/01/working-with-resource-file-in.html

    8-Crear un workflow secuencial en Sharepoint 2010

    http://www.fewlines4biju.com/2011/09/create-sequential-workflow-using-visual.html

    9-Deployando un assembly a la GAC

    http://www.fewlines4biju.com/2012/06/deploy-assembly-to-globalassemblycache.html

    10-Sharepoint Folders vs Metadata

    http://thingsthatshouldbeeasy.blogspot.com.ar/2010/01/sharepoint-folders-vs-metadata.html

    martes, 3 de julio de 2012

    Links útiles #41 Sharepoint

    1-Timer Jobs

    http://www.codeproject.com/Articles/403323/SharePoint-2010-Create-Custom-Timer-Jobs

    http://adicodes.com/timer-job-in-sharepoint-for-specific-site/

    2-Feature: activación de dependencias

    http://karinebosch.wordpress.com/2011/03/12/feature-activation-dependencies-in-visual-studio-2010/

    3-ECMA ejemplos

    http://adicodes.com/javascript-object-model-in-sharepoint-2010/

    4-Actions Ribbon Sharepoint 2010

    http://sharepointwings.blogspot.com.ar/2012/06/sharepoint-2010-ribbon-button.html

    5-Enviar un mail con adjunto en un workflow de Sharepoint (actividad)

    http://sharepointstuff.codeplex.com/releases/view/66258

    6-Conectando un WCF service con Infopath

    https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/Connecting-a-WCF-Service-to-an-InfoPath-Form.aspx

    7-Deployando Sharepoint en Azure Virtual Machines

    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/AZR327

    8-Crear job en Sharepoint que escriba en Base de Datos

    http://www.codeproject.com/Articles/403323/SharePoint-2010-Create-Custom-Timer-Jobs

    9-Abrir PDF en el navegador en Office 365

    http://sharepointontop.blogspot.com.ar/2012/06/office-365-open-pdf-files-in-browser.html

    10-Habilitar & Deshabilitar alertas en Sharepoint 2010

    http://code.msdn.microsoft.com/sharepoint/Enable-Disable-Alerts-for-cb765602

    domingo, 1 de julio de 2012

    Tips/Info #41 Sharepoint

    1-Timer jobs: no detecta los cambios de la última versión del código

    Esto se debe a que usted deployo la solution con código nueva, pero no reinicio el timer job.

    Abra una línea de comandos, y ejecute los siguiente en orden:

    net stop “SharePoint 2010 Timer”
    net start “SharePoint 2010 Timer”

    2-Content query web part vs data view web part

    Características de data view web part (DVWP):

      • El Sharepoint Designer es requerido para desarrollar DVWP
      • DVWP puede obtener datos desde fuentes de datos (diferentes a listas y xml)
      • DVWP puede obtener datos de otro site collection
      • DVWP puede mezclar datos de más de una lista

    Características de content query web part (CQWP):

      • CQWP puede obtener datos desde un Content Type.
      • Puede habilitar RSS feed en el CQWP.
      • CQWP genera campoa para mostrar los cuales pueden mapearse a columnas custom

    3-Error:The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service.

    1. Abrir Central Administration
    2. Ir a Application Management
    3. Sobre Service Applications click Configure service application associations"
    4. Click sobre el Application Service Proxy Group del WebApplication que estás trabajando.
    5. Verifica que el checkbox de State Service es marcado.

    4-Ejemplos de jobs

    Algunos ejemplos donde los jobs correran dependiendo de los parámetros pasados al constructor:

    //Job asociado con un web app, sin servers en particular y none lock:
    // correrá en todos los frontends
    var jobCorreraSobreTodoLosFrontEndServers = new MiTimerJob1("mitimerjob",
        SPWebApplication.Lookup(webAppURI), null, SPJobLockType.None);

    //Job asociado con un web app, un front end server y job lock:
    //  correrá solamente en el server frontEndServer1
    var jobRunningOnAParticularFronEndServer = new MiTimerJob1("mitimerjob",
        SPWebApplication.Lookup(webAppURI), fronEndServer1, SPJobLockType.Job);

    //Job asociado con un web app, y un app server y lock type job:
    //  no correra en ningún server ya que el server especificado NO esta corriendo el Web Application Service
    var jobRunningOnNoServer = new MiTimerJob1("mitimerjob",
        SPWebApplication.Lookup(webAppURI), appServer1, SPJobLockType.Job);

    //Job asociado con el timer service, un app server particular y un none lock:
    // Correra sobre el appServer1 solamente
    var jobRunningOnAppServer = new MiTimerJob("mitimerjob",
        SPFarm.Local.TimerService, appServer1, SPJobLockType.None);

    5-Obtener la base de datos de configuración con PowerShell

    Get-SPDatabase | Where-Object { $_.TypeName -eq "Configuration Database" }

    martes, 12 de junio de 2012

    Links útiles #32 Sharepoint 2010

    1-Donde se ejecutarán los jobs de timers en Sharepoint 2010?

    http://weblogs.asp.net/spano/archive/2012/06/10/where-is-my-sharepoint-2010-custom-timer-job-running.aspx

    2-Base de datos de configuración de Sharepoint 2010 en modo “Suspect” o al tratar de conectarse lanza el error: Cannot connect to configuration database

    http://joeprakash.wordpress.com/2012/06/04/sharepoint-configuration-database-in-suspect-mode/

    3-Tipos de archivos y ifiltros que soportan esos tipos de archivos

    http://technet.microsoft.com/es-ar/library/gg405170

    4-Crawled properties de Sharepoint 2010

    http://technet.microsoft.com/es-ar/library/hh134087

    5-Conectores Default que se conectan a diferentes repositorios para ser “crawleados”

    http://technet.microsoft.com/es-ar/library/gg153530.aspx

    6-SPFilterDropDown de SPServices: para ordenar

    http://sympmarc.com/2012/05/11/using-spfilterdropdown-to-reorder-options-in-a-dropdown-on-a-sharepoint-form/

    http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPFilterDropdown

    7-Error: "Load control template file /_controltemplates/TaxonomyPicker.ascx failed"

    http://support.microsoft.com/kb/2481844

    8-Crawl de un shared folders con Sharepoint 2010

    http://www.c-sharpcorner.com/UploadFile/40e97e/sharepoint-search-content-sources/

    9-Sharepoint sobre dispositivos móviles

    http://www.techomechina.com/blog/sharepoint-on-mobile-devices-the-options/

    10-Organization Browser en Sharepoint 2010 – Organigrama

    http://adminsonnetwork.wordpress.com/2012/06/03/organization-browser-in-sharepoint-2010/

    viernes, 8 de junio de 2012

    Tips/info #29 Sharepoint 2010

    1-Algunas cosas del media web part de Sharepoint 2010

    Formatos de archivos que soporta: http://msdn.microsoft.com/en-us/library/cc189080(VS.95).aspx

    No soporta flash.

    Permite streaming de otros sitios

    Es una feature de Publishing

    Más info: http://blogs.msdn.com/b/sanjaynarang/archive/2010/05/20/media-web-part-in-sharepoint-2010-faq.aspx

    2-Ejecutar todos los jobs del Health Analyzer mediante PowerShell

    Get-SPTimerJob | Where {$_.Name -like "*Health*" -and $_.Name -like "*-all-*"} | Start-SPTimerJob

    3-Debugging de timer de jobs

    Hay veces que el debugging de atachar el proceso de w3wp no funciona, para ello se puede usar:

    System.Diagnostics.Debugger.Launch();

    Esta instrucción hará que salte el típico cuadro de diálogo que nos permite seleccionar el depurador que queremos adjunta a nuestro servicio. Evidentemente la podemos usar en aplicaciones que no sean servicios para tener la oportunidad de ajuntar un depurador cuando se ejecute determinado código

    image_a7457bd8-76d6-49f4-b605-de1b14a3aaef

    3-Export web con la seguridad y las últimas 3 versiones de los archivos

    Export-SPWeb -Identity http://servidor/sitio -Path "C:\Backup.bak" –IncludeUserSecurity -IncludeVersions 3

    IncludeUserSecurity: Conserva la configuración de seguridad del usuario.

    IncludeVersions: Indica qué tipo de historial de versiones de archivos y elementos de lista debe incluirse en la exportación. Si el parámetro IncludeVersions no está presente, el cmdlet Export-SPWeb usará el valor 1 como predeterminado.

    4-Cambiar los iconos de los tipos de archivos

    Estos pasos se deben hacer en cada WFE, ir a :

    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\

      Subir el icono deseado.

      Después ir a

      C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\

      y editar el archivo docIcon.xml, encontrar el elemento <ByExtension>, y cambiarle el atributo de la imagen con el nombre que subimos en el paso 1.

      <Mapping Key="pdf" Value="pdf-small.png"/>

      5-Borrar site huérfanos

      Ejecutar enumweb sobre todas las base de datos para checkear sites huérfanos.
      stsadm –o enumallwebs –databasename "databasename" –databaseserver

      stsadm -o deletesite -siteid "GUID" -databaseserver "SQLServerame" -databasename "databasename" –force

      6-Borrar web parts huérfanos

      Abrir la página en modo mantenimiento (?content=1) y borrar el web part huérfano (no usar Remove)

      The error "Missing server side dependencies" came up with an explanation saying "WebPart class [GUID] is referenced [x] times in the database [ContentDB], but is not installed on the current farm."

      Usar la siguiente consulta SQL para saber en que lugar está el web part huérfano.

      SELECT Id, SiteId, DirName, LeafName, WebId, ListId, tp_ZoneID, tp_DisplayName

      from AllDocs

      inner join AllWebParts on AllDocs.Id = AllWebParts.tp_PageUrlID

      where AllWebParts.tp_WebPartTypeID = 'GUID’;

      7-Agregar palabras custom al spell check (corrector ortográfico) de Sharepoint 2010

      Crear una document library a nivel del root site, es decir a nivel de site collection llamada ‘Spelling’.

      Crear un archivo .txt con términos custom que se agregaran al diccionarion– un término por línea y guardalo con el nombre “Custom Dictionary.txt”.

      Y subí el txt a la librería “Spelling”.

      8-Relink los forms de infopath después de migrar

    • Abrir la libreria de forms
    • Click “Modify Columns and Settings”
    • En la sección General Settings, click Relink forms to this form library.
    • En la vista presentada, seleccionar todos los forms que se quieren relinkear.
    • Click el botón Relink

    • También se puede usar el siguiente comando de powershell;


       Update-SPInfoPathAdminFileURL -find <OldUURLtoReplace> -replace <NewURL>


      9-Jquery y SPServices


      Si se usa una versión más grande de SPServices que 0.7.1a usarlo de la siguiente manera:


      jQuery(xData.responseXML).SPFilterNode(“z:row”)


      Sino usar:


      jQuery(xData.responseXML).find(“z\\:row’”)


      10-Desactivar una feature en todos los sitios de una site collection

      $url = "http://sharepoint_site"
      $sitio = Get-SPsitio $url
      foreach($web in $sitio.AllWebs)
      {
      $url = $web.Url
      if($url -ne $url){
      foreach($feature in Get-SPFeature -Web $url)
      {
      $featureName = $feature.DisplayName
      if($featureName -eq "NOMBRE_FEATURE")
      {
      "Desactivo al feature en la web"
      Disable-SPFeature -Identity NOMBRE_FEATURE -Url $url -Confirm:$false
      break;
      }
      }
      }
      }



      domingo, 3 de junio de 2012

      Links útiles #27 Sharepoint 2010

      1-Tesauros en el search de Sharepoin 2010

      http://www.techgrowingpains.com/2012/05/sharepoint-search-synonyms-thesaurus-and-you/

      2-Slide Menu en Sharepoint 2010

      http://spmenu.codeplex.com/

      3-Instalar la ayuda de Sharepoint 2010

      http://support.microsoft.com/kb/939313/en-us

      4-Crear un job de Sharepoint 2010

      http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointtimerjob2010/

      5-Sincronizar la imagen de Sharepoint de tu perfil desde el Active Directory

      http://blogs.technet.com/b/nishants/archive/2012/02/21/how-to-sync-picture-from-sharepoint-to-active-directory-and-hence-to-outlook-and-lync.aspx

      6-Elevación de privilegios con Impersonation

      http://extreme-sharepoint.com/2012/05/30/impersonation-elevation-of-privileges/

      7-Agregar un link de editar página en tu page layout

      http://www.sharepointoscar.com/blog/2010/09/28/sharepoint-2010-add-an-edit-page-link-on-your-page-layout/

      http://www.gavd.net/servers/sharepointv4/spsv4_item.aspx?top=3&itm=1477

      8-Agregar NT AUTHORITY\Authenticated Users vía client object

      http://www.gavd.net/servers/sharepointv4/spsv4_item.aspx?top=0&itm=1476

      9-Event Receivers en Sharepoint 2010

      http://extreme-sharepoint.com/2011/12/27/event-receivers-sharepoint-2010/

      10-Verificar permisos de usuarios

      http://www.alaindeklerk.com/checking-user-permissions-doesuserhavepermissions-vs-catchaccessdeniedexception

      11-Cambiar master page default via programación

      http://www.codepoint.es/archive/2012/05/17/Modificar%20MasterPage%20de%20SharePoint%202010%20a%20trav%C3%A9s%20de%20m%C3%B3dulos%20con%20Visual%20Studio%202010.aspx

      12-Problema con REST y listdata.svc con los nombres

      http://johnliu.net/blog/2012/5/31/sharepoint-why-is-listdata-service-using-strange-names.html

      sábado, 2 de junio de 2012

      Tips/info #26 Sharepoint 2010

      1-Obtener la cantidad de items de una web application mediante powershell
      if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) 
      {Add-PSSnapin Microsoft.SharePoint.Powershell}
      
      $SPWebApp = Get-SPWebApplication("http://intranet.contoso.com")
      
      $cantidad=0
      foreach ($SPSite in $SPWebApp.Sites)
      {
          Write-Host "Inicio de lectura de Site Collection: " $SPWeb.Title
          foreach ($SPWeb in $SPSite.AllWebs)
          {
              Write-Host "Inicio de lectura para sitio: " $SPWeb.Title
              foreach ($SPList in $SPWeb.Lists)
              {
                  Write-Host "Inicio lectura de lista:" $SPList.Title " la misma tiene " $SPList.ItemCount 
                  foreach ($SPListItem in $SPList.Items)
                  {
                      $cantidad=$cantidad+1                
                  }            
              }
              $SPWeb.dispose() 
          }
          $SPSite.dispose()
      }
      Write-Host "Cantidad de Items: " $cantidad
      
      2-Error al ingresar a  /_admin/ServiceJobDefinitions.aspx
      "Object Reference not set to an instance of an object" error.

      System.NullReferenceException: Object reference not set to an instance of an object.
      Microsoft.Office.Project.Server.Administration.ServerScheduledTimerJob.get_DisplayName()Microsoft.SharePoint.ApplicationPages.JobDefinitionsDataSourceView.AddRow(SPJobDefinition jd, DataTable table, DataSourceSelectArguments selectArguments)



      Podremos ver en el event viewer algunos errores relacionados a esta excepción, los cuales informan el ID del job.

      Ej: There was an exception loading job definition "Microsoft.Office.Project.Server.Administration.ServerScheduledTimerJob" (id "27ff4638-a131-4100-9796-2c72f29ec0a8"). Object reference not set to an instance of an object.

      Para borrarlo, se deberá ejecutar el siguiente comando

      $job = Get-SPTimerJob  27ff4638-a131-4100-9796-2c72f29ec0a8
      $job.delete()

      Hay casos que borrando todos los ID de los jobs que aparecieron en el Event Viewer, siga habiendo problemas al ingresar a ServiceJobsDefinitios.

      Para ello ejecutamos lo siguiente:

      $jobNulls = Get-SPTimerJob | Where-Object {$_.DisplayName -eq $null}

      $jobNulls

      Nos retornará algo así:

      Name                 Schedule             Last Run
      ----                 --------             --------
      PWASSP_7a8e8c16-3... daily between 01:... 1/1/0001 12:00:00 AM
      PWASSP_7a8e8c16-3... hourly between 0 ... 1/1/0001 12:00:00 AM
      PWASSP_7a8e8c16-3... daily between 00:... 1/1/0001 12:00:00 AM
      PWASSP_84eec303-4... daily between 00:... 1/1/0001 12:00:00 AM
      PWASSP_ce05f8e3-3... daily between 00:... 1/1/0001 12:00:00 AM
      PWASSP_f8d30a49-6... daily between 00:... 1/1/0001 12:00:00 AM

      De esta manera ejecutando lo siguiente:

      get-sptimerjob | where-object {$_.name -like "*PWASSP_84eec303-4*"} | format-list name, id

      Nos retornará el ID correspondiente, y podremos borra el job mediante el comando especificado más arriba.

      3-Iniciar un job mediante powershell

      get-sptimerjob | where-object {$_.name -like "EPM*"} | Start-SPTimerJob

      Si se desea ejecutar un job de un determinado web application

      $wa = Get-SPWebApplication $url

      Get-SPTimerJob | ?{$_.Name -match "EPM"} | ?{$_.Parent -eq $wa} | Start-SPTimerJob

      4-Error: There are no addresses available for this application

      Este error surge cuando se un servicio de Sharepoint está apagado.

      Ir a "Manage services on server" ver si los servicios necesario están corriendo. Si el error sige surgiendo mientras el servicio está corriendo, hace un iisreset.

      5-Error al deployar una solución: Error occurred in deployment step ‘Add Solution’: The EXECUTE permission was denied on the object ‘proc_putObject’, database ‘SharePoint_Config’, schema ‘dbo’.

      Hay que agregar el rol “SharePoint_Shell_Access” para el usuario sobre la base Sharepoint_Config

      image_thumb2

      6-Features en Sharepoint 2010

      SharePoint Features pueden estar al alcance de la Farm, Web Application, Site Collection, y Web Site dependiendo de la característica. El “Feature scope” es determinado seteando el atributo “Scope” en el elemento feature en el archivo feature.xml

      Ej:

      <Feature Id="G73C15DF-59ED-33be-8732-E6FFBW1439184" 
      Title="titulo de la Feature" 
      Description="Descripcion de la Feature" 
      Version="1.0.0.0" 
      Scope="Site"
      Hidden="false"> 
      </Feature>
      Tipos de elementos para features


      Elemento

      Descripción

      Scope

      Content Type

      Contiene un esquema de definición que puede reusarse y aplicarse a multiples definiciones de listas.

      Site

      Content Type Binding

      Content type binding habilita la provisión de un content type sobre una lista definida en el esquema Onet.xml. Listas definidas en el esquema Onet.xml no pueden ser modificadas de forma directa.

      Site

      Control

      Un control delegado contiene una registración para un control bien conocido instalado en la página. Este permite reemplazar controles existentes tales como Windows SharePoint Services search control, con otro control.

      Farm, WebApplication, Site, Web

      Custom Action

      Puede definir los siguientes tipos de acciones personalizadas:

      ·         Links para la página de configuración de Content type

      ·         Menú de acciones para el menú Drop-down que aparece para un item.

      ·        Botones de formularios para forms de  New, Edit, o Display

      ·         Link para la página Site Settings.

      Farm, WebApplication, Site, Web

      Custom Action Group

      Define un grupo de custom actions

      Farm, WebApplication, Site, Web

      Document Converter

      Contiene la definición de un convertidor de documentos.Un convertidor de documentos es un archivo ejecutable personalizado que toma un documento de un tipo de archivo, y genera una copia de ese archivo en otro tipo de archivo.

      WebApplication

      Feature/Site Template Association

      Enlaza una característica (feature) a una configuración de definición de sitio para que los sitios creados se doten de la característica.

      Farm, WebApplication, Site

      Field

      Contiene una definición de campo que se puede reutilizar entre varias listas.

      Site

      Hide Custom Action

      Oculta una acción personalizada (custom action) que se ha añadido a través de otra acción personalizada.

      Farm, WebApplication, Site, Web

      List Instance

      Provisiona un sitio de SharePoint con una lista específica de datos.

      Site, Web

      List Template

      Provisiona una definición de lista o de la plantilla, que define una lista que puede ser suministrada en un sitio de SharePoint.

      Site, Web

      Module

      Contiene un conjunto de archivos con los cuales provisionan sitios.

      Site, Web

      Receiver

      Contiene el registro de un manejador de eventos

      Web

      Workflow

      Contiene la definición para un workflow en una lista.

      Site