Support Article
VBD functions fail to compile
SA-47048
Summary
Visual Business Director (VBD) library generation fails with the below errors.
Error Messages
(Rule-Utility-Library)GenerationError Compiler reported:
1. ERROR in /com/pegarules/generated/pxAggregateCollection_071031_SsEcwXFaAZI4rzDVVJ4MtA.java (at line 115)
pzGetVBDService(tools).aggregateCollections(collectionName);
The method aggregateCollections(String) is undefined for the type VBDService
2. ERROR in /com/pegarules/generated/pxGetServerStatistics_071031_dPKN_9uCW3sAphuLd9a6Pw.java (at line 144)
long originalNumberOfRecords = serverStatistics.getOriginalNumberOfRecordsFor(collectionName);
The method getOriginalNumberOfRecordsFor(String) is undefined for the type ServerStatistics
3. ERROR in /com/pegarules/generated/pxGetServerStatistics_071031_dPKN_9uCW3sAphuLd9a6Pw.java (at line 145)
long numberOfAggregatedRecords = serverStatistics.getNumberOfAggregatedRecordsFor(collectionName);
The method getNumberOfAggregatedRecordsFor(String) is undefined for the type ServerStatistics
4. ERROR in /com/pegarules/generated/pxGetServerStatistics_071031_dPKN_9uCW3sAphuLd9a6Pw.java (at line 146)
long numberOfPreaggregatedRecords = serverStatistics.getNumberOfPreaggregatedRecordsFor(collectionName);
The method getNumberOfPreaggregatedRecordsFor(String) is undefined for the type ServerStatistics
Steps to Reproduce
- Open any VBD function.
- Click Generate Library.
Root Cause
The compilation errors are specific to ServerStatistics, NodeStatistics, and VBDService classes in a vbd-api JAR file. Triggering the below query, the results are as follows:
SELECT DISTINCT pzjar, pzcodeset, pzcodesetversion, pzlastmodified FROM .pr_engineclasses WHERE pzjar LIKE '%vbd-api%';

In the compilation environment, multiple versions of the vbd-api JAR files exist.
In the System Management Application (SMA), load the vbd-api-7.1.8.jar file.

The incorrect JAR file was loaded as the JAR files were present in two different code sets.
Resolution
Perform the following local-change:
- Delete the DATA-ADMIN-SYSTEM-SETTINGS PEGA-ENGINE!PROPERTIES/COM.PEGA.PEGARULES.BOOTSTRAP.CODESET.VERSION.PEGAMKT_DSM/DEFAULT Dynamic System Setting (DSS).
- Restart the server.
- Add all the nodes.
Published March 9, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.