Tuesday, November 19, 2013

SharePoint list view threshold : " This view cannot be displayed because it exceeds the list view threshold "


שלום חברים,
היום לקוח פנה אליי עם בעיה בספריית מסמכים, הוא בחר בתצוגה מסויימת וקיבל את ההודעה הבאה :
" אין אפשרות להציג תצוגה זו מכיוון שהיא חורגת מסף התצוגה של הרשימה (60000 פריטים) שמנהל המערכת אוכף.
כדי להציג פריטים, נסה לבחור תצוגה אחרת או ליצור תצוגה חדשה. אם אין לך הרשאות מספיקות ליצירת תצוגות עבור רשימה זו, בקש ממנהל המערכת לשנות את התצוגה כדי להתאים אותה לסף התצוגה של הרשימה.
למד אודות יצירת תצוגות עבור רשימות גדולות. "

המשמעות היא שנתוני ה-View לא מוצגים בגלל שיש מגבלה ב-WebApplication בשם "List View Threshold ",  כלומר מציין את המספר המרבי של פריטי רשימה או ספריית מסמכים שבפעולת מסד נתונים, כגון שאילתה, יכולה לעבד באותו הזמן מחוץ לחלון הזמן היומי המוגדר על ידי מנהל המערכת.
הפתרון :
1.       פתח את הניהול המרכזי של SharePoint,
2.       לך לניהול יישומים -> ניהול יישומי אינטרנט
3.       לחץ כדי לבחור את יישום האינטרנט שמארח את הרשימה שלך (למשל SharePoint - 80)
4.       ברצועת הכלים, בחר את הגדרות כלליות ובחר ויסות משאבים
5.       ואז, אתה יכול לראות את מגבלת סף תצוגת רשימת 5000 ואתה יכול לערוך את הערך שאתה רוצה.
6.       לחץ על OK כדי לשמור אותו.

סף זה בעל ערך ברירת מחדל של 5000, בנסיבות מסוימות ניתן לערוך את חריגת הסף, אבל חשוב להבין שפעולה זו עשויה להשפיע על ביצועיי החווה, בנוסף לערך האפקטיבי של מגבלות אחרות.



חשוב שתדעו ש Microsoft  מגדירים -3- רמות של מגבלות :
1.       Boundaries : גבולות הם גבולות מוחלטים שלא יכולה להיות חריגה מהן. חשוב להבין את המגבלות הללו על מנת להבטיח כי לא נעשה הנחות שגויות בעת עיצוב החווה בעתיד.
דוגמה של גבול היא גבול גודל מסמך GB 2, לא ניתן להגדיר את SharePoint Server שיאחסן מסמכים שהם גדולים יותר מ 2 GB. זה מובנה בערך מוחלט, ולא יכול להיות חריגה על ידי עיצוב.
2.       Thresholds  : ספים הם אלה שיש להם ערך ברירת מחדל שניתן לשינוי. בנסיבות מסוימות,יכולות להיות חריגות מהספים כדי להכיל סטיות בעיצוב החווה, אבל חשוב להבין ששינוי של הערך תגרור השפעה על ביצועיי החווה, בנוסף לערך האפקטיבי של מגבלות אחרות. ערך ברירת המחדל של סף מסוים יכול לחרוג רק עד ערך מרבי מוחלט.
דוגמה טובה לכך היא מגבלת גודל המסמך. כברירת מחדל, את סף גודל המסמך המוגדר כברירת מחדל מוגדר 50
MB, אך ניתן לשינוי כדי לתמוך בגבול המקסימאלי של 2GB.
3.       Supported : גבולות נתמכים מגדירים את ערך המבחן לפרמטר נתון. ערכי ברירת המחדל עבור גבולות אלה הוגדרו על ידי בדיקות, ומייצגים את המגבלות הידועות של המוצר. חריגות נתמכות עלולה לגרום לתוצאות בלתי צפויות, ירידה משמעותית בביצועים, או השפעות מזיקות אחרות. כמה מגבלות נתמכות הן פרמטרים הניתנים להגדרה שנקבעו כברירת מחדל לערך המומלץ, ואילו מגבלות נתמכות אחרות מתייחסות לפרמטרים שאינם מיוצגים על ידי ערך להגדרה.

