Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


PowerBuilder Objects

Posted on 2004-04-01
Medium Priority
Last Modified: 2013-12-26

I have a problem while opening a PowerBuilder Object. When I try to open the object it gives me a message box stating the following:

"Open of User Object u_dwa failed. It has been migrated to current version format, but must also be successfully regenerated. "

What do I need to do for this? I have tried regenerating the object. The following errors were encountered:

 ---------- Regenerate:
 ---------- Regenerating Object u_dwa
coreuo.PBL(u_dwa).u_dwa.buttonclicked.20: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.22: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.24: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.29: Error       C0194: Missing pcode block for indirect function. Possible cause: missing library from library list.
coreuo.PBL(u_dwa).u_dwa.buttonclicked.30: Error       C0194: Missing pcode block for indirect function. Possible cause: missing library from library list.
 ---------- Done Regenerating Object u_dwa
 ---------- Finished

This is a application I have received from the client and I have to add a module in the same. Please help. This is urgent

Thanks & Regards,
Question by:sumitad
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 14

Accepted Solution

sandeep_patel earned 200 total points
ID: 10730870
hi sumita,
it's very clear...the object u r opening or regenerating, referes to the variable 'nv_aw_constants'. and your application is not able to find that variable in any of the library that r there in the library path..OK

so make sure that u have received all the libraries from your client and all the libraries are included in the library list...

if it's not there then add the library to list and then try to regenerate...

other option to open the object without that supporting library or the variable is that u have to remove all the references to the variable for that
1)go to the library painter
2)select the librarary and object u_dwa
3) right click on the object and export to the file...
4) it will create the script file for that object
5) open the file in powerbuilder file editor find the text 'nv_aw_constants' and put that line in the comment by '//' and save the file
5) again go to the library the library having object 'u_dwa'....right the file the u modified...

if still there is any error it will be display while importing the file itself..if it is imported successfully just regenerate again and open will work

still if u found any problem let me know

LVL 14

Expert Comment

ID: 10730897
while commenting the line in script file take care about the loop and if else condition i mean if code is line follow

if nv_aw_constants = 'XYZ' then
      some logic
      some logic
end if

then put comment like

if nv_aw_constants = 'XYZ' then
  some logic
  some logic
end if

if it's in one line then do as follow
//if nv_aw_constants = 'XYZ' then somelogic
once u r able to import successfully and open u can remove this commented according to the requirement and logic...


Assisted Solution

berXpert earned 200 total points
ID: 10732315

Just in case you can't get the library where it's the nv_aw_constants object
try build an empty object called nv_aw_constants, mabye it just have some declarations on it and not any logic so while you compile it will display wich constants it has and you can add to you object in the way to regenerate your object.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question