1. sachidhanantham ramalingam
  2. PowerBuilder
  3. Friday, 26 April 2024 09:04 AM UTC


After installed PB Runtime, i have change the PB application.xml file to point "C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime" then launch our application.exe then getting below error,

Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Friday, 26 April 2024 09:16 AM UTC
  2. PowerBuilder
  3. # 1

The PFC error object ( pfc_n_cst_error ) loads a bunch of pre-defined error message strings either from a database or a file into a datawindow called "d_definedmessages". This error message tells you that the message-id "pfc_dwdberror" was not set. I assume that the messages are usually read from the database but the fact that "pfc_dwdberror" was supposed to be called here suggests that your application couldn't connect to the database so that's the actual problem here.

  1. Andreas Mykonios
  2. Friday, 26 April 2024 11:31 AM UTC
As other said search for SetPredefinedSource declaration. SetPredefinedSource allows to set as source a transaction object (where table messages should exist), or a file... In case you are using a file as source, then it should be deployed with your application!

  1. Helpful
  1. sachidhanantham ramalingam
  2. Friday, 26 April 2024 12:36 PM UTC
Thanks for the response, It is not related to user since both are different machines.

1. The machine which is not working now (it is working for PB 2019 PBD's and i.Pharmacy.exe), we generated a build in PB 2022 R3 then replaced PBD's and i.Pharmacy.exe instead of PB 2019 PBD's and i.Pharmacy.exe.

2. Installed PB Runtime and pointing runtime path in i.pharmacy.xml (which is there in same i.Pharmacy.exe path)

3. Launch the i.Pharmacy.exe then the above error occur.

4. PB IDE is not installed in that machine (same problem is not occurring in the Development machine where PB IDE is installed)

Note: Message are loading from DB not from a file.
  1. Helpful
  1. Benjamin Gaesslein
  2. Monday, 29 April 2024 08:31 AM UTC
If the messages are read from the database, the underlying issue here is most likely that the application can't connect to the DB. You need to investigate why that is.

You could build a test version for this machine that has the pfc error object turned off. That way, you'll get a messagebox with the actual DB error instead of the "Predefined message not found" messagebox. Look for of_SetError in *n_cst_appmanager. It's called with the parameter TRUE at some point, change that to FALSE instead.
  1. Helpful
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.