Skip to end of banner
Go to start of banner

Error while retrieving data using SQL

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Problem statement

An error occurs while retrieving data from the table under a publicĀ schema in PostgreSQL, using the SQL macro.

Error messageĀ 

org.postgresql.util.PSQLException: ERROR: relation "inventory" doesnot exist Position: 15

The above error occurs when there no table exists with the given name. But in this case, the table name with "inventory" exists but as the table is in public schema it results in the same error as the table doesn't exists.

Environment

VersionServer 6.15.4
ApplicationConfluence
App Version10.0.0
Database TypePostgreSql

Cause

When the table from which the data is retrieved, is in a public schema in PostgreSQL, it should be mentioned in the SQL select statement.

Solution

SELECT * FROM public. "inventory" ;

Result

The data from the inventory table is displayed as follows:

S. noTableData
1Test-TableYes
2Test-DataNo
  • No labels