1. Jon T
  2. PowerBuilder
  3. Monday, 27 June 2022 16:17 PM UTC

Hi,

 

I'm working on an old Powerbuilder database, version 11.5 and I'm updating it to the newest version: Version: 2021 Build: 1509.

Migration assistant was used and it looked like a success.

All historic 'Warnings' fixed

So I did a full build, deploy and then the issue happened: u_tab and ObjectSheet cant see  any objects and I'm getting an event error: 

Error Number: 22 Error Object/Control: tab_1 Error Script: constructor Error Line: 25 Error Text: Unknown object type: u_tabpg_build at line 25 in constructor event of object tab_1 of w_resp_build_search.

The object tab_1 uses this code:

userobject luo_newpage
long ll_build

this.opentab(luo_newpage,'u_tabpg_build',0)
luo_newpage.text = 'Name'

 

This code works fine in the old production version and works when you run the application in powerbuilder debugger. 

 

Has anyone got any ideas what might be causing this error?

 

Thanks

Jon

Accepted Answer
mike S Accepted Answer Pending Moderation
  1. Monday, 27 June 2022 19:55 PM UTC
  2. PowerBuilder
  3. # Permalink

sounds like some of your objects are missing from the build. Is this PFC based?

how is the build being done? single exe or pbds?  make sure that all pbds are built and copied to your runtime directory

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 27 June 2022 18:25 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jon;

   If it works OK via the IDE, then then the issue could be ...

1) PB2021 compile generates a new <AppName>.XML file. This file needs to be deployed with your PB 2022 compiled App EXE

2) Your deployment PC may be missing some PB runtime DLLs. You can get a list of these via the PB Help when searching for the keyword "runtime".

3) You did not use the PB Packager utility to create a PB runtime MSI install file or the XML file in Step#1 was not edited to reflect where you installed the PB runtime DLLs.

  Note: Check the App EXE on the PB IDE machine. It should work OK there. If not, then your compilation has an issue. Maybe you forgot to select the "Generate PBD/DLL" option in the Project Painter?

Regards ... Chris

Comment
  1. Jon T
  2. Tuesday, 28 June 2022 07:49 AM UTC
Many thanks for the responses, I'll have a look into the recommendations and let you know how it goes :)



This is PFC based and I'm currently creating a single exe using; Full Build then Deploy. Works fine when I run from the IDE, just not once deployed.





  1. Helpful
There are no comments made yet.
Jon T Accepted Answer Pending Moderation
  1. Tuesday, 28 June 2022 13:55 PM UTC
  2. PowerBuilder
  3. # 2

Thanks for both of your messages. Between the two responses I was able to solve the issue. 

Generating a single exe just wouldn't work and I was unable to see/find any issues with selected libraries.

The fix -or to solve this issue- was to 'Generate PBD', copy all PBD's into the same folder as the newly created exe, copy over images and ini file and it worked.

 

Many thanks for your help

 

:)

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 28 June 2022 14:01 PM UTC
Thanks for sharing solution!
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.