# Sync Services and remote tag provider Configuration question?

**URL:** <https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881>\
**Category:** Ignition\
**Created:** [February 8, 2022, 7:36pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881 "2022-02-08T19:36:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 8, 2022, 7:36pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/1 "2022-02-08T19:36:57Z")

</div>

I am using the Edge gateway site as a remote tag provider to the Main Gateway.  
On the main gateway I have a history tag provider tied to a SQL database. titled “master”  
On the Edge gateway I set up sync services Data Sync to sync to this “master” history provider

The storage provider on the edge gateway tags is the default “Edge Historian”. This history data doesn’t sync to my main gateway. Does this configuration seem off to anyone?

It feels it just writes to the “Edge HIstorian” vs sending the data to the “master” history provider.  
Is the issue the edge gateway being where the tags reside? Is there a configuration option I might be missing ?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 9, 2022, 4:52pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/2 "2022-02-09T16:52:11Z")

</div>

It sound like the Sync Services configuration may not be correct, or you may not have configured the Service Security on the "Main Gateway."

This thread also covers the most common issues with Sync Services setup:

> [@Please, Can you help me Edge Sync Services with SQL server](https://forum.inductiveautomation.com/t/please-can-you-help-me-edge-sync-services-with-sql-server/40020/4):
>
> You need to make a gateway network connection to your other gateway (Configure -\> Connections -\> Gateway Network) - that’s where you will enter the remote gateway’s IP. Once you’ve done that, you’ll enter that gateway’s name (not it’s IP address) in the Remote Gateway Name field. You will likely also need to configure ‘Service Security’ on the remote gateway to allow the edge gateway to store history using its history provider. [https://docs.inductiveautomation.com/display/DOC80/Gateway+Network…](https://docs.inductiveautomation.com/display/DOC80/Gateway+Network#GatewayNetwork-SettingUpaGatewayNetworkConnection)

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 9, 2022, 5:18pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/3 "2022-02-09T17:18:16Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c2a5e29261615805165b661aa3a4e51a1adec42e.png)

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 9, 2022, 5:20pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/4 "2022-02-09T17:20:34Z")

</div>

Kvane, Thanks for responding in the last reply is a diagram of what i’m trying to configure everything works but the store and forward I have listed in the box to point at the main gateway and “master” history provider that is tied to the SQL database. I also have adjusted security services for query and storage.

Does anything in my diagram seem off?

Thanks for your help I will read the document and check all my configurations again.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [February 9, 2022, 5:33pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/5 "2022-02-09T17:33:59Z")

</div>

Sound like a job for the [Tag History Splitter](https://docs.inductiveautomation.com/display/DOC80/Tag+History+Gateway+Settings#TagHistoryGatewaySettings-TagHistorySplitter). I’m not sure if this is available on edge but it should be. The idea would be to collect the data (in the edge server) though the splitter instead of directly storing to the internal DB. The first connection should be the internal DB and the second the remote tag provider.  
Note the the splitter will handle to push data to the remote history tag provider.

This means that something is missing in your diagram, the edge gateway should have a remote history provider which source is the db connection made by the main gateway to the external SQL.

The remote tag provider at the “main” has nothing to do in your diagram because you’re focusing on history instead of live values across gateways.

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 9, 2022, 5:42pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/6 "2022-02-09T17:42:18Z")

</div>

So maybe I’m understanding things wrong. Should the tags be native on the Main gateway not the edge

I was under the understanding if the connection fails the internal historian takes over and gets those historical values to the DB after the connection is reestablished. The problem is if the tag provider is the main gateway when the connection fails I lose access to the tags which is why i moved the tags to the edge.

So my current setup the site tags are on the edge gateway if there is communication fail between main and edge my plan is the internal historian takes over and does the store and forward of the historical values when the connection is reestablished.

Is it possible to have a remote history provider in EDGE? the only option i have found is the internal historian.

Thanks for your input I will look into the Tag History Splitter

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [February 9, 2022, 5:56pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/7 "2022-02-09T17:56:19Z")

</div>

> [@dzohner](#):
>
> Is it possible to have a remote history provider in EDGE

I don't know hehe.

But I think you are complicating the scenario when introducing the internal db. Store and Forward is a mechanism that uses disk memory and the internal db is something different.

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 9, 2022, 6:08pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/8 "2022-02-09T18:08:28Z")

</div>

> Should the tags be native on the Main gateway not the edge

No. The point of Sync Services is to send data from the edge of the network to a central server. The tags should be on the Edge Gateway.

> I was under the understanding if the connection fails the internal historian takes over and gets those historical values to the DB after the connection is reestablished.

This is correct. The Edge Gateway will still only see the one week of data that it can hold internally, but it will allow you to store the data in a more permanent database that can be viewed from other Ignition systems.

I may be missing something, but it seems like your setup is already correct for what you are trying to achieve.

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 9, 2022, 10:53pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/10 "2022-02-09T22:53:50Z")

</div>

Thanks for your help looks like its setting I need to figure out.

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 9, 2022, 10:54pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/11 "2022-02-09T22:54:23Z")

</div>

kvane,

Awesome thanks, this helps me focus on settings knowing the configuration is correct.  
When I figure it out I’ll post what the thing was here for anyone coming across this in the future.

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 10, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/12 "2022-02-10T16:26:43Z")

</div>

@kvane, one more question. I have verified store and forward is working by using the “database query browser” on the Main gateway tied to the SQL database.

Tag changes are written to the database when connected and when the network connection is severed and reestablished the store and forward works.

What is weird is in the edge gateway status section it just shows the local storage adding records to send but it never clears out and shows them as sent even though they are in the Database.

also that number will stay at 475 unless I uncheck the “remote history sync enabled” when I do that it updates the count by how many times I changed tag values. when I recheck “remote history sync enabled” it locks on the number displayed unless the above process is repeated.

Aside from what this status page shows the store and forward is working as I would expect.

have you seen this before?

Thanks for all your help

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd9950df00dd62e0b43127e55c9702b24e6c9cb7.png)

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 11, 2022, 12:58am UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/13 "2022-02-11T00:58:44Z")

</div>

Glad to hear things are working as expected.

There is some unique behavior in Edge with how it tracks local storage. I am not aware of the expectation for the Status page reporting. Depending on your version it might be a bug - I recall earlier 8.1.X versions had misleading metrics here on this page.

---

<div class="post-metadata">

**Author:** ![dzohner](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@dzohner](https://forum.inductiveautomation.com/u/dzohner)\
**Post date:** [February 11, 2022, 7:35pm UTC](https://forum.inductiveautomation.com/t/sync-services-and-remote-tag-provider-configuration-question/55881/14 "2022-02-11T19:35:03Z")

</div>

sounds good thanks for all your help.
