Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception during paring #56

Open
utech626 opened this issue Mar 11, 2019 · 3 comments
Open

Exception during paring #56

utech626 opened this issue Mar 11, 2019 · 3 comments

Comments

@utech626
Copy link

GEDCOM Source Application: RootsMagic
Exception
Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List1.get_Item(Int32 index) at System.Collections.ObjectModel.Collection1.get_Item(Int32 index)
at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadSourceRecord()
at GeneGenie.Gedcom.Parser.GedcomRecordReader.Parser_TagFound(Object sender, EventArgs e)
at GeneGenie.Gedcom.Parser.GedcomParser.GedcomParse(String data)
at GeneGenie.Gedcom.Parser.GedcomRecordReader.ReadGedcom(String gedcomFile)
at GeneGenieReader.Program.Main(String[] args) in E:\TFSSource\Demo\GeneGenieReader\GeneGenieReader\Program.cs:line 19

		// _ParseState.PreviousLevel + 3)
		else if ((!string.IsNullOrEmpty(m_parseState.PreviousTag)) && m_level == sourceRecord.Level + 3)
		{
			GedcomRecordedEvent recordedEvent = sourceRecord.EventsRecorded[sourceRecord.EventsRecorded.Count - 1];

			switch (m_tag)

Input GEDCOM:
0 @s1@ SOUR
1 ABBR GEDCOM file imported on 11 March 2019
1 TITL GEDCOM file submitted by XXXXXX, XXXXXXX. Imp
2 CONC orted on 11 March 2019.
1 _SUBQ GEDCOM file submitted by XXXX, XXXXXXX. Imp
2 CONC orted on 11 March 2019.
1 _BIBL GEDCOM file, XXXXXXX.
1 _TMPLT
2 TID 0
2 FIELD <=== ERRROR Here
3 NAME Footnote
3 VALUE GEDCOM file submitted by XXXXXXX, XXXXXXXX. Imp
4 CONC orted on 11 March 2019.
2 FIELD
3 NAME ShortFootnote
3 VALUE GEDCOM file submitted by XXXXXXX, XXXXXX. Imp
4 CONC orted on 11 March 2019.
2 FIELD
3 NAME Bibliography
3 VALUE GEDCOM file, XXXXXX.

@RyanONeill1970
Copy link
Member

Thanks for this. I can see the error, on first look it seems to be because of the non-standard tags used by Roots Magic.

I don't know if it is the _SUBQ, _BIBL, _TMPLT, TID or FIELD tags or a combination of all of them.

I need to find those tag definitions and ensure they are mapped to standard ones of the same meaning, can you elaborate on what TID and FIELD do? They are not present in the list here (http://www.gencom.org.nz/GEDCOM_tags.html).

@RyanONeill1970
Copy link
Member

I've also just found the below from (https://genealogytools.com/replacing-family-tree-maker-part-3-importing-your-ftm-tree-into-rootsmagic-7/).

– Includes custom fields in SOURce records that probably will not be read by most other systems, like _BIBL, SUBQ, _TMPLT, FIELD, TID, and VALUE. Most likely these fields are only useful for other RootsMagic users, and it would be better for them to exchange RM rather than GEDCOM files.

Still not sure whether to preserve or ignore these.

@utech626
Copy link
Author

utech626 commented Mar 12, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants