1. Kelvin Doan
  2. PowerBuilder
  3. Wednesday, 1 September 2021 15:18 PM UTC

After I migrated the legacy code (Powerbuild 7) to PB2019 successful, and ran application but I got the error message " Unable to initialize client library context" when I clicked OK button on login window.  I did setup the database connection through PowerBuilder 2019, data windows of application shows it can retrieve data from Sybase database. The environment variables was set up (PATH, DSQUERY,SYBASE). Through DSedit interface , ping to database is OK. The database connection code on application like : 

SQLCA.dbms = 'SYC SYBASE system 10 CTLIB'

SQLCA.dbparam = "release ='11.0, async=1"

SQLCA.servername = trim (ddlb_server.text)

SQLCA.database = trim (sle_database.text)

SQLCA.login = login

SQLCA.logpass = password_id

.......

CONNECT USING SQLCA.

However, during full rebuild program, I got only the warning : "Function or event 'xxxxxx ' must be declared before it can compiled ".  Do you think this caused a problem ?

Please advice. Thank you. 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 1 September 2021 15:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi Kevin;

    The typical causes of this error are: The ASE client software has not been not installed -or- the SYBASE  environment variable(s) are not set or are set incorrectly). Check your PB IDE Development machine vs the deployment PC where the error occurs for any differences or missing settings.

 Regards ... Chris
Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.