Quantcast
Channel: MirrorSync by 360Works Latest Topics
Viewing all 492 articles
Browse latest View live

MirrorSync 3 JDBC and deletion control

$
0
0

I am using MirrorSync 3.02

My scenario has 2 teams each syncing to the same file on the server.

We will have 2 Sync configs, 1 for each team.

 

Team A Sync config using JDBC

Team A will get an offline copy of the same file that is on the server, with ALL the data.

Team A will sync ALL tables (2 way sync).

No problem there.

 

Team B Sync config using JDBC

Team B will get an offline copy of the same file that is on the server, but with only a SUBSET of the data (we will take a full offline copy and then delete many of the records).

Team B will sync a subset of the tables (2 way sync).

When team B syncs, will MirrorSync detect the missing records as deletes and the delete the associated records on the server? ( this is not what we want ).

If yes, is there a way to prevent this or a better way to handle it? XML and the customization script and disable deletes?


Getting attachments on current record

$
0
0

So all setup now on MS 3.v3 and using JDBC for the sync of 9 tables, some tables are hub > spoke the attachment tables are spoke > hub and things are pretty quick for initial sync.

and even after an exam is synced up its pretty quick with the small overhead of any new pdf's or images from the ios device being uploaded. 

only one table is using the Custom SQL qualifier  the logic is "WHERE doSync = 1" the field doSync is a calculation :

Min ( arrayDate) ≥ (Get(CurrentDate) - 7 )  and Max ( arrayDate) ≤ (Get(CurrentDate) + 7 )

seems to be pulling the correct data 

because we are only pushing images to the hub there are cases where the inspector wishes to see images or PDF from a few days ago - is there any way to initiate a sync for the record that he is viewing to pull down the pdfs and images? 

 

Bidirectional Sync for only certain records

$
0
0

Hello,

We are running FileMaker Server 14 with a database for creating job tickets and managing production in a commercial printing company.

We would like to have remote sales staff have the ability to enter new job tickets and review existing job tickets but only be able to see jobs for their clients.

We also have several very large clients that have asked for the ability to enter their own jobs into the database themselves in order to ease our sales staff's workload transcribing data from received emails. However, the customer must not be able to see jobs from our other customers.

Is it possible to setup a one way sync for data collection from the sales staff and our customers remote machines AND sync back to their machines only the records that match certain critieria? This would be:

1. SALES STAFF - Jobs where the salesperson has been assigned to the customers master record or the job tickets record.

2. CUSTOMERS - Jobs where the company name on the job ticket matches their company name.

Both would be using either filemaker pro desktop or filemaker go.

 

Jerry Bernard
DSJ Printing, Inc.

MirrorSync 3 and "FILTER WHICH RECORDS WILL BE SYNCED" rules ignored

$
0
0

I'm upgrading from MirrorSync 2 to 3 in a development environment.  I created new sync configurations and got everything up and running.  The only thing that is not working is my MirrorSync customization script where you filter which records to be synced.  I am using the same exact IF/ELSE IF statements i used in MirrorSync 2 and it's not working anymore.  All records are being synced to the offline clients.  My IF statement looks like the following.

If [ Get ( LayoutName ) = "SYNC_Customer" ]
	Enter Find Mode [ Pause: Off]
	Set Field [ Customer::Sync_Assigned ; Get ( AccountName ) ]
	Constrain Found Set []
Else If [ Get ( LayoutName ) = "SYNC_Premise" ]
	Enter Find Mode [ Pause: Off]
	Set Field [ Customer::Sync_Assigned ; Get ( AccountName ) ]
	Constrain Found Set []
Else If [ Get ( LayoutName ) = "SYNC_Device" ]
	Enter Find Mode [ Pause: Off]
	Set Field [ Customer::Sync_Assigned ; Get ( AccountName ) ]
	Constrain Found Set []
Else If [ Get ( LayoutName ) = "SYNC_DeviceImages" ]
	Enter Find Mode [ Pause: Off]
	Set Field [ Customer::Sync_Assigned ; Get ( AccountName ) ]
	Constrain Found Set []
End If

My IF statement matches up almost exactly with MirrorSync's customization script example and it no longer works in MirrorSync 3.  Is anyone else having issues with selective syncing in version 3?

Perpetual 'Establishing Database Connections...'

$
0
0

Hi,

I have been using MirrorSync for a while & all was going well. Today I made a few changes to the configuration on one of the files I am beta testing. After changes were made and scripts updated, I tried to sync. I received the spoke file showing a status of 'Waiting for a response from MirrorSync' and the server itself showing 'Establishing Database Connections'. These haven't stopped despite restarting the MirrorSync console and the entire computer where MirrorSync (and FMS) is installed. 