בהצלחה !
רון נס.



============================================================================================================================================================================================================================================================


Hello Friends,
Today a client approached me with a problem in a document library, he chose a certain view and got the following message:
" This view cannot be displayed because it exceeds the list view threshold (60000 items) enforced by the administrator.
To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify the view so that it conforms to the list view threshold.
Learn about creating views for large lists. "

This means the View don't shown because there is a limitation in WebApplication called "List View Threshold", ie specifies the maximum number of items in a list or document library database operations such as query, can process at the same time outside the daily time window defined by the administrator.
The solution:
1.       Open the SharePoint Central Administration,
2.       go to Application Management --> Manage Web Applications
3.       Click to select the web application that hosts your list (eg. SharePoint - 80)
4.       At the Ribbon, select the General Settings and select Resource Throttling
5.       Then, you can see the 5000 List View Threshold limit and you can edit the value you want.
6.       Click OK to save it.

This threshold has a default value of 5000, under certain circumstances can edit the deviation threshold, but it is important to understand that this may affect my performances farm, in addition to the effective value of other limits.




It is important to know that Microsoft define -3 - levels of restrictions :
1 . Boundaries : boundaries are absolute limits can not be exceeded them. It is important to understand these limits to ensure that no false assumptions made ​​when designing future farm .
An example of a limit is a limit 2 GB document size , you can not configure SharePoint Server machine that would store documents that are larger than 2 GB. This built- in absolute value , and can not be exceeded by design .
2 . Thresholds : thresholds are those that have a default value that can change. In certain circumstances, funds may be exceptions to accommodate deviations farm design , but is important to understand that a change of the drag effect on my performances farm , in addition to the effective value of other limits . The default value can exceed a certain threshold value only to the absolute maximum .
A good example is the document size limit . By default, the document size threshold default is set to 50MB , but can be changed to support the maximum limit of 2GB .
3 . Supported : Supported limits define the value of a given parameter test . The default values ​​for these limits were defined by testing, and represent the known limitations of the product. Supported abnormalities may cause unexpected results , a significant reduction in performance, or other harmful effects . Some supported limits are configurable parameters to the default value recommended , while the other supported limits relate to parameters that are not represented by a configurable value .

Good Luck :)
Ron Ness.

Monday, November 18, 2013

SQL SERVER – Product Version and Service Pack Number

היי חברים,
שיטה נחמדה לבדיקת נתוניי SQL Server כגון : Product Version , Service Pack Number וכו'.
1.       פתחו את ה-SQL Server Management Studio
2.       פתחו דף שאילתא חדש
3.       רשמו את השאילתא הבאה :
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')




והתוצאה לפניכם (דוגמא) :







SQL Server 2012 Versions
RELEASE
PRODUCT VERSION
SQL Server 2012 Service Pack 1
11.00.3000.00
SQL Server 2012 RTM
11.00.2100.60
SQL Server 2008 R2 Versions
RELEASE
PRODUCT VERSION
SQL Server 2008 R2 Service Pack 2
10.50.4000.0
SQL Server 2008 R2 Service Pack 1
10.50.2500.0
SQL Server 2008 R2 RTM
10.50.1600.1
SQL Server 2008Versions
RELEASE
PRODUCT VERSION
SQL Server 2008 Service Pack 3
10.00.5500.00
SQL Server 2008 Service Pack 2
10.00.4000.00
SQL Server 2008 Service Pack 1
10.00.2531.00
SQL Server 2008 RTM
10.00.1600.22


בהצלחה !

רון נס.


============================================================================================================================================================================================================================================================


Hello Friends,
Nice method to test SQL Server data such as: Product Version, Service Pack Number etc..

1.     Open the SQL Server Management Studio
2.     Open a new query page
3.     Enter the following query:

SELECT SERVERPROPERTY ('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition’)

Here is the result (example):






SQL Server 2012 Versions
RELEASE
PRODUCT VERSION
SQL Server 2012 Service Pack 1
11.00.3000.00
SQL Server 2012 RTM
11.00.2100.60
SQL Server 2008 R2 Versions
RELEASE
PRODUCT VERSION
SQL Server 2008 R2 Service Pack 2
10.50.4000.0
SQL Server 2008 R2 Service Pack 1
10.50.2500.0
SQL Server 2008 R2 RTM
10.50.1600.1
SQL Server 2008Versions
RELEASE
PRODUCT VERSION
SQL Server 2008 Service Pack 3
10.00.5500.00
SQL Server 2008 Service Pack 2
10.00.4000.00
SQL Server 2008 Service Pack 1
10.00.2531.00
SQL Server 2008 RTM
10.00.1600.22


Good Luck J

Ron Ness.

Wednesday, November 13, 2013

Search Service Application : "Cannot convert 'System.Object[]' to the type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind"

שלום חברים,

היום במהלך בתקנת Search Service Application בחוות SharePoint 2013 התקבלה שגיאה ב-Console של PowerShell (אני יוצר את ה-Service Application  בעזרת PowerShell) :




PS C:\Users\User> New-SPEnterpriseSearchAdminComponent -SearchTopology $clone
-SearchServiceInstance $SearchServiceInstance
New-SPEnterpriseSearchAdminComponent: Cannot convert 'System.Object []' to the
Type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind'
Required by parameter 'SearchServiceInstance'. Specified method is not
Supported........

כדי לפתור את הבעיה יש להגדיר על איזה מכונה רץ ה-Instance של ה-Search. לי יש 3 מכונות בחווה (FE/APP/DB). בשורת קוד שהגדרתי את ה-Instance הוספתי את הפרמטר –Local או שאתם יכולים להוסיף אובייקט של השרת עליו אתם מעוניינים שירוץ ה-Instance לדוגמא:

$SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance $SearchServerName

$SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Local

לאחר הוספת הפרמטר הכל עבד והמשיך לרוץ !

בהצלחה,
רון נס!


============================================================================================================================================================================================================================================================


Hello Friends,

Today during the installation of Search Service Application in a SharePoint 2013 I get ​​an error in the PowerShell console (I create the Service Application using PowerShell):


PS C:\Users\User> New-SPEnterpriseSearchAdminComponent -SearchTopology $clone
-SearchServiceInstance $SearchServiceInstance
New-SPEnterpriseSearchAdminComponent : Cannot convert 'System.Object[]' to the
type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind'
required by parameter 'SearchServiceInstance'. Specified method is not
supported........

I solve this error, by adding  $SearchServerName variable or the –Local Parameter.
1.     $SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance $SearchServerName
2.     $SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Local
Good Luck
Ron Ness :)

Tuesday, November 5, 2013

BackUp a Content Database from SharePoint 2010 and Restore it to SharePoint 2010/2013

שלום חברים,

האם לאחרונה תכננתם שדרוג ל-SharePoint 2013 מSharePoint 2010 ויש צורך להעביר את נתוני התוכן שלכם ? או אולי אתה רוצה להעביר כמה databases של תוכן לסביבה אחרת של SharePoint 2010? במאמר זה , אנו נעבור על התהליך של גיבוי את כל הרשימות , האתרים , מאגרי המידע וכו ' שיצרתם באמצעות המוצרים שלכם ב-SharePoint 2010 ונשחזר אותם ב-SharePoint 2013 ו -SharePoint 2010 .

לפני שתתחילו:
עליכם לוודא  שיש שלושה שרתים שיש להם את אותה הסביבה :
• שרת 1 : Windows 2008R2 ; SQL Server 2008R2 ; SharePoint 2010. (השרת ממנו מגבים)
• שרת 2 : Windows 2008R2 ; SQL Server 2008R2 ; SharePoint 2010. (השרת אליו מגבים בסביבת SharePoint 2010)
• שרת 3 : Windows 2012; -SQL Server 2012; SharePoint 2013. (השרת אליו מגבים בסביבת SharePoint 2013)

גיבוי מסד הנתונים ב-SharePoint 2010 ושחזור ב-SharePoint 2013/2010 דורש חמישה צעדים :

1 . לגבות את מסד הנתונים מ- SharePoint Server 2010 באמצעות SQL Server 2008R2 :

• לחצו לחיצה ימנית על מסד הנתונים אותו תרצו לגבות , ולאחר מכן משימות, לאחר מכן backup ...
• ראו דוגמה למטה ;מסד הנתונים הוא WSS_Content :



• לחצו על כפתור Add .
הקפידו לציין את נתיב היעד כדי לקבל את קובץ WSS_Content.bak :



2 . יצירת יישום אינטרנט חדש על SharePoint 2013 / Server 2010 :

• יצירת יישום אינטרנט חדש (WebApplication)
• לאחר שיישום האינטרנט החדש נוצר בהצלחה, נווטו לניהול מרכזי -> ניהול יישומים - > ניהול מסדי הנתונים של תוכן , והסירו את מסד הנתונים של יישום האינטרנט החדש שנוצר:



• בחרו בתיבת הסימון "הסרה מסד הנתונים של התוכן" . לחצו על אישור :



• לאחר שהסרתם את מסד הנתונים של התוכן , מסד הנתונים של תוכן צריך להראות , כי " לא קיימים פריטים להצגה בתצוגה זו "



3 . לשחזר את מסד הנתונים לSharePoint 2013 / Server 2010 :

• העתיקו את קובץ WSS_Content.bak בשרת SharePoint 2010 ל-SharePoint 2013/2010 Server. בחרו את תיקיית המקור והיעד שלכם באופן הבא:



Open -SQL Server 2012/SQL שרת 2008R2 בSharePoint Server 2013/2010 , לחצו לחיצה ימנית על צומת מסד הנתונים, ובחרו לשחזר מסד נתונים :



• רשמו את שם מסד נתונים ובחרו את From device:



• אתרו את הקובץ : 


• לחצו על אישור :






• בחרו בכרטיסייה אפשרויות . הבא בחרו בתיבת סימון החלף מסד נתונים הקיימת . לחצו על אישור :



•תיבת הדו שיח שתופיע תציג כי השחזור היה מוצלח :



4 . אימות מסד הנתונים של תוכן :

הפעילו את ה- Shell של  SharePoint 2013/2010והקלידו את הפקודה:

Test-SPContentDatabase -Name <database name> -WebApplication <URL>

לדוגמה :

Test-SPContentDatabase -Name WSS_Content -WebApplication http://serverName/




5 . הוסיפו את מסד הנתונים של התוכן המשוחזר ליישום האינטרנט החדש :

הפעילו את שורת פקודת PowerShell כפי שמוצג להלן :

Mount-SPContentDatabase “Database” -WebApplication http://sitename

לדוגמה :

Mount-SPContentDatabase  WSS_Content -WebApplication http://serverName/...

• לאחר שהשדרוג הושלם בהצלחה , חזרו לניהול מרכזי -> ניהול יישומים - > ניהול מסדי הנתונים של תוכן , ותחת מסדי הנתונים של התוכן, תראו את מסד הנתונים מופיע תחת יישומי האינטרנט המיועד שלך :




כל מה שנותר הוא לבדוק את תקינות הנתונים באתרים המשוחזרים (SharePoint 2010/2013).

עבור SharePoint 2013:

עברו לאתר SharePoint 2013. כברירת מחדל, האתר שומר את ערכת הנושא של SharePoint 2010. תצטרכו לשנות את זה באופן ידני ל- 2013 . ניתן לעשות זאת על ידי ביצוע השלבים הבאים:

1 . לחצו על התחל כעת הקישור בחלק העליון של האתר :



2 . לחצו על כפתור שדרוג אוסף באתר זה:



3 . לחצו על אני מוכן :



4 . לאחר השלמת השדרוג ( פעולה זו עשויה להימשך כמה דקות ) , תיבה דו שיח תופיע כדי ליידע אתכם שהשדרוג הושלם בהצלחה :



5 . תהיו סמוכים ובטוחים שאם אתם רואים את הודעת השגיאה הבאה באתר שלך , השדרוג היה מוצלח אבל חכו , יש עוד ....






6 . לפני שמתקינים את המוצרים באתר בשרת 2013 SharePoint , יהיה עליכם לקבל את התנאים שהוצגו בהסכם הרישיון לתוכנה למשתמש קצה :






