Problem: One of your sites, default.aspx page, can't be open... :S cause one unexpected error derived from an Web Part.
Solution: Add this line to your site ?contents=1.
That way you can manage your WebParts in MaintenanceWebPart page.
1- So lets say http://server//site/default.aspx?contents=1
2- Remove the problematic or the last Web Part or the one you know that is causing the error.
Tuesday, August 30, 2011
Thursday, August 25, 2011
Errors were found when compiling the workflow. The workflow files were saved but cannot be run.
Problem: When publishing Workflow in SharePoint Designer. We get a message Errors were found when compiling the workflow. The workflow files were saved but cannot be run.
Resolution:
1- Go to "C:\inetpub\wwwroot\wss\VirtualDirectories\ " of the specific Site.
Open web.config
3- Find the first line with "httpRuntime".
4- Add the attribute executionTimeout="300"
The whole line should look like this
5- Save web.config
6- Do iisreset /noforce
7- Close Designer and re open.
8- Delete Workflow and recreate.
9- Save and publish ;)
Worked for me..Hope it works for you.
Resolution:
1- Go to "C:\inetpub\wwwroot\wss\VirtualDirectories\
Open web.config
3- Find the first line with "httpRuntime".
4- Add the attribute executionTimeout="300"
The whole line should look like this
5- Save web.config
6- Do iisreset /noforce
7- Close Designer and re open.
8- Delete Workflow and recreate.
9- Save and publish ;)
Worked for me..Hope it works for you.
Labels:
Sharepoint 2010,
Sharepoint Designer,
Workflows
Monday, August 22, 2011
Can't open old/moved/copied forms - Permission problem Sharepoint
Problem: When opening a Form you get a message like this "A form template (.xsn) file can not be accessed. You may not have the required permissions to open the file."
Resolution: Can be permissions of course ... Otherwise can be a missing template.
If you deleted the template you have to restore or republish in order to open the Form.
;))
Resolution: Can be permissions of course ... Otherwise can be a missing template.
If you deleted the template you have to restore or republish in order to open the Form.
;))
Labels:
Forms,
InfoPath 2010,
permissões,
Sharepoint
Wednesday, August 3, 2011
Remove column title ContentType
Problem : If you add one contentType to a list, Title column is automatically added.
If you need to remove only the column Title, you can't cause remove button is hidden.
Solution:
Run a simple power shell script.
$web = Get-SPWeb http://server
$list = $web.Lists["Lib"]
$f= $list.Fields["Title"]
$ct =$list.ContentTypes["New Folder"]
$ct.FieldLinks.Delete($f.InternalName)
$ct.Update()
Now you have a contentType without Title column ;))
If you need to remove only the column Title, you can't cause remove button is hidden.
Solution:
Run a simple power shell script.
$web = Get-SPWeb http://server
$list = $web.Lists["Lib"]
$f= $list.Fields["Title"]
$ct =$list.ContentTypes["New Folder"]
$ct.FieldLinks.Delete($f.InternalName)
$ct.Update()
Now you have a contentType without Title column ;))
Labels:
Column,
content type,
Sharepoint,
Sharepoint 2010
Monday, August 1, 2011
Como eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto
Problema: Quando a queremos eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto, não aparece o botão.
Resolução: Apenas é possível mostrar o botão eliminar com execução de código.
PowerShell:
$web = Get-SPWeb http://server
$list = $web.Lists["Documentos"]
$field = $list.Fields["Page Image"] ou
$field = $list.Fields["Rollup image"] ou
$field = $list.Fields["Contact image"]
$field.AllowDeletion = “true”
$field.Update()
Ou pelo Visual Studio:
using(SPSite site = new SPSite("http://server"))
{
using(SPWeb web = site.OpenWeb())
{
SPList list = web.Lists.TryGetList("Documentos");
SPField field = list.Fields["Page Image"];
SPField field2 = list.Fields["Rollup image"];
SPField field3 = list.Fields["Contact image"];
field.AllowDeletion = true;
field.Update();
}
}
Agora o botão eliminar já aparece nas opções da coluna ;)
Resolução: Apenas é possível mostrar o botão eliminar com execução de código.
PowerShell:
$web = Get-SPWeb http://server
$list = $web.Lists["Documentos"]
$field = $list.Fields["Page Image"] ou
$field = $list.Fields["Rollup image"] ou
$field = $list.Fields["Contact image"]
$field.AllowDeletion = “true”
$field.Update()
Ou pelo Visual Studio:
using(SPSite site = new SPSite("http://server"))
{
using(SPWeb web = site.OpenWeb())
{
SPList list = web.Lists.TryGetList("Documentos");
SPField field = list.Fields["Page Image"];
SPField field2 = list.Fields["Rollup image"];
SPField field3 = list.Fields["Contact image"];
field.AllowDeletion = true;
field.Update();
}
}
Agora o botão eliminar já aparece nas opções da coluna ;)
Labels:
Coluna,
PowerShell,
programmatically,
Sharepoint 2010,
Visual Studio
Não é possível eliminar a coluna porque esta faz actualmente parte de um índice de coluna composto.
Problema deve ao facto de esta coluna está a ser usada para indexar conteúdo.
Assim sendo está terá que ser removida do índice e só depois poderá ser eliminada.
1- Ir as definições da biblioteca
2- Selecionar Colunas com índice.
3- Remover todas as opções que contenha a coluna em questão.
4- Eliminar/Delete a coluna.
Assim sendo está terá que ser removida do índice e só depois poderá ser eliminada.
1- Ir as definições da biblioteca
2- Selecionar Colunas com índice.
3- Remover todas as opções que contenha a coluna em questão.
4- Eliminar/Delete a coluna.
Labels:
Coluna,
Erros,
Sharepoint 2010
Subscribe to:
Posts (Atom)