Support Article

Database-TableWithNoColumns on Postgres views



After instaling Project Management Framework (PMF) on a Postgres database; while using the application users were observing a number of the tabs were showing no records although records did exist.

At the same time the below error was being seen in the logs. The issue is common to all database views.

Error Messages

2017-04-10 11:35:25,363 [ myco-exec-3] [TABTHREAD0] [ ] [ mycoPMF:01.01.01] (sKeysExposed._baseclass.Action) ERROR custo-pmf-was.myco.| testuser - Error occured while chekcing if Property Exposed for property: , object class:Data-Assignment-AllAssignmentsDatabase-TableWithNoColumns data.PC_ALLASSIGNMENTS PegaDATA Database-TableWithNoColumns data.PC_ALLASSIGNMENTS PegaDATA
at com.pegarules.generated.activity.ra_action_pxcheckclasskeysexposed_63dd2545aea76632a557315fde5e2c03.step5_1_circum0(
at com.pegarules.generated.activity.ra_action_pxcheckclasskeysexposed_63dd2545aea76632a557315fde5e2c03.step5_0_circum0_Embed_ClassKeys(
at com.pegarules.generated.activity.ra_action_pxcheckclasskeysexposed_63dd2545aea76632a557315fde5e2c03.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runRule(
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runLoadActivity(
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.loadDataPage(
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.findDataPage(
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.findDataPageInCurrentDir(
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.getDirectPage(
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getDirectPage(
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getPage(

Steps to Reproduce

The Database-TableWithNoColumns can happen when the JDBC driver is unable to identify the columns associated with a table or view.

To prove whether this was the case a standalone class was built to query the view columns outside of Pega, with:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;

public class GetPGColumns {

* @param args
public static void main(String[] args) {
GetPGColumns me = new GetPGColumns();;

public void run() {
Connection con = null;

try {
// Load the JDBC driver

// Create a connection to the database
String url = "jdbc:postgresql://DBSERVERNAME:5432/dbname";
String username = "username";
String password = "password";
String databaseName = "postgres";
String dataSchema = "pega722data";
String tableName = "pc_allassignments";

System.out.println("Connecting via JDBC");
con = DriverManager.getConnection(url, username, password);

// try to replicate the getColumns call
logit("Getting columns");
ResultSet cols;
cols = con.getMetaData().getColumns(databaseName, dataSchema , tableName, "%");
logit("Columns retrieved");

// Loop through the results and display the column name
// NOTE: If more columns are needed please refer to

System.out.println("COLUMNS FOR " + tableName + " : -");
while ( {


} catch (SQLException e) {
} catch (Exception e) {


public void logit(String logText) {
Calendar calendar = Calendar.getInstance();

String h = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));
String m = String.valueOf(calendar.get(Calendar.MINUTE));
String s = String.valueOf(calendar.get(Calendar.SECOND));
String mi = String.valueOf(calendar.get(Calendar.MILLISECOND));

Date now = calendar.getTime();

System.out.println(h+":"+m+":"+s+","+mi + " : " + logText);


The java source was first modified to include the correct credentials/details for the system.
Then this was compiled/run: -

@echo off
set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_91"
set JDBC_DRIVER=C:\JDBC\postgresql-9.4-1204.jdbc42.jar

%JAVA_HOME%\bin\javac -cp .;%JDBC_DRIVER%

%JAVA_HOME%\bin\java -cp .;%JDBC_DRIVER% GetPGColumns

Which produced the results:

16:29:9,134 : Begin
Connecting via JDBC
16:29:9,516 : Getting columns
16:29:9,589 : Columns retrieved
COLUMNS FOR pc_allassignments : -


Root Cause

The standalone test showed that the call to getColumn was failing to return any columns for the view.

This was due to the use of the
postgresql-9.4-1204.jdbc42.jar database driver.


After updating the Postgres database driver to postgresql-9.4-1212.jdbc42.jar the standalone test was successfully returns columns, and information was being displayed in the relevant tabs in PMF.

Published April 12, 2017 - Updated April 27, 2017

Have a question? Get answers now.

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