Location of SharePoint error log

George2
  • Location of SharePoint error log George2

    I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I want to know how to find error logs when I met with something wrong?

    For example, when I am using SharePoint Designer 2007 to import a list to a web page by using Data View -> Insert Dataview, there is error message like as follows:

    The server returned a non-specific error when trying to get data from the data source.     
    Check the format and content of your query and try again. 
    If the problem persists, contact the server administrator.
    

    How to find more details logs?

  • ULS logs are generated by the server in the following folder:

    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS

    You can modify the level of logging through Central Admin e.g. more verbose or less verbose.

    It's a good idea to add a "12 hive" toolbar to the start bar so you can easily access logs and all the rest of SharePoint that resides in the 12 hive.

    There are also open source tools out there that allow you to view the logs through a user friendly interface. One example is WSS / MOSS Log File Reader, developed by Stuart Starrs.

  • "The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator." error is a SharePoint Designer error and you are unlikely to see anything in the logs about this.

    If you are only doing Data View -> Insert Dataview and getting this error, I'd be surprised. Are you doing anything else before you get the error? It could be that you are trying to insert the Dataview in a part of the page where it cannot be, such as inside another control.

  • Beside the ULS log that Jaap mentions, you will also find relevant information in the "Application" Event Log.

    You can find Event Viewer in Administrative Tools or simply write eventvwr.exe in Run.

    Theres also alot of projects on Codeplex that is helpful for managing the ULS log file. Just search for ULS on Codeplex.com

    Finally i can recommend using SPTraceView by Hristo Pavlov which gives you ULS events as they happen in real time. Especially powerfull when doing production debugging. It can also be combined with DebugView.

    EDIT: A good blog post on all the logs of SharePoint: How do i troubleshoot SharePoint? So many logs!

Tags
Related questions and answers
  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I met with strange SharePoint internal error when click some links on a web site. I have tried to use SPTraceView (http://sptraceview.codeplex.com/) to dump related logs, I find the following error logs, any ideas what is wrong? I am not sure whether in my scenario, using SPTraceView is the best way to diagnose, any...:\Windows\system32\drivers\etc\HOSTS" is denied. BTW: when using anonymous user, no such errors. thanks in advance!

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I have created a list in top level site. And I want to use the list in a child site (e.g. adding the list to a page in child site by using Page --> Add Web Parts --> Browse), but can not find the list created in parent site in this way. Any ideas how to use the list (created in parent site) in a child site? BTW: I can use the list (created in parent site) in parent site without any issues.

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2003 R2 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + IIS 6.0. I have put a simple aspx page into layout folder (the code is very simple, just redirect to another page, and I write inline script code in asp.net), here is my code, and I met with unauthorized error (403) when I select to browse the page from IIS 6.0 manager. I am not in Active Directory or Windows domain environment. I have enabled permission to anonymous users for the whole SharePoint site. Any ideas what is wrong? <%@ Page Language="C

  • I am using Microsoft Search Server 2008 (based on SharePoint Server 2007) + C# + .Net 3.5 + VSTS 2008 + ASP.Net to develop a web application which invokes Search Server 2008 Web Services when a button in the html page is pressed. I am using the following code to query content from Microsoft Search Server 2008. My question is how to display the search results from the DataSet retrieved? I did not find a very good sample from Google. protected void Button1_Click(object sender, EventArgs e) { //The string containing the keyword to use in the search string keywordString

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am using SharePoint Designer 2007 to import a list to a web page by using Data View -> Insert Dataview, I find when the list is from the same site, it is ok; I find when the list from child site, there is error like (I drag the list directly to get all the content, no additional sub-filter on the list), The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I have two sites of the same site colleciton and I want to use Data Source Library to make site A be able to use lists defined in site B. From site A, I am using "Connect to another library" to add site B. And from Data Source Library of site A, I can see lists defined in site B. My question is how to use such lists in a page of site A? I followed the guide here, http://office.microsoft.com/en-us/sharepointdesigner/HA101191181033.aspx

  • I am using SharePoint 2007 + Windows Server 2008 with SharePoint 2007's publishing portal template. I am using List Web Part with Data Sheet view. I want to know how to make a column as a URL link (i.e. show text in the cell, and can associate a link with the text in each row for the specific column), i.e. when user clicks the text in the specific column of a specific row, the user will be directed to the link associated the text.

  • I want to create a new SharePoint 2010 farm using PowerShell. I use the following command: New-SPConfigurationDatabase When issuing this command (and providing the needed parameters) I get the following error: New-SPConfigurationDatabase : This SharePoint farm currently has pending upgrades. The cmdlet New-SPConfigurationDatabase cannot be executed until the upgrade is completed. When running the "SharePoint 2010 Products Configuration Wizard" I'm able to create a farm. I have a freshly installed Windows Server 2008 R2 with SQL 2008 R2 on the same box (it's a demo box

  • I am using Windows Server 2008 R2 x64 Enterprise. How can I install SharePoint 2007 on my machine / which version should I used? I have tried SharePoint Server 2007 Enterprise SP1, but the installation failed (error message: version not compatible with OS). thanks in advance!

Data information