I have since reverted the changes I made bu there is still the same problem. What's really odd is that I have 2 configurations, only 1 was modified but now both are exhibiting the same problem!

Please can someone help!

Thank you

Lewis

Using a recovered FileMaker spoke file

$
0
0

We had a problem with the spoke file on one of our spoke systems and had to run a recovery in FileMaker.  Is it okay to use that recovered file (if it passes the recovery okay) or should we just start over again with a clean copy?  Would rather not loose any data that hasn't been synced, but if it has to be that way so be it.

Thanks,

Craig

 

 

Server to Server Migration

$
0
0

Hi,

I have MirrorSync(2.6) configuration with FileMaker Server to FileMaker Server Configuration.

I Stop the synchronisation, I stop FileMaker server spoke , I transfer on the new one...  

I have to change the ip configuration on the Spoke Server but MirrorSync ask me to install with a clean DataBase .... But it's impossible because we have a lot of Container Field ... and it will take to much time... 

What can i do to not have this problem. 

 

Thank you

Marc

Converting from MirrorSync 2 to MirrorSync 3 Error Message: You must supply a host address

$
0
0

I keep receiving the message "java.sql.SQLException: You must supply a host address" during the configuration of my solution. I select the separate mobile, enter the credentials and select the mobile file, then I get a message telling me about an older MirrorSync table that needs to be replaced. I've followed the instructions and removed all MirrorSync scripts, layout, table, occurrence and any external data source references. Select "Next" and up pops the error message. Any help would be appreciated!

Screenshot 2016-10-08 03.57.35.png


All container fields are not syncable from MirrorSync 2 to 3

$
0
0

After upgrading to MirrorSync 3 from 2, I can no longer sync container fields.  During the reconfiguration process, I get the tooltip in the uploaded image below.  The tooltip says "Neither field is writable.  This could be because they are calculation or summary fields. It could also be caused by field-level validation or custom access privileges.".  These container fields are not calc or summary fields.  There is no field level validation or custom access privileges that I know if.  They are full access, and the fields have not changed since my last MirrorSync 2 configuration.  Please help!

Screen Shot 2016-10-10 at 10.30.29 AM.png

when to use the duplicate config function of MirrorSync (MS)

$
0
0

Hello Jesse,

From a previous thread Started by OceansWest

So I wanted to test MS by setting up a duplicate configuration one using Java, the other xml. 

So this new testing database was setup --(which I used as a duplicate from an existing in use configuration...i deleted all mirror sync tables, layouts, scripts and external references before setting this up).

Step one was to modify an existing jdbc setup, reinstall new scripts, layouts external reference etc etc.

step 2 was to duplicate the test configuration and modify to using xml

When using the configuration tool, I selected "duplicate" a configuration that I just setup for my JDBC. I renamed the configuration so MS would create a new set of scripts, and proceeded with next. At the point of recognizing that i needed to paste the new script steps into my file, the program would not paste the script steps in. So it would seem that perhaps duplicate is not the best feature to use because i could not paste the new script steps in, or because maybe duplicate doesn't quite work the way I think it does. 

Can you elaborate when we can use the duplicate function? I was hoping to test the speed on 3.1 with synching an empty file, as there are items that i don't want the field users to have, and the only way is to give them an empty file or create a synch and filter 

 

Update --- so after closing the duplicate file, and than reopening the duplicated configuration, it seems that was necessary for the config engine to "re evaluate" my synch configuration. (Much like when you want to test the SQL statement on the tool, you have to finish the config, and than open it with edit, navigate to the sql setup, and than MS will recognize what your testing and provided results). Anyways after doing that I was able to past the new xml based synch config scripts into my test file (Note to anyone else doing this, you also need to change to xml for your synch and finish all the way through, mirror sync will not create the relationship needed for the primary keys, and will not find the relationship until you complete the setup and than re edit the sync, than the tool will be able to setup the proper relationships as need......FYI)

 

 

Gap in serial number

$
0
0

http://docs.360works.com/index.php/MirrorSync_advanced_topics#Configuring_MirrorSync_creates_gaps_in_serial_numbers

Hello Mirrorsync

So I understand now why mirror sync creates these gaps in the serial numbers, ( I originally asked for the clarification on why this does this). However what happens to the internal database if I go back to these serial numbers and adjust them to be the next sequential number. Or better yet, why doesn't the sync tool on setup capture what the next sequential number should be, do its testing and than write back to the database the captured value so our files do not end up with these sequential gaps?

