Hi Fernando,
Since I know you've been hanging around here in ProFox I thought I'd post my question here. If there's a better place, please let me know. :)
I've got a VCX that is generating errors when I run it through FB2P. It's indicating there are duplicate objects in the VCX and does not generate the VC2 file. (See log example below.) I have used the cleanup option in the class browser but it hasn't helped. I've also USEd the VCX and run both PACK and PACK MEMO. Can you advise on the best way to get past this error?
* Duplicated Object "gridiron.invgrid.invgrid" @Recno 139, (1st.Recno:17)
--
rk
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
I have occasionally seen duplicate class definitions in a VCX - in all cases I've noted the last definition is the correct one. If such a condition exists then the earlier instances need to be deleted.
When saving changes to a class seems VFP writes the changes as a complete new entry and deletes the prior entries in the VCX.
Maybe something along those lines.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Monday, 25 July 2016 11:33 PM To: profoxtech@leafe.com Subject: FoxBin2Prg conversion error question
Hi Fernando,
Since I know you've been hanging around here in ProFox I thought I'd post my question here. If there's a better place, please let me know. :)
I've got a VCX that is generating errors when I run it through FB2P. It's indicating there are duplicate objects in the VCX and does not generate the VC2 file. (See log example below.) I have used the cleanup option in the class browser but it hasn't helped. I've also USEd the VCX and run both PACK and PACK MEMO. Can you advise on the best way to get past this error?
* Duplicated Object "gridiron.invgrid.invgrid" @Recno 139, (1st.Recno:17)
--
rk
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
Thanks, Darren. I figure the cure will be to delete some rows manually from the VCX but knowing which ones should be deleted is the key.
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Darren Sent: Monday, July 25, 2016 10:00 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
I have occasionally seen duplicate class definitions in a VCX - in all cases I've noted the last definition is the correct one. If such a condition exists then the earlier instances need to be deleted.
When saving changes to a class seems VFP writes the changes as a complete new entry and deletes the prior entries in the VCX.
Maybe something along those lines.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Monday, 25 July 2016 11:33 PM To: profoxtech@leafe.com Subject: FoxBin2Prg conversion error question
Hi Fernando,
Since I know you've been hanging around here in ProFox I thought I'd post my question here. If there's a better place, please let me know. :)
I've got a VCX that is generating errors when I run it through FB2P. It's indicating there are duplicate objects in the VCX and does not generate the VC2 file. (See log example below.) I have used the cleanup option in the class browser but it hasn't helped. I've also USEd the VCX and run both PACK and PACK MEMO. Can you advise on the best way to get past this error?
* Duplicated Object "gridiron.invgrid.invgrid" @Recno 139, (1st.Recno:17)
--
rk
Easy enough to figure which are correct records.
First row of VCX ignore it.
2nd row on:
First row of class identified as:
Not empty - class, classloc, baseclass, objname Empty - parent
Resevred2 will have a numeric value which is number of rows that go to make up the class definition.
Last row of class definition will have empty - class, classloc, baseclass and parent. The objname of last record for class will be same as objname for first record.
Rows between first and last will have the Parent value populated with the Objname of the parent which of course should be within the group of records for the class definition.
Based on that you should be able to find any rogue records.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Tuesday, 26 July 2016 12:03 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
Thanks, Darren. I figure the cure will be to delete some rows manually from the VCX but knowing which ones should be deleted is the key.
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Darren Sent: Monday, July 25, 2016 10:00 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
I have occasionally seen duplicate class definitions in a VCX - in all cases I've noted the last definition is the correct one. If such a condition exists then the earlier instances need to be deleted.
When saving changes to a class seems VFP writes the changes as a complete new entry and deletes the prior entries in the VCX.
Maybe something along those lines.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Monday, 25 July 2016 11:33 PM To: profoxtech@leafe.com Subject: FoxBin2Prg conversion error question
Hi Fernando,
Since I know you've been hanging around here in ProFox I thought I'd post my question here. If there's a better place, please let me know. :)
I've got a VCX that is generating errors when I run it through FB2P. It's indicating there are duplicate objects in the VCX and does not generate the VC2 file. (See log example below.) I have used the cleanup option in the class browser but it hasn't helped. I've also USEd the VCX and run both PACK and PACK MEMO. Can you advise on the best way to get past this error?
* Duplicated Object "gridiron.invgrid.invgrid" @Recno 139, (1st.Recno:17)
--
rk
[excessive quoting removed by server]
Thanks! Very useful info!
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Darren Sent: Monday, July 25, 2016 10:16 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
Easy enough to figure which are correct records.
First row of VCX ignore it.
2nd row on:
First row of class identified as:
Not empty - class, classloc, baseclass, objname Empty - parent
Resevred2 will have a numeric value which is number of rows that go to make up the class definition.
Last row of class definition will have empty - class, classloc, baseclass and parent. The objname of last record for class will be same as objname for first record.
Rows between first and last will have the Parent value populated with the Objname of the parent which of course should be within the group of records for the class definition.
Based on that you should be able to find any rogue records.
Using the error log generated by FB2P it was pretty easy to identify the potential set of duplicate rows. I got rid of the oldest ones as suggested and the CV2 now generates. Thanks again, Darren, and kudos to Fernando!
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Monday, July 25, 2016 11:02 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
Thanks! Very useful info!
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Darren Sent: Monday, July 25, 2016 10:16 AM To: profoxtech@leafe.com Subject: RE: FoxBin2Prg conversion error question
Easy enough to figure which are correct records.
First row of VCX ignore it.
2nd row on:
First row of class identified as:
Not empty - class, classloc, baseclass, objname Empty - parent
Resevred2 will have a numeric value which is number of rows that go to make up the class definition.
Last row of class definition will have empty - class, classloc, baseclass and parent. The objname of last record for class will be same as objname for first record.
Rows between first and last will have the Parent value populated with the Objname of the parent which of course should be within the group of records for the class definition.
Based on that you should be able to find any rogue records.
[excessive quoting removed by server]
Hi Richard:
Here you can check my answer for the same problem and 2 posible solutions with pictures:
https://www.universalthread.com/DataEntryThreadView.aspx?ID=1634833
Best Regards!
2016-07-25 15:32 GMT+02:00 Richard Kaye rkaye@invaluable.com:
Hi Fernando,
Since I know you've been hanging around here in ProFox I thought I'd post my question here. If there's a better place, please let me know. :)
I've got a VCX that is generating errors when I run it through FB2P. It's indicating there are duplicate objects in the VCX and does not generate the VC2 file. (See log example below.) I have used the cleanup option in the class browser but it hasn't helped. I've also USEd the VCX and run both PACK and PACK MEMO. Can you advise on the best way to get past this error?
- Duplicated Object "gridiron.invgrid.invgrid" @Recno 139, (1st.Recno:17)
--
rk
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Hi Fernando,
Thanks for following up. Darren pointed me in the right direction and I was able to identify and remove the older records.
--
rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Fernando D. Bozzo Sent: Monday, July 25, 2016 12:56 PM To: profoxtech@leafe.com Subject: Re: FoxBin2Prg conversion error question
Hi Richard:
Here you can check my answer for the same problem and 2 posible solutions with pictures:
https://www.universalthread.com/DataEntryThreadView.aspx?ID=1634833
Best Regards!