When running the installable cloud application, the following error occurs: Session not created. Please create a session using BeginSession.
Cause:
The application is set to create sessions manually (by calling the BeginSession function), instead of automatically.
Solution:
You can resolve this error by either of the following solutions:
-
Disable the "Begin session by code" option in the PowerBuilder IDE (so sessions are automatically created). (To disable this option, open the application object painter, click Additional Properties in the application's Properties dialog; in the Application dialog, select the PowerServer tab and then select the Begin session by code option and click Apply.)
Or
-
Enable the "Begin session by code" option in the PowerBuilder IDE, and write scripts to call the BeginSession function in the application Open event. (View a code example here)