I need you to consider what happen if a company gets a visit from the taxman during an audit and they question comes up why the gaps in invoice numbers. Where invoices deleted, is the company hiding something etc,etc. The other fact is let's face it we are not pro mirrorsync users when we set this tool up, we make mistakes, we don't understand the relationships correctly, we add something to tables we want to include. All these things we do as we are learning greatly accelerate these serial numbers within our file every time we run the sync configuration. I personally have an estimate table that only has 700 records, but serial number wise because of mirror sync is showing my next serial number as est1200.  

In my learning of the tool I recently realized that when giving my remote users a full copy of the database, even though I was not syncing my invoice table with them, the remote user did In fact have all the invoices from date of them downloading there working copy. I have now learned to make the script run on startup, checking if the device has an active connection or not, and remove all invoices from there device, but, from now on anytime I run the configuration I am also going to elevate those invoices numbers. And yes I realize that I can distribute a different file, and not include those tables in the iPad version, but now I have to maintain 2 different files if we go that route.

 

As I said I am very new to the FileMaker world, and maybe there is something I don't understand still about why this happen, and maybe it's critical to the internal database integrity. Can I change the numbers back? 

OR, if I can ask for anything this upcoming Christmas from 360works.....

 

Thanks again

Nate

Syncing two Filemaker 15 servers

$
0
0

Hi, we are going to sync two filemaker server 15 with 360works mirrorsync. does anyone have any experiance with that? how did it work?

Thanks for your help

Mikael.

 

 

Pre-populate your database

$
0
0

http://docs.360works.com/index.php/MirrorSync_advanced_topics#Can_I_pre-populate_my_offline_database_to_speed_up_initial_sync.3F

so i tried to do this part today

Quote

f you're syncing with a copy of the server file, but for file size reasons, you don't want them to download a complete copy of the database, follow these steps:

  • Duplicate your main database and delete all of the records that you don't want the offline users to download
  • Host this duplicate file on the same FileMaker Server as the main file.
  • In the configuration editor, select the option to 'Sync with a separate mobile file', and then select that duplicate file as the mobile file.

With these steps finished, when your users use the download link feature of MirrorSync, it will download the trimmed-down duplicate file instead of a copy of the main file.

ok so one thing would be nice.

  • when you are making reference to the different files and you need to be working in one vs the other, can you bold the file name and change the colour. That would be nice to distinguish between the file you need to be working in

