# Web interface isn't loading data

**URL:** <http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173>\
**Category:** openHistorian\
**Created:** [June 6, 2023, 9:12am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173 "2023-06-06T09:12:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andish](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/andish/32/1175_2.png) [@Andish](http://discussions.gridprotectionalliance.org/u/Andish)\
**Post date:** [June 6, 2023, 9:12am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/1 "2023-06-06T09:12:58Z")

</div>

Hello!  
I can see data coming into openHistorian manager, but I can’t see them in Web manager. Most of web page sections are empty or loading (circling arrows) all the time.  
For database I’m using SQL Server on SQL cluster, that is on other server.  
I believe that this page [http://localhost:8180/Index.cshtml](http://localhost:8180/Index.cshtml) is reading data from some local configuration, not directly from database. Nothing changes if I’m logged in as database user or my Windows ActiveDirectory user.  
Is there some permissions missing (company security rules setted up), what, where?

![image](http://discussions.gridprotectionalliance.org/uploads/default/original/2X/f/f3374ca55b04a3095892afc2555c99cf16e2d275.png)

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 6, 2023, 4:32pm UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/2 "2023-06-06T16:32:58Z")

</div>

We no longer support Internet Explorer. Try using Chrome, Edge, or Firefox.

---

<div class="post-metadata">

**Author:** ![Andish](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/andish/32/1175_2.png) [@Andish](http://discussions.gridprotectionalliance.org/u/Andish)\
**Post date:** [June 7, 2023, 8:17am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/3 "2023-06-07T08:17:25Z")

</div>

Yes, with Chrome everything seems to be working.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Andish](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/andish/32/1175_2.png) [@Andish](http://discussions.gridprotectionalliance.org/u/Andish)\
**Post date:** [June 7, 2023, 9:02am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/4 "2023-06-07T09:02:07Z")

</div>

I have one more problem… maybe I should wrote it in separate topic.  
There is error when I want to generate report: Failed to load ADO database connection settings from configuration file: Object reference not set to an instance of an object.

This is written in ErrorLog file:

Exception Source: GSF.Core  
Exception Type: System.InvalidOperationException  
Exception Message: Failed to load ADO database connection settings from configuration file: Object reference not set to an instance of an object.  
Exception Target Site: .ctor

---- Stack Trace ----  
GSF.Data.AdoDataConnection…ctor(settingsCategory As String)  
openHistorian.exe: N 00778  
openHistorian.Adapters.ReportOperationsHubClient.GetFromStats(dataContext As DataContext, start As DateTime, end As DateTime, type As ReportType, criteria As ReportCriteria, numberRecords As Int32, cancelationToken As CancellationToken)  
openHistorian.exe: N 00702  
openHistorian.Adapters.\<\>c\_\_DisplayClass12\_0.b\_\_0()  
openHistorian.exe: N 00156

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 7, 2023, 1:10pm UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/5 "2023-06-07T13:10:44Z")

</div>

You need to add an `snrSQLReportingDB` section to your openHistorian config file and add `ConnectionString` and `DataProviderString` settings to it. This is to configure it to point to a database that contains an `SNRSummary` table for the SNR report and an `UnbalanceSummary` table for the unbalance reports. I get the impression this is a feature designed to integrate with a specific external data system used at one of GPA’s customer sites so I’m not sure if it would be relevant to your installation.

---

<div class="post-metadata">

**Author:** ![Andish](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/andish/32/1175_2.png) [@Andish](http://discussions.gridprotectionalliance.org/u/Andish)\
**Post date:** [June 8, 2023, 7:29am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/6 "2023-06-08T07:29:16Z")

</div>

Ok. I already have added `ConnectionString` and `DataProviderString` settings.  
How to add correctly that `snrSQLReportingDB` section?  
And if there aren’t those tables in database, than they could be simply created?

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 8, 2023, 12:46pm UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/7 "2023-06-08T12:46:58Z")

</div>

I’m not sure how you can add the `ConnectionString` and `DataProviderString` without adding the section first. Those settings need to be added to the section or else it won’t work. So the section has to exist first.

```xml
<configuration>
  <categorizedSettings>
    <snrSQLReportingDB>
      <add name="ConnectionString" value="..." description="Configuration connection string" encrypted="false" />
      <add name="DataProviderString" value="..." description="Configuration database ADO.NET data provider assembly type creation string used when ConfigurationType=Database" encrypted="false" />
    </snrSQLReportingDB>
  </categorizedSettings>
</configuration>

```

As for the tables I mentioned, it seems we did have some SQL scripts lying around, but I didn’t know about them. Ritchie uploaded them to the Git repo yesterday, after you asked about it.

[https://github.com/GridProtectionAlliance/openHistorian/tree/master/Source/Libraries/Adapters/openHistorian.Adapters/Data](https://github.com/GridProtectionAlliance/openHistorian/tree/master/Source/Libraries/Adapters/openHistorian.Adapters/Data)

Looks like there is also an `SNR Computation` adapter you need to set up to populate the `SNRSummary` table, as well as an `Unbalanced Computation` adapter to populate the `UnbalanceSummary` table. These both appear to be action adapters, so you will need to use the `Custom Action Adapters` page in the openHistorian Manager to configure them.

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 8, 2023, 1:03pm UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/8 "2023-06-08T13:03:40Z")

</div>

FYI, I’m told that you will also need to set up some additional archives to house the aggregate data used by the reports.

---

<div class="post-metadata">

**Author:** ![xioahe](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/x/a5b964/32.png) [@xioahe](http://discussions.gridprotectionalliance.org/u/xioahe)\
**Post date:** [June 17, 2023, 3:05am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/9 "2023-06-17T03:05:29Z")

</div>

Hi, I met the same problem, the web interface isn’t loading data, too. But I have already used the latest version of Google Chrome. And I tried Firefox too. I don’t know what to do next. (My database is SQLite.)

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [June 19, 2023, 3:11pm UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/10 "2023-06-19T15:11:12Z")

</div>

Hi xioahe,

It sounds like the problem you’ve encountered is not the same, then. Can you start a new topic and post a screenshot of what you’re seeing in Google Chrome?

Thanks,  
Stephen

---

<div class="post-metadata">

**Author:** ![xioahe](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/x/a5b964/32.png) [@xioahe](http://discussions.gridprotectionalliance.org/u/xioahe)\
**Post date:** [June 20, 2023, 3:17am UTC](http://discussions.gridprotectionalliance.org/t/web-interface-isnt-loading-data/1173/11 "2023-06-20T03:17:43Z")

</div>

> [@StephenCWills](#):
>
> Stephen

Ok, thank you, Mr.Wills.
