Discussion
Synechron
US
Last activity: 6 Mar 2017 6:01 EST
Unexposed properties cannot be selected in classes mapped to external tables
Hi Team
I have created an external table and i have mapped this table through "External class mapping" wizard. so my new class is created now with the properties same as the table columns.
Now i am trying to create a "report definition" in this class, when i used those properties it throws an error "Unexposed properties cannot be selected in classes mapped to external tables".
can anyone help, how to resolve this issue.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pega
IN
Hi,
Whether that table is available in PegaData schema or externally created one.
Please check the table has pxobjclass as an column.open the class and click test connectivity and see whether your mapping is correct.
Virtusa
US
creating pxobjclass and other px columns worked..
Coforge DPA
GB
Also try re-saving your Class and DB-Table instance .
Synechron
US
Yeh my table is in PegaDATA database and schema is "personaledition", i have created using pgsql. my table doesn't contain pxobjclass column. i have tested using test connectivity it is mapped to my table correctly.
I did that, but still this issue is not resolved.
Pega
IN
Hi,
Please go through platform support guide -
https://collaborate.pega.com/discussion/prpc-5x-6x-platform-support-guide-easy-find
Virtusa
US
Adding pxobjclass as an column and other px columns worked..
Cognizant
US
Hello ,
I have created a table in external database . and mapped to the same using External Table class Mapping .now when i create a report def on the class that is mapped, it is not allowing me to save ,and the error i see is
Unexposed properties cannot be selected in classes mapped to external tables".
Cognizant
US
just to add to my earlier post :-
as stated above by sarathkumark i have added all px related columns in teh table :- see below the table def
CREATE TABLE public.sae2_hr_plan
(
pxcommitdatetime timestamp without time zone,
pxsavedatetime timestamp without time zone,
pxcreatedatetime timestamp without time zone,
pxcreateopname character varying(128),
pxcreateoperator character varying(128),
pxcreatesystemid character varying(32),
pxinsname character varying(128),
pxobjclass character varying(96),
pxupdatedatetime timestamp without time zone,
pxupdateopname character varying(128),
pxupdateoperator character varying(128),
pxupdatesystemid character varying(32),
"ID" character varying NOT NULL,
"NAME" character varying,
"TYPE" character varying,
"DESCRIPTION" character varying,
"EMPLOYEE_COST" numeric,
CONSTRAINT sae2_hr_plan_pkey PRIMARY KEY ("ID" )
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.sae2_hr_plan
OWNER TO pega
Cognizant
US
Hi ,
this is working now..I see that it not required to create ant px..related objects . The only issue i had is while defining columns some how i has "" on the column names .I drooped the table and recreated with correct semantics .Now it is working as expected .
CREATE TABLE public.sae2_hr_plan
(
ID character varying NOT NULL,
NAME character varying,
TYPE character varying,
DESCRIPTION character varying,
EMPLOYEE_COST numeric,
CONSTRAINT sae2_hr_plan_pkey PRIMARY KEY (ID )
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.sae2_hr_plan
OWNER TO pega
-
Rathna Sireesha
Pegasystems Inc.
IN
Hi,
it's an issue with postgreSQL when you use pgAdmin to create table & columns with all upper case letters. Don't use all upper case letters for column names while creating tables with pgAdmin in postgreSQL.