sync over HTTP does not trigger function on postgres #1335
-
my client app uses a fallback method that uses a sync over HTTP if the TCP sync has some issues (poor connection for example).
now the issue is that with the tcp sync the entries on my postgres are correcly showing the I am afraid that the function is not triggered when the sync is performed over HTTP. I use the same setup for both TCP and HTTP sync. here some code from my server web API
and from my client (MAUI app)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Based on this example https://github.com/Mimetis/Dotmim.Sync/tree/master/Samples/HelloWebSync , can you create a simple github repository that will reproduce your error ? |
Beta Was this translation helpful? Give feedback.
-
Hi Sebastien, thanks for your quick answer, indeed thats the issue; I tried again by setting it to false either on client and server and now the trigger works fine. it was an easy fix, thanks for the time spent helping me |
Beta Was this translation helpful? Give feedback.
Hello @federicoMoroni-git
Thanks a ton for the detailed issue reproduction.
I had to make some small adjustements to make it working correctly (installing postgis, executing
SET search_path = public, postgis, sac;
and a little bit of code refactoring) but at the end I made it working correctlyAnd I think the error is coming from an option you are using :
DisableConstraintsOnApplyChanges = true
In a nutshell, this commands disable the triggering process from postgres:
Can you try using this option set to false (on the server side) ?