on 11-20-2013 4:53 AM
Hi,
I created a Calculation view consisting of 2 Attribute Views. The intent is to union a column and output the value. However when I try to validate the view I get the following error message.
The following is the script I have used
av1 = CE_JOIN_VIEW("ATTRIBUTEVIEW1",["COLUMNNAME"]);
av2 = CE_JOIN_VIEW("ATTRIBUTEVIEW2",["COLUMNNAME"]);
var_out = CE_UNION_ALL(:av1, :av2);
Message :
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: transaction rolled back by an internal error: invalid table name: Could not find table/view ATTRIBUTE_VIEW1 in schema YOGENDRA: line 4294967295 col 4294967295 (at pos 4294967295)nSet Schema DDL statement: set schema "SCHEMA_NAME"nType DDL: create type "_SYS_BIC"." PACKAGE/CALCULATION_VIEW/proc/tabletype/VAR_OUT" as table ("COLUMNNAME" VARCHAR(5))nProcedure DDL: create procedure "_SYS_BIC"." PACKAGE/CALCULATION_VIEW/proc" ( OUT var_out "_SYS_BIC"." PACKAGE/CALCULATION_VIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ************/ n BEGIN nnav2 = CE_JOIN_VIEW("ATTRIBUTEVIEW1",["COLUMNNAME"]);nav2 = CE_JOIN_VIEW("ATTRIBUTEVIEW2",["COLUMNNAME "]);nvar_out = CE_UNION_ALL(:av1, :av2);nnEND /********* End Procedure Script ************/nVersion: 77n
Both views belong to the same schema. Please let me know if I am missing any setting/configuration. Any help is appreciated.
yogi
Hi Yogesh,
Try to give whole path like as mentioned below..
av1 = CE_JOIN_VIEW("_SYS_BIC"."tmp.xxx/ATTRIBUTEVIEW1",["COLUMNNAME"]);
av2 = CE_JOIN_VIEW("_SYS_BIC"."tmp.xxx/ATTRIBUTEVIEW2",["COLUMNNAME"]);
Hope this help..
Best Regards,
Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vibhav,
I have tried the process in 2 ways.
1. While creating the calc view, I selected the default schema to be 'MYSCHEMA' in which case I would not have to provide the schema name in the script
2. I selected the default schema as SYSTEM and prefixed my view with my schema name. "MYSCHEMA"."PKG/ATTRIBUTEVIEW/"
Both of them are giving me the same error message.
yogesh
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.