| Products | Versions |
|---|---|
| Spotfire Statistica | 14.0 and higher |
When Statistica Web Data Entry is having issues, how can we enable logging for better troublshooting?
Windows operating systems only.
Before performing the following steps, make a copy of the web.config file. The typical location is C:\WebStatisticaPub\DataEntry.
Perform these steps in the web.config file:
1. Add the following code directly below the existing line: <httpRuntime executionTimeout="900" apartmentThreading="true" enableVersionHeader="false" />
Note: Statistica 14.1 and higher already include data entry tracing so proceed to step 2 below.
<!-- To enable tracing, uncomment trace -->
<!--
<trace enabled="true" pageOutput="false" requestLimit="50" localOnly="false" writeToDiagnosticsTrace="true" />
-->
</system.web>
<!-- To enable tracing, uncomment system.diagnostics and sepcify the valid file name with write permission to the directory -->
<!--
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="TextWriterListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\temp\dataentry_output.log" />
</listeners>
</trace>
</system.diagnostics>
<system.codedom>
<compilers>
<compiler language="VB" extension=".vb" compilerOptions="/d:Trace=true" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
</system.codedom>
-->
2. Uncomment the trace enabled by removing the <!-- and the --> lines from above and below <trace enabled="true" pageOutput="false" requestLimit="50" localOnly="false" writeToDiagnosticsTrace="true" /> and from above <system.diagnostics> and from below </system.codedom>. The code should then look like following:
<!-- To enable tracing, uncomment trace -->
<trace enabled="true" pageOutput="false" requestLimit="50" localOnly="false" writeToDiagnosticsTrace="true" />
</system.web>
<!-- To enable tracing, uncomment system.diagnostics and sepcify the valid file name with write permission to the directory -->
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="TextWriterListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\temp\dataentry_output.log" />
</listeners>
</trace>
</system.diagnostics>
<system.codedom>
<compilers>
<compiler language="VB" extension=".vb" compilerOptions="/d:Trace=true" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
</system.codedom>
3. If desired, change the file output location, in green above
4. Open a command prompt as administrator (type CMD in Windows Search, right-click, and select "Run as administrator"
5. Enter the command press Enter: iisreset
Perform the steps to reproduce the issue. Upload the file for TIBCO Support to review
How to enable error logging for Statistica Web Data Entry?
Related troubleshooting resources:
Native logs:
https://support.tibco.com/s/article/Statistica-Error-Debug-log-licensing-report
WebStatistica or Data Entry logs:
https://support.tibco.com/s/article/How-to-capture-network-logs-for-troubleshooting-any-WebStatistica-or-Data-Entry-specific-issues-in-TIBCO-Statistica