* Duplicate spouses

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
Roz7380
Gold
Posts: 11
Joined: 03 Oct 2009 16:40
Family Historian: V7

Duplicate spouses

Post by Roz7380 » 05 Mar 2022 13:00

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.

User avatar
tatewise
Megastar
Posts: 27086
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Duplicate spouses

Post by tatewise » 05 Mar 2022 15:19

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Duplicate spouses

Post by BillH » 05 Mar 2022 18:21

You could also use the plugin Show Project Statistics and look for the exception Spouse link is duplicated.

Bill

User avatar
tatewise
Megastar
Posts: 27086
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Duplicate spouses

Post by tatewise » 05 Mar 2022 18:41

I'd forgotten about that Bill, in my own plugin :oops:
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
BillH
Megastar
Posts: 2184
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Duplicate spouses

Post by BillH » 05 Mar 2022 18:49

tatewise wrote:
05 Mar 2022 18:41
I'd forgotten about that Bill, in my own plugin :oops:
:D

avatar
Roz7380
Gold
Posts: 11
Joined: 03 Oct 2009 16:40
Family Historian: V7

Re: Duplicate spouses

Post by Roz7380 » 05 Mar 2022 21:13

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..."]:3699: 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..."]:2716: in field 'ShowDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:3807: in function 'GUI_MainDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4990: in main chunk

User avatar
tatewise
Megastar
Posts: 27086
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Duplicate spouses

Post by tatewise » 05 Mar 2022 22:27

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
andrewbraid
Famous
Posts: 124
Joined: 30 Jul 2005 09:18
Family Historian: V7
Location: Leeds, Yorkshire

Re: Duplicate spouses

Post by andrewbraid » 14 Apr 2022 07:14

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?
Andrew Braid

User avatar
tatewise
Megastar
Posts: 27086
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Duplicate spouses

Post by tatewise » 14 Apr 2022 09:53

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
andrewbraid
Famous
Posts: 124
Joined: 30 Jul 2005 09:18
Family Historian: V7
Location: Leeds, Yorkshire

Re: Duplicate spouses

Post by andrewbraid » 14 Apr 2022 12:55

Mike

Thanks. I guess remarrying could well be described as an exception.
Andrew Braid

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Duplicate spouses

Post by davidf » 14 Apr 2022 14:15

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.
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

User avatar
tatewise
Megastar
Posts: 27086
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Duplicate spouses

Post by tatewise » 14 Apr 2022 14:44

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Duplicate spouses

Post by davidf » 15 Apr 2022 09:34

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?
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

Post Reply