Page 1 of 1
Duplicate spouses
Posted: 05 Mar 2022 13:00
by Roz7380
I was wondering if there was a plugin (or anything in FH) where I could search for an individual has the same spouse listed multiple times.
Re: Duplicate spouses
Posted: 05 Mar 2022 15:19
by tatewise
Yes, you can do that with a custom Query, so I have moved the posting to the FH General Usage forum.
The
Rows tab filters need to compare all reasonable combinations of spouses.
So allowing for 4 spouses, 1st spouse is compared with 2nd, 3rd & 4th spouse, 2nd spouse with 3rd & 4th, and 3rd with 4th.
e.g.
Condition:
Add if...
Expression:
=IsSameItem( %INDI.~SPOU[1]>%, %INDI.~SPOU[2]>% )
Operator:
is true
then repeat for [1] v [3], [1] v [4], [2] v [3], [2] v [4], [3] v [4]
If you are unfamiliar with custom Queries see FHUG Knowledge Base
An Overview of Queries.
If still not clear enough then ask for more detailed advice.
Roz, can you let us know your FH version in the profile on the right of your posting.
Click on your user name
Roz7380, navigate to
Edit Profile, select the
Family Historian Version, then scroll down to
SUBMIT.
Re: Duplicate spouses
Posted: 05 Mar 2022 18:21
by BillH
You could also use the plugin Show Project Statistics and look for the exception Spouse link is duplicated.
Bill
Re: Duplicate spouses
Posted: 05 Mar 2022 18:41
by tatewise
I'd forgotten about that Bill, in my own plugin

Re: Duplicate spouses
Posted: 05 Mar 2022 18:49
by BillH
tatewise wrote: ↑05 Mar 2022 18:41
I'd forgotten about that Bill, in my own plugin

Re: Duplicate spouses
Posted: 05 Mar 2022 21:13
by Roz7380
i have tried running the plug in twice, and both times got the error below
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4930: attempt to get length of a boolean value (local 'arrSnapshots')
stack traceback:
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4930: in function 'UpdateStatistics'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]

in function <[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:3695>
(...tail calls...)
[C]: in function 'iuplua.MainLoop'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]

in field 'ShowDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]

in function 'GUI_MainDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4990: in main chunk
Re: Duplicate spouses
Posted: 05 Mar 2022 22:27
by tatewise
Are you running it in a Project or with a Standalone GEDCOM?
Show Project Statistics is designed to run in a Project.
Standalone GEDCOM do not have Snapshot files and that is the problem.
Re: Duplicate spouses
Posted: 14 Apr 2022 07:14
by andrewbraid
Mike
I have an instance of the same couple remarrying (I assume after first divorcing as one of them married somebody else in the interim). Does the Show Project Statistics plugin check the date of the marriages in cases where the error report explanation 'Spouse is duplicated' occurs? If not should it and not create the error report?
Re: Duplicate spouses
Posted: 14 Apr 2022 09:53
by tatewise
Andrew, the simple answer is to run the plugin and see what it reports.
That saves me having to concoct the spouse structure that you have described and possibly setting it up incorrectly.
In any case, remember that exception reports are just warnings of possible errors and cannot cater for all scenarios.
Re: Duplicate spouses
Posted: 14 Apr 2022 12:55
by andrewbraid
Mike
Thanks. I guess remarrying could well be described as an exception.
Re: Duplicate spouses
Posted: 14 Apr 2022 14:15
by davidf
andrewbraid wrote: ↑14 Apr 2022 07:14
I have an instance of the same couple remarrying (I assume after first divorcing as one of them married somebody else in the interim).
If a couple remarry, is that a completely new relationship (via new spouse tab - link to an existing record) or a restoration of the previous relationship with the addition of a new marriage event to the family record (which then reads: Married / Divorced / Married)?
How do people handle it? Does it make any difference if one or both parties marry someone else after the first divorce before remarrying the original spouse after the end of the second relationship.
Re: Duplicate spouses
Posted: 14 Apr 2022 14:44
by tatewise
Assuming one or other of the partners marries somebody else in between then it is better to create a new Spouse tab and Family record for the remarriage. Then the chronology of the multiple partnerships is reflected in the multiple tabs.
Re: Duplicate spouses
Posted: 15 Apr 2022 09:34
by davidf
But in a diagram it looks as if they were married to more "physical spouses" than they actually were and children who share both parents (but of different "marriage cycles) appear on the diagram as if they are half siblings.
Plus people tend to say things like "at the end of his life he was back married to his first wife" - who on the diagram is a physically different "box".
I suppose if you get the text scheme adequately sorted out you can read the real situation and in the end I suppose it depends what is the primary focus, the "spouse" or "the marriage". As discussed elsewhere FH is stronger on the depiction of people than of relationships?