7 . ברגע שיתקבל, ההתקנה תושלם ! אתם תראו שעכשיו כל המוצרים של האתר מופעלים בתכונות של אוסף אתרים ואפשר לחזור לעסקים כרגיל !









בהצלחה !
רון נס.


============================================================================================================================================================================================================================================================


Hello Friends,

Have you recently upgraded to SharePoint 2013 from SharePoint 2010 and need to migrate your content database? Or maybe you want to move some Content databades to another SharePoint 2010 environment?  In this article, we will walk through the process of backing up all the lists, sites, databases, etc. that you created using your products in SharePoint 2010 and restore them in SharePoint 2013 and SharePoint 2010.

Before you begin:
You will need to have three servers which have the same environment:
  • Server 1: Windows 2008R2; SQL Server 2008R2; SharePoint 2010.
  • Server 2: Windows 2008R2; SQL Server 2008R2; SharePoint 2010.
  • Server 3: Windows 2012; SQL Server 2012; SharePoint 2013.
Back up your content Database in SharePoint 2010 and restore it in SharePoint 2013/2010 in just five steps:

1.    Back up your database from SharePoint 2010 Server through SQL Server 2008R2:
  • Right-click the database of the port which you want to back up, then Tasks, then Back Up...
  • See the example below; the database is WSS_Content:


  • Click the Add button.
Make sure you note the Destination path to get the WSS_Content.bak file:



2.    Create a new Web application on SharePoint 2013/2010 server:
  • Create a new Web application with any port
  • After the new Web application has been successfully created, go to Central Administration -> Application Management -> Manage content databases, and remove the current database of the newly created Web application:


  • Select the Remove content database checkbox. Click the OK and Save buttons:


  • After you have removed the content database, Content Database should show that "There are no items to show in this view," as pictured below:


3.   Restore your database to the SharePoint 2013/2010 server:
  • Copy the WSS_Content.bak file in the SharePoint 2010 Server to your SharePoint 2013/2010 Server. Select your source and destination as follows:


  • Open SQL Server 2012/SQL Server 2008R2 in SharePoint 2013/2010 Server, right-click the Database node, and select Restore Database:


  • Input the Database Name and select the From device radio button:


  • Browse to the .bak file which you copied from SharePoint 2010 Server in SharePoint 2013/2010 Server.

  • Click OK:




  • Select the Options tab. Next select the Overwrite the existing database checkbox. Click OK:


  • A dialog box will appear that states that your restore was successful:


4.    Verifying the content database:
Launch the SharePoint 2013/2010 Management Shell and type this command:
Test-SPContentDatabase -Name <database name> -WebApplication <URL>

For example:

Test-SPContentDatabase -Name WSS_Content -WebApplication http://serverName/...




5.    Add the restored content database to the new Web application:
Run the PowerShell command line as shown below:

Mount-SPContentDatabase “Database” -WebApplication http://sitename

For example:

Mount-SPContentDatabase  WSS_Content -WebApplication http://serverName/...

  • After the upgrade has completed successfully, go back to Central Administration -> Application Management -> Manage content databases, and under your content databases, you will now see the upgraded database listed under your designated Web Application:

For SharePoint 2013 :
  • Go to the SharePoint 2013 site. By default, your site will retain the SharePoint 2010 theme. You will need to manually change this for 2013. This can be done by following these steps:
1.    Click on the Start now hyperlink at the top of the site:



2.    Click on the Upgrade this Site Collection button:



3.    Click on I'm ready:



4.    Once the upgrade has completed (This may take a few minutes), a dialog box will appear to let you know that the upgrade completed successfully:



5.    Rest assured that if you see the error message below in regards to your Site Products that you were successful in completing the steps above! But wait, there's more....






6.    Before your Site Products are installed on your SharePoint 2013 Server, you will need to have accepted the terms and conditions presented in the End-User Software License Agreement:



7.    Once accepted, your installation is complete!  You will see that now all of your Site Products are activated in Site Collection Features and it's back to business as usual!







Good Luck :)
Ron Ness.