Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

VBD functions fail to compile



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/ (at line 115)

The method aggregateCollections(String) is undefined for the type VBDService

2. ERROR in /com/pegarules/generated/ (at line 144)
long originalNumberOfRecords = serverStatistics.getOriginalNumberOfRecordsFor(collectionName);

The method getOriginalNumberOfRecordsFor(String) is undefined for the type ServerStatistics

3. ERROR in /com/pegarules/generated/ (at line 145)
long numberOfAggregatedRecords = serverStatistics.getNumberOfAggregatedRecordsFor(collectionName);

The method getNumberOfAggregatedRecordsFor(String) is undefined for the type ServerStatistics

4. ERROR in /com/pegarules/generated/ (at line 146)
long numberOfPreaggregatedRecords = serverStatistics.getNumberOfPreaggregatedRecordsFor(collectionName);

The method getNumberOfPreaggregatedRecordsFor(String) is undefined for the type ServerStatistics

Steps to Reproduce

  1. Open any VBD function.
  2. 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.


Perform the following local-change:
  2. Restart the server.
  3. Add all the nodes.

Published March 9, 2018 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us