Symptom

The same code runs fine in C/S. But when deployed with PowerServer, you get the “not recognizing PBDOM_Document” error.

Here is a screenshot of the error:

Screenshot


Environment 

PowerBuilder 2022 and its MRs

PowerServer 2022 and its MRs


Cause

PBDOM220.pbd file is missing when PBDOM functions are used.


Resolution

Use PBDOM.pbx to replace PBDOM220.pbd.

     1. Remove PBDOM220.pbd from the current application and import PBDOM.pbx to the current application’s PBL.

         For how to adding pbdom.pbx to your application, refer to the following link:

         https://docs.appeon.com/pb2022r2/application_techniques/Adding_pbdom125.html

     2. Add PBDOM.pbx as external file in PowerServer project, and redeploy it to resolve the issue.

screenshot2

BTW, if your PowerClient project encounters the same "not recognizing PBDOM_Document" error, you can also use this solution.

 

4
1