* Change any Fact Tag Plugin Error

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Change any Fact Tag Plugin Error

Post by Chrisv » 03 Mar 2023 23:28

I am getting an error message when I try to run the Change and Fact Tag plugin. It occurs as soon as I press the Run command. Other plugins seem to work okay (the couple I tried). Can anyone give me a suggestion of what I need to do? See below...
Thanks!

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 03 Mar 2023 23:29

Sorry, I forgot the screenshot! :oops:
Attachments
Plugin Error.PNG
Plugin Error.PNG (39.23 KiB) Viewed 1627 times

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 04 Mar 2023 13:55

Sorry about that Chris. It is something rather unusual regarding some undefined custom facts in your data.
Please use Tools > Fact Types..., tick Show Hidden on the right, then click the Fact Set column heading.
You may have to widen the window a little to achieve a screenshot similar to the one below.
The facts I'm interested in are those with Fact Set <none> and Visible <undefined> so ensure they are all displayed.

FactTypesUndefind.png
FactTypesUndefind.png (96.04 KiB) Viewed 1572 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 04 Mar 2023 17:16

That showed me what the offending item was, but I'm the one that should say sorry. I had tried out a few things earlier this week, and didn't realise the consequences. All I had to do was create a new definition for that new event and it made everything good.
Thank you!

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Change any Fact Tag Plugin Error

Post by Mark1834 » 04 Mar 2023 19:19

I was having a play with this in case there are any implications for my fact plugin.

Can undefined facts only come from an import? I couldn't see any way of creating one directly in FH, or have I missed something?
Mark Draper

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 04 Mar 2023 19:26

That is correct Mark, or by editing the GEDCOM file.

Chris I would still like to know the details of your case as it should still be OK in the plugin.
I've tested it against all the <undefined> custom facts shown in my screenshot and it is OK.
So your example is a special exception that I would like to understand.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 05 Mar 2023 01:07

Okay Mike.
I will explain more tomorrow.

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 05 Mar 2023 19:04

I was using AS to input a custom Population Register entry. In the AS Template Editor > Fact field I chose "Use custom event" and then entered the following Event name in the field: "+ ♦Pop Register:" I had forgotten to first create a Fact Type in FH to match it. It came through into FH just fine and I forgot all about it. I was attempting to get the AS Event to look like my standard Event with the + that indicates there is a Source. The "♦" is an alt code 4 symbol. I have used alt codes to highlight some of my Events in FH, and ran them through AS for almost a year without any problems. I have also never had a problem with any of the Plugins while using them, including the Change any Facts plugin. When you told me where to look for the problem, it was pretty obvious what caused it. As soon as I created a definition for it, the problem went away.
Since then, I have decided not to use the + and - to indicate if I have a source. I have found it to be redundant since all my Sources have media linked to them and I have never linked media to Events without a Source.
I hope this has helped and thanks for your assistance!

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 06 Mar 2023 11:15

Chris, I tried a copy & paste of your + ♦Pop Register custom event and Change Any Fact Tag is happy with it.
I'm unsure what you mean by an 'Alt code 4 symbol'. I imagine it is holding the Alt key while entering 0004 on the keypad.
However, that would produce an EOT control character, not a Black Diamond which is Unicode 2666.
Could you explain more precisely how ♦ is created?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 06 Mar 2023 16:21

My keyboard produces it with holding the Alt key while entering 4 on the keypad. I think we must have different keyboards because if I hold the Alt key while entering 0004 on the keypad, I get absolutely no response. I am on windows 10. This is where I got the Alt+4 from: https://altcodeunicode.com/
I will attempt to reproduce what I did on my side also.

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 06 Mar 2023 18:11

OK, I was not aware that Alt+4 did that but as explained in the website you quote it produces a Black Diamond ♦ which is Unicode 2666 and causes the Change Any Fact Tag plugin no problems.
So it is still not clear what you entered that upsets the plugin!
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 06 Mar 2023 20:44

I just attempted numerous times to replicate what may have caused it and have been unable to make it happen again. Each time, it creates an undefined Event and each time the plugin works as it should. Sorry Mike, I can't seem to reproduce it. :(
If I think of anything, I will certainly let you know.

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 06 Mar 2023 21:20

Never mind, but next time please preserve the problem data, perhaps by creating a Project Copy if you need to urgently fix the cause of the problem.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 06 Mar 2023 22:55

Hmmm, Let me look to see if I made a backup around that time, and if it might produce the error message. I'll let you know if I'm successful.

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 07 Mar 2023 12:39

I wonder if you have a Snapshot with the problem?
In a copy of the Project, use File > Backup/Restore > Revert to Snapshot... and select a date when the problem might have existed. Remember that Snapshots are taken the first time FH is opened on any day.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 07 Mar 2023 18:20

Okay, that worked. I am showing the same Plugin error message. I am not going to touch anything until you tell me what you need me to do! I do have to leave in 45 minutes... Will return in about 3 hours.

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 07 Mar 2023 18:43

Would it be helpful if I email this to you?

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 07 Mar 2023 19:00

The Tools > Fact Types..., tick Show Hidden display I described earlier would be a good first step.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 07 Mar 2023 21:17

Here you go.
Attachments
Plugin2.PNG
Plugin2.PNG (121.97 KiB) Viewed 1015 times

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 08 Mar 2023 09:36

I've changed the custom event to + ♦Pop. Register: to exactly match your screenshot, but it still won't fail.

So could you attach just the Project GEDCOM file, or if you are not comfortable with that then Email it to me via:
post at tatewise.co.uk where ' at ' = @
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Change any Fact Tag Plugin Error

Post by Chrisv » 08 Mar 2023 11:26

I will send the GEDCOM out right away. I did notice that the next Snapshot to dissapear will be the one you want, which is the Saturday, March 04, 2023 file. Is there a way to keep it from disappearing? And a question of curiosity - Is the Snapshot part of the GEDCOM, or part of FH? If part of FH, how will you get to the correct Snapshot?

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

Re: Change any Fact Tag Plugin Error

Post by tatewise » 08 Mar 2023 12:07

You must have restored the Snapshot to be the GEDCOM in your temporary Project for the plugin to fail.
So the GEDCOM file is a copy of the Snapshot file and should contain all the information I need.
The Snapshot files are held within the Project sub-folders and are simply copies of the GEDCOM file on the day the snapshot was taken.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply