|
|
|
Forum Member
      
Group: Customers
Last Login: 7/17/2008 7:24:30 PM
GenoPro Version: 2.0.1.5
Posts: 36,
Visits: 208
|
|
My genopro file was working fine a few days ago, and then I decided to make a few changes, and now I'm getting the above error when I run my report. Error at line 582 (Code/Lang.vbs) generating 'Epirot-AlexiosI-ind00127.htm': Invalid procedure call or argument: '[string: "(null)"]' Microsoft VBScript runtime error 800A0005 The family tree is the genealogy of a Royal Family from a computer game. As I'm playing, I'm updating my genopro file. I thought it would be neat to put all the "Despots" and "Patriarchs" on their own genomaps, so I individually selected each one, and copied them to a new GenoMap. GenoPro didn't like this and gave me an error, so I deleted the copied individuals, and then deleted the GenoMap. AlexiosI-ind00127 is one of the Despots that I "moved" and then deleted. I've also been trying to update all the Place fields. I've been typing in dozens of places and think they are saved, but then they are being deleted out of the tree. Does genopro not save a Place if there is no reference to it? How do I get around this? I'm now getting that error I listed above every time I run the Report Generator. How do I fix this?
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 10:00:02 PM
GenoPro Version: 2.0.1.6
Posts: 3,427,
Visits: 14,248
|
|
Nick K (7/9/2007) I'm now getting that error I listed above every time I run the Report Generator. How do I fix this?Do you get this error when generating a report using the native "English Narrative Report"? If you get an error using a custom skin, then compare what you modified from the original skin.
|
|
|
|
|
Forum Member
      
Group: Customers
Last Login: 7/17/2008 7:24:30 PM
GenoPro Version: 2.0.1.5
Posts: 36,
Visits: 208
|
|
| It somehow had been changed to a Customized Report .. I'm not sure if I did that. Changed it back to the standard, and reran the Report Generator. Got the same error, except at line 640, not 582: Error at line 640 (Code/Lang.vbs) generating 'Epirot-AlexiosI-ind00127.htm': Invalid procedure call or argument: '[string: "(null)"]' Microsoft VBScript runtime error 800A0005
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 10:00:02 PM
GenoPro Version: 2.0.1.6
Posts: 3,427,
Visits: 14,248
|
|
You are welcome to send me a sample file causing this VBScript runtime error. I will take a look at the problem. Ron is currently away for a few days, so if the problem is too deep, you will have to wait a few days for the fix.
|
|
|
|
|
Forum Member
      
Group: Customers
Last Login: 7/17/2008 7:24:30 PM
GenoPro Version: 2.0.1.5
Posts: 36,
Visits: 208
|
|
| File emailed ... I have no problem waiting a few days for a solution. Please let me know if it was something I did that messed things up. Thanks
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 10:00:02 PM
GenoPro Version: 2.0.1.6
Posts: 3,427,
Visits: 14,248
|
|
I have received your file and able to reproduce the problem. I will post a solution in one hour.
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 10:00:02 PM
GenoPro Version: 2.0.1.6
Posts: 3,427,
Visits: 14,248
|
|
Under a rare condition, there is no family. The variable f is therefore a null object.The solution is to add the following two lines of code in yellow in file Util.vbs, at line 640: fOrdered = True If (Not Util.IsNothing(f)) Then If f.Children.OrderUnknown Then fOrdered = False ElseIf f.Children.Order.ToGenoCollection.Count = 0 Then If i.Birth.Date.ToStringNarrative = "" Then fOrdered = False Else For Each c in i.Siblings.All.ToGenoCollection If c.Birth.Date.ToStringNarrative = "" Then fOrdered = False Exit For End If Next End If End If fEndOfLine = (f.FamilyLine.ID = "" Or f.FamilyLine.ID = "NoMoreChildren") End If |
|
|
|
|
|
Forum Member
      
Group: Customers
Last Login: 7/17/2008 7:24:30 PM
GenoPro Version: 2.0.1.5
Posts: 36,
Visits: 208
|
|
| Thank you for the quick turnaround on this fix ... I'm having some difficulty implementing it though. I found files Util.VBS in the following directories: C:\Program Files\GenoPro Beta\Skins\English Narrative Report\Code (16 KB file) C:\Program Files\GenoPro\Skins\Customized English Narrative Report\Code (52 KB file) I opened both files with Notepad, and did a visual scan for the code you listed above and did not see it in either file. I then searched through both files with keywords listed in the code (eg, i.Birth, NoMoreChildren, etc) and still could not find any code that matched what you had written above. Am I looking at the right files? in the right directories? Am I opening Util.VBS will the right program (Notepad)? I currently have version 2.0.0.7 ... I can wait if you prefer to roll this fix into 2.0.0.8+. Thanks
|
|
|
|
|
|
| | |