When i deleted all the records in the new duplicate file, i also reset all the serial numbers back to default on every table but the one table i was keeping populated (products has 12000 records and images so this is what i wish to ship out with the data already intact). I had some major issues doing this with a new configuration, so i ended up doing a new configuration synching to the same file in order to be able to finish the configuration. I than went back and hit edit the config so that I could select 'sync with a separate mobile file' (remember it wouldn't let me go any further by selecting this as default). I managed to get all the way to the end, jumping between files first the desktop version, and than to the duplicate file.

Last step it was asking me to past tables into my duplicate file and to copy the script step into the duplicate. I could get a green check mark for the script steps, but i could not get the paste tables to achieve a green check mark (it remained with a triangle). The tables that where being pasted in made no sense (please see attached photo) and because i could not get it to give me a green check mark i hit finish anyways. On sync everything looks okay (except some conditional formatting that used primary keys that are now mirror sync managed and not the same value), and these new pasted tables remain at a zero records and never used. Not sure what to think about that.

 

Screen Shot 2016-10-13 at 1.17.07 PM.png

Tables are sorted by creation date, so you can see that after pasting in the mirror sync table, that I ended up pasting the other tables above it

Sync errors

$
0
0

Wondering if anyone knows what to make of these errors:

From: mirrorsync_server@360works.com

Reply-To: mirrorsync_noreply@360works.com

To: admin-sync-bfs@oda.state.or.us

Subject: Sync failed for config 'BeFoodSafe5' running on 10.0.4.57

 

 

Oct 13, 2016 12:42:36 PM com.prosc.mirror.config.server.SyncServer$3 call

SEVERE: Sync between filemaker8.oda.state.or.us / BeFoodSafe5 (FileMaker Server) and sschwab iPad BeFoodSafe( username 'developer', running Go_iPad 15.0.2 on 107.77.213.218, ping time: 476 ms, machine name: 'sschwab' )

Last sync failed: com.prosc.sync.AbortException: Sync was interrupted/canceled while waiting for client to receive HTTP message. Reason: Sync was canceled because remote user started a new sync on the same device.

 

 

Oct 13, 2016 2:48:29 PM com.prosc.mirror.config.server.SyncServer$3 call

SEVERE: Sync between filemaker8.oda.state.or.us / BeFoodSafe5 (FileMaker Server) and sschwab iPad BeFoodSafe( username 'developer', running Go_iPad 15.0.2 on 107.77.213.218, ping time: 735 ms, machine name: 'sschwab' )

Last sync failed: com.prosc.sync.AbortException: com.prosc.sync.AbortException: Sync was interrupted/canceled while waiting for client to receive HTTP message. Reason: Sync was canceled because the remote user's session expired. This probably means that their device was turned off, lost network access, or exited FileMaker.

 

Thanks for your help.

 

Sync Failed

$
0
0

Hi all (Jesse especially!)

We have gotten a few of these sync errors. Any guidance?

Oct 14, 2016 8:47:47 AM com.prosc.mirror.config.server.SyncServer$3 call
SEVERE: Sync between filemaker8.oda.state.or.us / BeFoodSafe5 (FileMaker Server) and njensen iPad BeFoodSafe( username 'developer', running Go_iPad 15.0.2 on 73.157.195.83, ping time: 339 ms, machine name: 'rrock' )
Last sync failed: com.prosc.sync.AbortException: Index: 1, Size: 1
 

From the log, seemingly related:

WARNING: Exception during sync

com.prosc.sync.AbortException: Index: 1, Size: 1

    at com.prosc.mirror.config.server.SyncServer.doSync(SyncServer.java:1805)

    at com.prosc.mirror.config.server.SyncServer.access$300(SyncServer.java:54)

    at com.prosc.mirror.config.server.SyncServer$3.call(SyncServer.java:429)

    at com.prosc.mirror.config.server.SyncServer$3.call(SyncServer.java:409)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

    at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

    at java.util.ArrayList.rangeCheck(ArrayList.java:653)

    at java.util.ArrayList.get(ArrayList.java:429)

    at com.prosc.mirror.config.server.http.FileMakerServerNode$2.createWriteResults(FileMakerServerNode.java:466)

    at com.prosc.mirror.config.server.SqlSyncHelper.insert(SqlSyncHelper.java:927)

    at com.prosc.mirror.config.server.http.FileMakerServerNode$2.insert(FileMakerServerNode.java:381)

    at com.prosc.mirror.config.server.http.FileMakerServerNode.insert(FileMakerServerNode.java:1279)

    at com.prosc.sync.NodeReference.insert(NodeReference.java:152)

    at com.prosc.sync.Engine$SyncRun$4.call(Engine.java:2487)

    at com.prosc.sync.Engine$SyncRun$4.call(Engine.java:2432)

    at com.prosc.thread.CallableWrapper.call(CallableWrapper.java:30)

    ... 4 more

 


Containers syncing

$
0
0

Hello!

One more question. We have a narrow table that has a container field. That field is on our sync layout and the rest of these records DO get sync'd, but the images do not.

Any guidance on this one?

Thanks in advance. Mark

MirrorSync3 and SSL

$
0
0

Hi all

We have discovered a possible issue with the Admin/Config app. We'd appreciate your thoughts.

We turned on SSL by checking the SSL box in the enclosed screenshot. When attempting a sync the client received "The MirrorSync URL returned an unexpected response. Check your URL, verify that the server is running properly, and try again. Address: https://mirrorsync3.oda.state.or.us/MirrorSync/sync". So we went thru the config again and found the SSL box unchecked. We cannot get the SSL checkbox to stay checked.

We did modify the MirrorSync Customization script to set the $$MIRRORSYNC_URL with https and that worked. We are however, wondering if there is something awry with our install or this specific Configuration.

We are running MirrorSync 3.1.

Thanks, Mark

SSLConfig.png

Uninstall leaves /Library/360Works/ MirrorSync Files

$
0
0

Hi,

 

For info I just ran the uninstaller that comes with MirrorSync 3.1.

I noticed many MirrorSync files remained in  /Library/360Works/.

Perhaps this is by design but I thought I'd mention it.

ft.

First Sync New Profile

$
0
0

Hi,

Does the first sync with a new problem make some kind of index of the remote client database AND the server database? If so, for a large database, is it worthwhile to ensure that the first sync with a new profile is done with a pwerful client on the same network as the server?

Thanks,

ft.

Java Versions

$
0
0

Do you have any guidance about updating Java?

I get a lot of upgrade prompts and ignore them. Is there a version we should stick on for MirrorSync?

Thanks,

ft.

Viewing all 492 articles
Browse latest View live