|
|
|
|
|
|
|
|
|
|
Re: PDE-PEP006 Encoded Program Unit has an Unknown Format [message #495451 is a reply to message #193682] |
Sat, 19 February 2011 11:15 |
|
Kevin Meade
Messages: 2103 Registered: December 1999 Location: Connecticut USA
|
Senior Member |
|
|
There is more to this error than just code. I got the error and seem to have fixed it. Here is what I was doing, and how I fixed it:
1) I built a form using forms 10g version 10.1.2.0.2 on Windows 7 (yes not supported but it works well enough).
2) I moved this form over to forms 10g version 9.0.4.2.0 on Windows XP (yes even though these are a release apart, the logo that pops up when you launch forms builder says 10g).
Opening the form gives the error PDE-PEP006 and all code objects are empty and greyed out and I cannot type into any of the code windows. So I did the following:
1) I deleted all code objects (use <view> <show pl/sql only> to make this easier).
2) I recreated each code object natively in 9.0.4.2.0.
3) I cut/paste all code from the 10.1.2.0.2 version to the 9.0.4.2.0 version and compiled each individually.
4) I rebuilt all master/detail relationships.
Form now compiles. I save/open the form and ... still get the error. The form runs just fine, all features work after testing but now I am mad since there is no code in the form that is not native to the 9.0.4.2.0 environment. So I get curious and do the following:
1) I make a copy of the form called JUNK.fmb
2) I delete one item at a time from junk.fmb (took several hours) till the error goes away.
3) I save/open the form after each item delete and ... the error never goes away.
Even after the form is completely empy of items (no canvases, no blocks, no windows, no nothing), the error still persists. So now I figure there must be metadata the form keeps about itself that is getting in the way. But if after replacing all the code objects with native code, the items are all OK. maybe it is the form container that is the problem so I figure maybe I can copy all items to a new form. So I do that.
1) I open up the form (not the junk form the one with all items)
2) I start a new form
3) I copy every item from the form to this new form
4) I save the new form, open it, no error.
So this was the last trick for me, to copy every item to a new form after replacing code and rebuilding relationships. Form works as expected, no errors, I am happy as a week's worth of work is not lost.
Good luck, Kevin
[Updated on: Sat, 19 February 2011 11:18] Report message to a moderator
|
|
|
|