* Change Any Fact Tag - Error being generated

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
avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Change Any Fact Tag - Error being generated

Post by quarlton » 26 Aug 2022 16:01

Hi

A friend of mine is having an issue trying to change Baptisms to Christenings
FH 6 Plugin 3.6
I ran the plug in 'Change any Fact Tag' to change my baptisms to christenings and the following error came up

Code: Select all

[string "C:\ProgramData\Calico Pie\Family Historian\..."]:634: 
Unable to open file in "ab" mode. 
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\Johis Whateley bc1563 26 August 2022 current - Copy.fh_data\Plugin Data\Change Any Fact Tag - 2022-08-26 122302.log 
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\Johis Whateley bc1563 26 August 2022 current - Copy.fh_data\Plugin Data\Change Any Fact Tag - 2022-08-26 122302.log: No such file or directory 
stack traceback:
[C]: in function 'error'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:634: in function 'OpenFile'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:3490: in function 'WriteLogFile'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:3581: in function 'WriteDataChange'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:3990: in function 'DoEditDataDetails'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:4182: in function 'DoChangeData'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:4800: in function 'doChangeData'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:4842: in function <[string "C:\ProgramData\Calico Pie\Family Historian\..."]:4842>
(tail call): ?
[C]: in function 'MainLoop'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:2462: in function 'ShowDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:5313: in function 'GUI_MainDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:5340: in main chunk
I took her gedcom and ran it using FH6 and plugin 3.6 on my machine with no problems.

Does anything jump out as to what the issue might be?
The line that stands out to me is
[string "C:\ProgramData\Calico Pie\Family Historian\..."]:634: Unable to open file in "ab" mode.

But I have no idea what it means.

Many thanks
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

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

Re: Change Any Fact Tag - Error being generated

Post by tatewise » 27 Aug 2022 12:11

The problem is the file path & name is too long for Windows to handle. i.e. more than 256 characters.
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\Johis Whateley bc1563 26 August 2022 current - Copy.fh_data\Plugin Data\Change Any Fact Tag - 2022-08-26 122302.log

Also, that is a very strange Project data folder path and normally should be:
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\Plugin Data\

i.e. Why is there sub-folder \Johis Whateley bc1563 26 August 2022 current - Copy.fh_data\ that seems to be a copy?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Re: Change Any Fact Tag - Error being generated

Post by quarlton » 27 Aug 2022 12:17

Hi Mike

Many thanks for that info.
Unfortunately my friend is out at present, but I will get her to shorten the path and see how it goes then.
It would certainly explain why it works on my machine and not hers.

Dave
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

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

Re: Change Any Fact Tag - Error being generated

Post by tatewise » 27 Aug 2022 12:35

Dave, I am more concerned about the additional Copy folder layer.
I suspect that in the Project Window it complains about that folder.
That is what really needs fixing and then the path won't be too long.

Can your friend explain where the Project GEDCOM file is located and associated folders such as Media, Charts, Snapshots.
Are they in:
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\
or
C:\Users\wilpa\Documents\Family Historian Projects\Johis Whateley bc1563 26 August 2022 current\Johis Whateley bc1563 26 August 2022 current.fh_data\Johis Whateley bc1563 26 August 2022 current - Copy.fh_data\
which is an abnormal Project folder structure. See Understanding Projects Project Structure.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Re: Change Any Fact Tag - Error being generated

Post by quarlton » 27 Aug 2022 14:24

Hi Mike

Problem solved.

What she had done was make a copy of the project but instead of putting it within Family Historian Projects, she managed to get in within the original project folder - hence the long path.

Scrapped the copy, made a copy of the project in the correct place and everything worked OK.

Thanks aagain for your help.
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

Post Reply