Hi
under the "System" Group > "Keywords" Termset I can see various terms which are named as various combination of digits like :
1,2,3,4,5,6
1,2,3,6,4,5
1,2,5,6,4,3
1,3,4,2,5,6
1,3,5,2,4,6
1,3,6,2,4,5
1,4,2,3,5,6
1,4,3,6,2,5
1,5,2,3,4,6
1,5,2,3,6,4
1,6,2,3,4,5
If you know why they are there , kindly share this with all of us.Please explain what is the purpose of these digits ( Enterprise Keywords) , I we loose few of them , what may be the consequences.
The source of the question is , one of our servers is having few extra of them like : 18,19,20,21,22,23
Reply 1
Hello,
I checked and I wasn't able to reproduce this issue by Content Deployment between 2 SharePoint environments so this seems like an environment specific issue; in-depth engagement is not feasible thru forum replies and this issue requires a more in-depth level of support.
Please visit the below link to see the various paid support options that are available to better meet your needs:http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone. If you are a MSDN / TechNet subscriber, you can also contact our support by using your free support incidents.
However, other members of the community may still have encountered the issue you're seeing, and have a solution to offer!
The keywords visible under "System" group are added by tagging documents / list items with predefined (taxonomy) and user defined (folksonomy). There are no pre-populated digit keywords so I do not believe there would be impact other than tagged items losing these tags.
Please see the following articles
http://office.microsoft.com/en-us/sharepoint-server-help/CH010372669.aspx
http://technet.microsoft.com/en-us/library/ee424402.aspx
http://technet.microsoft.com/en-us/library/ee424403.aspx
Regards,
Nishant Shah
Reply 2
I doubt :
if staging has a dummy term and corresponding TaxonomyHiddenList entry . The Content deployment /migration from staging to production create such type of terms.
What Microsoft can do to fix it :
1. Suppose staging has a term (myGuid) under Termset1(Guid1), under Group1 ( Guid2) , under Store 1 ( Guid3 ); and while migration of site collection it finds a term in taxonomyhiddenlist which is missing on target >
2. It should search for Guid1 under GUID2 under GUID 3 to create a term with myGuid.
As of now under current implementation by Microsoft for migration API's it seems to be creating entry under Group System Termset Keywords.
Friday, June 29, 2012
Wednesday, June 27, 2012
SharePoint 2010 strange behavior of Taxonomies under Migration from one server to another
Microsoft.SharePoint.dll version 14.0.4762.1000
Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000
We migrate only published and approved content from staging to production. Under one of the scenarios, we want to introduce new Terms for our system. Here is the strange behavior we are facing that might be reported to Microsoft for improvements in future service packs:
How you could help me in this:
I got tp_ListId and tp_DocId for my target document migrated from [AllDocs] database Tableusing LeafName.
Using tp_ListId and tp_DocId on [AllUserData] I was able to observe that, actully content deployment has created entry correctly here.
The entry is like under ntext2 is like:“OldTerm1|OldTerm1GUID;NewTerm1|NewTerm1GUID;OLDTerm2|OldTerm2GUID”
Using all SharePoint API’s and U2U etc, my migrated item returns only the new term , it seems to be old terms are wiped off , but they are not , they are there in the database.
The output of U2U is:
NewTerm1|NewTerm1GUID
Now I have a question for you, what else than Taxonomy Update Scheduler Timer Job could be the culprit? Is it like the account with which SharePoint Timer Job is running , must have full control on Meta Data DB and Site Collection DB ?
How Microsoft should help us in this:
For a new term, when referred by an item, it should be handled by the migration /deployment API’s exposed internally that:
A.
After doing all the above steps once :
So the Taxonomy Hidden List has all the terms as desired , the Term Store is up to date , the SQL content DB has the entry as it should be.
Means Taxonomy Update Scheduler is not able to update the content DB , so that it may display the right values.
Do we need some kind of Service pack here ? We have :
Microsoft.SharePoint.dll version 14.0.4762.1000
Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000
I tried TaxonomySession.SyncHiddenList(mySiteCollection); but it could not help .
B.
If I run all my Meta service , web application pool and SharePoint Timer Job with an "Admin Everywhere" account on production replica and follow the steps above along with TaxonomySession.SyncHiddenList(mySiteCollection); still it does not help.
C.
If I run all the app pools and windows services on the server using an account who has admin rights everywhere along with TaxonomySession.SyncHiddenList(mySiteCollection); it helps , I had to insert SyncHiddenList along with manual run of Taxonomy Migration Job in b/w step 4 and 5 above. i.e after the Taxonomy Hidden List item migration and before the actual content come in .
Is there some shorter way to avoid all the mess above said ? Or at least you could point out what else than exactly my Meta service app pool , web application pool and SharePoint Timer Job is involved in Taxonomies !!!
Temporary Solution:
Everywhere on msdn and blogs, technology geeks have suggested making taxonomy store to be common for staging and production environments. But in our case we cannot maintain this. So with our version of SharePoint (Microsoft.SharePoint.dll version 14.0.4762.1000, Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000 ) we have tested below mentioned to work as an alternative:
0. On staging and production go to Central Admin > Security > Configure Service Accounts
a. Select Farm Account and press OK, the account you had decided to be farm account previously will be getting full control at many places in the DB , if the DB's are backup and restore off the line , generally we loose this important couple b/w farm account and Database. It will make sure the timer service which runs with Farm account can do many stuff on the whole farm without any errors.
b. do similar to above for app pool account for managed meta service and your target web applications.
1. Run export import for the staging and production to be in sync. Halt the changes on staging.
2. Create new term on staging under desired termset. Extract the GUID for this new term and keep safe with you
3. Create unpublished SPItem on staging which refer the new term.( To create an entry in taxonomy hiddenlist)
4. TaxonomySession.SyncHiddenList(mySiteCollectionStaging).Before Sync Please make sure your SharePoint Timer Job is running with an account which has full rights on site collection and the taxonomy data base. This can be done by setting admin for site collection and taxonomy service.Please make sure after this you wait for "Enterprise Metadata site data update" and "Taxonomy Update Scheduler" to run once as scheduled.
5. Delete the unpublished item of step 2 if you wish to .
6. Run export process and discard this export package. Because this package contains all the terms, since they are updated by sync process.
A. Reproduce same term with same Guid and parent term set on production: By using TermSetItem.CreateTerm Method (String, Int32, Guid) Take GUID and name from step two above.
B. Create an unpublished dummy item on production with new term.
C. TaxonomySession.SyncHiddenList(mySiteCollectionProd).Please make sure after this you wait for "Enterprise Metadata site data update" and "Taxonomy Update Scheduler" to run once as scheduled.
D. Delete the unpublished item if you wish to.
Now servers are ready for future normal import and exports without any error till the time you don’t introduce new terms.
Permanent Solution:
How Microsoft should help us in this:
1. Make the content deployment API's smart enough , that source Taxonomy hidden list is not marked for migration while exporting site collection , when the SPtem which refer to a term is created on Target , the right ( in sync) Term will automatically be created under target taxonomy hidden list.
2. In case Target term store is not updated , there should be explicit messages in import log , that a term is referred which may have been missing in the target term store.Import is unsuccessful.Please update your term store and run the import again. Or let the SharePoint Timer job create one at right place and give error if parent term set is missing
Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000
We migrate only published and approved content from staging to production. Under one of the scenarios, we want to introduce new Terms for our system. Here is the strange behavior we are facing that might be reported to Microsoft for improvements in future service packs:
- Create new term on staging under desired termset.
- Reproduce same term with same Guid and parent term set on production :
- By using TermSetItem.CreateTerm Method (String, Int32, Guid)
- By stopping meta dataservice and then replace db on production from staging
- By using Export-SPMetadataWebServicePartitionData,Export-SPMetadataWebServicePartitionData powershell
- Create unpublished SPItem on staging which refer the new term.
- Let the content deployment proceed. This will migrate only the Term entry in TaxonomyHiddenList.
- Publish any spDoc which refers few of the old and new terms.
- Let the content deployment migrate the new published item.
- Now on production the newly migrated spDoc has only new term referred.
- If we migrate spDoc which only has old terms , not the new one, it migrates well and all the terms are visible under the display item form > SPField.
How you could help me in this:
I got tp_ListId and tp_DocId for my target document migrated from [AllDocs] database Tableusing LeafName.
Using tp_ListId and tp_DocId on [AllUserData] I was able to observe that, actully content deployment has created entry correctly here.
The entry is like under ntext2 is like:“OldTerm1|OldTerm1GUID;NewTerm1|NewTerm1GUID;OLDTerm2|OldTerm2GUID”
Using all SharePoint API’s and U2U etc, my migrated item returns only the new term , it seems to be old terms are wiped off , but they are not , they are there in the database.
The output of U2U is:
NewTerm1|NewTerm1GUID
Now I have a question for you, what else than Taxonomy Update Scheduler Timer Job could be the culprit? Is it like the account with which SharePoint Timer Job is running , must have full control on Meta Data DB and Site Collection DB ?
How Microsoft should help us in this:
For a new term, when referred by an item, it should be handled by the migration /deployment API’s exposed internally that:
- A new Term should be created under the same termeset as on source. Right now it tends to create under System > Keyword Terms set if term is missing. ( if I miss step 2 above)
- No multiple entries should be allowed in TaxonomyHiddenList with same title /GUID, name parent termset etc. If we migrate an item which is published under ste 4 above. 2 entries are created under TaxonomyHiddenList.
- Taxonomy Update Scheduler should be made efficient to handle multiple entries for same term in the taxonomyhiddenlist by the external processes.
Reply 1
A.
After doing all the above steps once :
So the Taxonomy Hidden List has all the terms as desired , the Term Store is up to date , the SQL content DB has the entry as it should be.
Means Taxonomy Update Scheduler is not able to update the content DB , so that it may display the right values.
Do we need some kind of Service pack here ? We have :
Microsoft.SharePoint.dll version 14.0.4762.1000
Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000
I tried TaxonomySession.SyncHiddenList(mySiteCollection); but it could not help .
B.
If I run all my Meta service , web application pool and SharePoint Timer Job with an "Admin Everywhere" account on production replica and follow the steps above along with TaxonomySession.SyncHiddenList(mySiteCollection); still it does not help.
C.
If I run all the app pools and windows services on the server using an account who has admin rights everywhere along with TaxonomySession.SyncHiddenList(mySiteCollection); it helps , I had to insert SyncHiddenList along with manual run of Taxonomy Migration Job in b/w step 4 and 5 above. i.e after the Taxonomy Hidden List item migration and before the actual content come in .
Is there some shorter way to avoid all the mess above said ? Or at least you could point out what else than exactly my Meta service app pool , web application pool and SharePoint Timer Job is involved in Taxonomies !!!
Reply 2
Temporary Solution:
Everywhere on msdn and blogs, technology geeks have suggested making taxonomy store to be common for staging and production environments. But in our case we cannot maintain this. So with our version of SharePoint (Microsoft.SharePoint.dll version 14.0.4762.1000, Microsoft.SharePoint.Taxonomy.dll version 14.0.4756.1000 ) we have tested below mentioned to work as an alternative:
0. On staging and production go to Central Admin > Security > Configure Service Accounts
a. Select Farm Account and press OK, the account you had decided to be farm account previously will be getting full control at many places in the DB , if the DB's are backup and restore off the line , generally we loose this important couple b/w farm account and Database. It will make sure the timer service which runs with Farm account can do many stuff on the whole farm without any errors.
b. do similar to above for app pool account for managed meta service and your target web applications.
1. Run export import for the staging and production to be in sync. Halt the changes on staging.
2. Create new term on staging under desired termset. Extract the GUID for this new term and keep safe with you
3. Create unpublished SPItem on staging which refer the new term.( To create an entry in taxonomy hiddenlist)
4. TaxonomySession.SyncHiddenList(mySiteCollectionStaging).Before Sync Please make sure your SharePoint Timer Job is running with an account which has full rights on site collection and the taxonomy data base. This can be done by setting admin for site collection and taxonomy service.Please make sure after this you wait for "Enterprise Metadata site data update" and "Taxonomy Update Scheduler" to run once as scheduled.
5. Delete the unpublished item of step 2 if you wish to .
6. Run export process and discard this export package. Because this package contains all the terms, since they are updated by sync process.
A. Reproduce same term with same Guid and parent term set on production: By using TermSetItem.CreateTerm Method (String, Int32, Guid) Take GUID and name from step two above.
B. Create an unpublished dummy item on production with new term.
C. TaxonomySession.SyncHiddenList(mySiteCollectionProd).Please make sure after this you wait for "Enterprise Metadata site data update" and "Taxonomy Update Scheduler" to run once as scheduled.
D. Delete the unpublished item if you wish to.
Now servers are ready for future normal import and exports without any error till the time you don’t introduce new terms.
Reply 3
Permanent Solution:
How Microsoft should help us in this:
1. Make the content deployment API's smart enough , that source Taxonomy hidden list is not marked for migration while exporting site collection , when the SPtem which refer to a term is created on Target , the right ( in sync) Term will automatically be created under target taxonomy hidden list.
2. In case Target term store is not updated , there should be explicit messages in import log , that a term is referred which may have been missing in the target term store.Import is unsuccessful.Please update your term store and run the import again. Or let the SharePoint Timer job create one at right place and give error if parent term set is missing
Friday, June 22, 2012
User Profiles in custom SPGridView with Pagination for SharePoint 2010
Hi
My User Profiles have around 10,000 records.
I want to display them in a SharePoint Grid ( custom) . If the count of profile were only 50 , to display them all my dev machine takes around 40 seconds with all custom processing I have.
So, I want page size say 20 , and on each next click I should get from profile DB next 20 records. I should be able to get page numbers also in the bottom. For direct navigation.
Please suggest if you have something in your mind / you done it already in past.
I am gonn rely on Microsoft.Office.Server.UserProfiles.ProfileManagerBase.GetEnumerator for this .
Any pointer ?
Reply 1
Hi hemantrhtk,
It may be not easy to use paging to user profiles, in this situation, you may consider store the profile information in a datatable, and use paging for the datatable, here is an example about this, please refer to this for more information:
http://www.codeproject.com/Articles/14017/using-cache-to-store-Data-in-datatable-for-custom
Thanks,
Qiao Wei
Reply 2
with http://msdn.microsoft.com/en-us/library/ee581591.aspx under microsoft.Office.Server.UserProfiles
we can atleast implement next,previous under pagination. But looking for page numbers with last and 1st page buttons.
Anyways we are targeting membership provider as base for pagination, which has public abstract MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords);. after that for each page fetch the records from User profiles.
My User Profiles have around 10,000 records.
I want to display them in a SharePoint Grid ( custom) . If the count of profile were only 50 , to display them all my dev machine takes around 40 seconds with all custom processing I have.
So, I want page size say 20 , and on each next click I should get from profile DB next 20 records. I should be able to get page numbers also in the bottom. For direct navigation.
Please suggest if you have something in your mind / you done it already in past.
I am gonn rely on Microsoft.Office.Server.UserProfiles.ProfileManagerBase.GetEnumerator for this .
Any pointer ?
Reply 1
Hi hemantrhtk,
It may be not easy to use paging to user profiles, in this situation, you may consider store the profile information in a datatable, and use paging for the datatable, here is an example about this, please refer to this for more information:
http://www.codeproject.com/Articles/14017/using-cache-to-store-Data-in-datatable-for-custom
Thanks,
Qiao Wei
Reply 2
with http://msdn.microsoft.com/en-us/library/ee581591.aspx under microsoft.Office.Server.UserProfiles
we can atleast implement next,previous under pagination. But looking for page numbers with last and 1st page buttons.
Anyways we are targeting membership provider as base for pagination, which has public abstract MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords);. after that for each page fetch the records from User profiles.
Tuesday, June 12, 2012
Quickly get all files inside a spfolder recursive
Follow these steps:
- Open the spfolder in IE.
- Click on open with windows explorer.
- Use this url to map a drive in your my computer.
- Use below power-shell to extract the list:
Get-ChildItem "z:\" -Recurse | Foreach-Object
{
write-host $_.fullname;
Add-Content "C:\hemant\sometextfile.txt" $_.fullname;
}
Friday, June 1, 2012
Central Admin Content Deployment Jobs and Path by Microsoft (SharePoint 2010) VS SharePoint Content Deployment Wizard by chrisobrien
Hi
Few of our projects are using SharePoint Content Deployment Wizard by chrisobrien since old days of MOSS 2007. And others use Central Admin Content Deployment Jobs and Path by Microsoft .
Microsoft keeps on updating there out of box feature in SharePoint as usual.
I am starting this discussion for folks here to encourage using the best that could be. I would request everyone to share there views Like :--
____________________________________________________________________________________________________________
My preference : Central Admin Content Deployment Jobs and Path by Microsoft (SharePoint 2010) (Option 1)
Why :
OR
My preference : SharePoint Content Deployment Wizard by chrisobrien (Option 2)
Why :
_____________________________________________________________________________________________________________
You are welcome to share links where the tech world have already such threads available which gives this comparison handy like SharePoint Content Deployment Wizard
________________________________________________________________________________________________________________________________________________________________________________________________________________________
Are there some alternatives if we don’t want to upgrade from Microsoft SharePoint Server 2010 (14.0.4763.1000), still we don’t face below mentioned issues:
Additionally, you receive the following error message:
Value does not fall within the expected range.
References: http://support.microsoft.com/kb/2459108
In this scenario, the alternative language setting is not changed in the destination web application.
References: http://support.microsoft.com/kb/2536591
References: http://support.microsoft.com/kb/2536591
FatalError: Specified data type does not match the current data type of the property.
References: http://support.microsoft.com/kb/2598304
You change the page order by using the Site Navigation Settings page in the SharePoint site.
You perform a content deployment from this site to another site.
In this scenario, the content deployment fails, and you receive the following error message:
Cannot complete this action.
References: http://support.microsoft.com/kb/2598304
Nevertheless we can avoid many not listed anywhere using below mentioned:
Best practices for content deployment (SharePoint Server 2010)
You are invited to add the issues you kept on facing in SharePoint Content Deployment using Paths and Jobs , with links to resolution or explanations.
Few of our projects are using SharePoint Content Deployment Wizard by chrisobrien since old days of MOSS 2007. And others use Central Admin Content Deployment Jobs and Path by Microsoft .
Microsoft keeps on updating there out of box feature in SharePoint as usual.
I am starting this discussion for folks here to encourage using the best that could be. I would request everyone to share there views Like :--
____________________________________________________________________________________________________________
My preference : Central Admin Content Deployment Jobs and Path by Microsoft (SharePoint 2010) (Option 1)
Why :
- I prefer option 1 because it is something for which I can go back to Microsoft and request for support. I get almost all feature in option 1 , which option 2 gives.
OR
My preference : SharePoint Content Deployment Wizard by chrisobrien (Option 2)
Why :
- I prefer option 2 for level of customization it allows with custom API as wrapper , I can control the whole migration process . Option 1 is kind of Black box for us.
_____________________________________________________________________________________________________________
You are welcome to share links where the tech world have already such threads available which gives this comparison handy like SharePoint Content Deployment Wizard
________________________________________________________________________________________________________________________________________________________________________________________________________________________
Are there some alternatives if we don’t want to upgrade from Microsoft SharePoint Server 2010 (14.0.4763.1000), still we don’t face below mentioned issues:
- An incremental content deployment of a package in SharePoint Server 2010 fails if the following conditions are true:
- The package contains a renamed site.
- A sub-site contains a link to the renamed site.
Additionally, you receive the following error message:
Value does not fall within the expected range.
References: http://support.microsoft.com/kb/2459108
- You perform a content deployment from a source web application to a destination web application in SharePoint Foundation 2010.
- You select languages under the Alternate language section in the source web application.
- You perform an incremental content deployment.
In this scenario, the alternative language setting is not changed in the destination web application.
References: http://support.microsoft.com/kb/2536591
- Assume that you perform an incremental content deployment on a destination SharePoint Server 2010 farm. In this situation, the changes for the alternative language settings on the source farm are not reflected on the destination farm.
References: http://support.microsoft.com/kb/2536591
- When you use the Managed Metadata columns together with document sets in SharePoint Foundation 2010, you cannot perform a content deployment successfully. Additionally, you receive the following error message:
FatalError: Specified data type does not match the current data type of the property.
References: http://support.microsoft.com/kb/2598304
- You paste HTML markup into the comments field of a publishing page in a SharePoint site.
You change the page order by using the Site Navigation Settings page in the SharePoint site.
You perform a content deployment from this site to another site.
In this scenario, the content deployment fails, and you receive the following error message:
Cannot complete this action.
References: http://support.microsoft.com/kb/2598304
- One of the issue you may face with Deployment job is : How to Fix – Publishing Site Content Deployment Error – Duplicate First Name Column
- You should verify for relative links, if they are migrated correctly.
Nevertheless we can avoid many not listed anywhere using below mentioned:
Best practices for content deployment (SharePoint Server 2010)
You are invited to add the issues you kept on facing in SharePoint Content Deployment using Paths and Jobs , with links to resolution or explanations.
SPWebService.CollectSPRequestAllocationCallStacks property
There was a time when you had to restart a lot of stuff after editing registry entries like : KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings SPRequestStackTrace = 1
to get the root cause of memory leaks and all that stuff.
Now you have property SPWebService.CollectSPRequestAllocationCallStacks . This is a diagnostic setting that facilitates the debugging of leaks of SPSite and SPWeb objects. If not disposed properly these objects can hold onto large amounts of memory. By enabling this setting, traces in the trace log that report leaks will contain callstacks. However, callstack collection is expensive so this should only be enabled during a brief diagnostic period.
Powershell :
$MySvc = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$MySvc.CollectSPRequestAllocationCallStacks = $true | $false
$MySvc.Update()
to get the root cause of memory leaks and all that stuff.
Now you have property SPWebService.CollectSPRequestAllocationCallStacks . This is a diagnostic setting that facilitates the debugging of leaks of SPSite and SPWeb objects. If not disposed properly these objects can hold onto large amounts of memory. By enabling this setting, traces in the trace log that report leaks will contain callstacks. However, callstack collection is expensive so this should only be enabled during a brief diagnostic period.
Powershell :
$MySvc = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$MySvc.CollectSPRequestAllocationCallStacks = $true | $false
$MySvc.Update()
Subscribe to:
Posts (Atom)