Error in activating Calculation view

Hi Gurus,
Please help me in resolving this issue below as I get an error when activating calculation view.
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Unable to create hierarchy view: CREATE COLUMN VIEW
          SQL: transaction rolled back by an internal error: identifier is too long: the identifer
          description" is too long. Maximum length is 127:
I have checked all content related to this error but not able to find a solution.
Please advise

Though your calc view name could be small, the 'fully qualified' calculation view name could be bigger than 127 character.
Fully Qualified name = <packagename.packagename.packagename.....>/<calc view name>
For each calc view that you activate, HANA internally creates more than one column views (based on your attributes) which are found under the _SYS_BIC schema and there it will fail if the column view name is exceeding 127 characters.
Solution: make sure the fully qualified name is not too big
Regards,
Sesh

Similar Messages

  • Getting Error while creating Calculation view.

    Hi Expert,
    I was trying to create one simple calculation view using SQL script but getting below error.
    /********* Begin Procedure Script ************/
    BEGIN
    create type var_out1 as table (ebeln varchar(10),menge decimal);
            var_out  = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );
            var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );
            var_out2 - CE_UNION_ALL (:var_out1,:var_out2);
    END
    /********* End Procedure Script ************/
    I thought , i might need to declare a table type for output table var_out1 and var_out2. I tried by declaring table like below couldn't get any success.
    create type var_out1 as table (ebeln varchar(10),menge decimal);
    create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);
    error:
    Message :
         Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: CREATE TYPE is not allowed in SQLScript: line 5 col 2 (at pos 277)nSet Schema DDL statement: set schema "SAPEH2"nType DDL: create type "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" as table ("EBELN" VARCHAR(10), "AEDAT" DATE, "MENGE" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc" ( OUT var_out "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ***********/ n BEGIN n n create type var_out1 as table (ebeln varchar(10),menge decimal);n create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);n n t   var_out  = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );n t   var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );n t   var_out2 - CE_UNION_ALL (:var_out1,:var_out2);nnEND /******** End Procedure Script ************/n
    Could you please help me to understand the cause of this?
    Thanks,
    Girdhari

    Hi Lars,
    Thanks for the reply.
    If i understood correctly , you are suggesting to create var_out1 and var_out2 in output ? If yes can you please guide me on how to do that? I tried but did not find anything suitable to declare table.
    Thanks,
    Girdhari

  • Syntax error while creating Calculation view script based

    Hi Folks,
    I'm creating Calc view based on script and drafted a simple code but I'm getting syntax error.
    Its just fetching few coloumns from two tables products and purchaseorderitem.
    /********* Begin Procedure Script ************/
    BEGIN
      var_out = select productid , category, nameid, currency, grossamount, quantity
      FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
      where P.productid = B.productid;
    END /********* End Procedure Script ************/
    Could you pls take a look and let me know what wrong I'm doing?
    Error logs are:-
    sap.hana..package.project.folder.mytest.CALCSCRIPTVIEWInternal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "democontent": line 5 col 18 (at pos 439)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."sap.hana..package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" as table ("PRODUCTID" NVARCHAR(10), "CATEGORY" NVARCHAR(2), "NAMEID" NVARCHAR(10), "CURRENCY" NVARCHAR(5), "GROSSAMOUNT" DECIMAL(15,2), "QUANITYT" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc" ( OUT var_out "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ************/ n BEGIN n t var_out = select productid , category, nameid, currency, grossamount, quantityn t FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS Bn t where P.productid = B.productid;nnEND /********* End Procedure Script ************/n

    Hi Rubane,
    I don't have EPM installed here but based on this Table User Defined Functions( Table UDF ) in HANA  you are not properly defining the source table.
    In your case missing 1) schema of EPM, 2) not using double quotes, 3) separation of package and view, 4) missing camel case on purchaseOrderItem:
    FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
    On blog:
    from "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::businessPartner" as a
    SAP_HANA_EPM_DEMO is the schema
    sap.hana.democontent.epm.data is the package
    businessPartner is the view
    Start simple... before the seletion try it out on Studio SQL.
    Regards, Fernando Da Rós

  • Error while activating the View

    Hi i am trying to activate the view, but it is resulting in this below error.. i am providing the complete details of the view i created, please help me out what is wrong in this...
    Tables added
    ZTF_CUBD
    ZTF_BTRN
    TCURC
    Join Conditions
    ZTF_BTRN     MANDT     =     ZTF_CUBD     MANDT
    ZTF_CUBD     MANDT     =     TCURC             MANDT
    ZTF_BTRN     MANDT     =     TCURC             MANDT
    ZTF_BTRN     CALCID     =     ZTF_CUBD     CALCID
    ZTF_BTRN     PSPID     =     ZTF_CUBD     PSPID
    ZTF_BTRN     PROVID     =     ZTF_CUBD     PROVID
    View Fields
    MANDT     ZTF_CUBD     MANDT
    MANDT     ZTF_BTRN     MANDT
    PDATE     ZTF_BTRN     PDATE
    WBS1     ZTF_BTRN     WBS1
    FUTYP     ZTF_BTRN     FUTYP
    PROVID     ZTF_BTRN     PROVID
    BILLAB     ZTF_CUBD     BILAB
    OBBUD     ZTF_CUBD     OBBUD
    Below is the error message i am getting...
    VIEW ZFAB_SUMBLCAL was not activated
      Check view ZFAB_SUMBLCAL (OGILIA/07/10/06/23:01)
      View allows read-only access only. Maintenance not possible.
      'Display using Data Browser only' was set automatically
      Key field ZTF_BTRN-CALCID missing
      Key field ZTF_BTRN-PSPID missing
      Key field ZTF_CUBD-FUTYP missing
      Key field ZTF_CUBD-PDATE missing
      Key field ZTF_CUBD-POSID missing
      Key field ZTF_CUBD-RTYPE missing
      All fields are evaluated as key field
      Field name MANDT not unique
      View ZFAB_SUMBLCAL is not consistent
    Some one help me out with this.....
    Thanks in advance....
    Kris...

    HI thanks for responding i made changes  as per you as below ... which ever i selected in ztf_btrn key fields exist in ztf_cubd... Can you suggest me please...
    JOin Conditions
    ZTF_BTRN     MANDT     =     ZTF_CUBD     MANDT
    ZTF_CUBD     MANDT     =     TCURC             MANDT
    ZTF_BTRN     CALCID     =     ZTF_CUBD     CALCID
    ZTF_BTRN     PSPID     =     ZTF_CUBD     PSPID
    ZTF_BTRN     PROVID     =     ZTF_CUBD     PROVID
    View Fields..
    MANDT     ZTF_CUBD     MANDT
    MANDT     ZTF_BTRN     MANDT
    PDATE     ZTF_BTRN     PDATE
    WBS1     ZTF_BTRN     WBS1
    FUTYP     ZTF_BTRN     FUTYP
    PROVID     ZTF_BTRN     PROVID
    BILLAB     ZTF_CUBD     BILAB
    OBBUD     ZTF_CUBD     OBBUD
    WAERS     TCURC     WAERS
    Below is the error message i am getting
       VIEW ZFAB_SUMBLCAL was not activated
       Check view ZFAB_SUMBLCAL (OGILIA/07/10/06/23:51)
       View allows read-only access only. Maintenance not possible.
       'Display using Data Browser only' was set automatically
       Key field ZTF_BTRN-CALCID missing
       Key field ZTF_BTRN-PSPID missing
       Key field ZTF_CUBD-FUTYP missing
       Key field ZTF_CUBD-PDATE missing
       Key field ZTF_CUBD-POSID missing
       Key field ZTF_CUBD-RTYPE missing
       All fields are evaluated as key field
       Field name MANDT not unique
       View ZFAB_SUMBLCAL is not consistent
    Thank You,
    Kris..

  • Error While Activating Analytical View

    Hello Everyone,
    I am facing a strange issue while activating Analytical view in HANA Enterprise.  I have explained my scenario in detail. Could anyone help me or guide me if something is wrong here ?
    1. HANA Enterprise Version: 1.0.63
    2. I have created an Attribute view of Customer Table as ZCUST ( CUST_ID, CUST_NAME, CUST_CITY).
       I have created an Analytical view of Sales tables as ZSALES (ZINV_ID, ZINV_ITM, CUST_ID, MAT_ID, ZINV_PRICE, CURRENCY). Here i have taken ZCUST Attribute view and joined with Sales table to use ZCUST attributes.
    3. I saved this Analytical view without any error but while activating Analytical view, I am getting below error.
    Error: The table "HANATEST"."CUST_AT" (alias: <unset>) (columnName: CUST_ID) is not joined to the central table "HANATEST"."ZINV_AT" (alias: <unset>) (columnName: INV_PRICE) - i.e. the data foundation is fragmented. Deployment is canceled.
    Exception during activation: Error during deployment: Error during deployment
    com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentException: Error during deployment
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.JoinManager.getJoinPath(JoinManager.java:215)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processColumnMapping(CubeElement.java:487)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processAttributes(CubeElement.java:357)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processDimension(CubeElement.java:606)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processDimensions(CubeElement.java:596)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.initialize(CubeElement.java:211)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeSchemaRoot.initialize(CubeSchemaRoot.java:80)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentExecutor.initialize(DeploymentExecutor.java:172)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.CubeDimensionDeploymentExecutor.initialize(CubeDimensionDeploymentExecutor.java:78)
        at com.sap.ndb.studio.sdk.resource.bi.core.impl.BIResourceController.clientSideActivate(BIResourceController.java:223)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateTypes(ResourceManager.java:974)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAllFiles(ResourceManager.java:817)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAll(ResourceManager.java:359)
        at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.activateObjects(ActivateJob.java:117)
        at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.run(ActivateJob.java:91)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Did anybody face this problem earlier ? Because i am facing this issue with any scenario that i am developing. I tried taking standard table of SAP like VBRP and MARA but still facing same issue.
    If i remove Attribute view from my scenario and just take transaction table, Then I am able to activate analytical view.
    Regards,
    Komik Shah

    Hi Pawan,
    Thanks for your response. Joining are compatible and there is no issue over there. Also, as i said earlier, I am facing same problem if i take standard table of SAP like VBRP and MARA.
    Kindly find attached screenshot for your reference.
    Do let me know if you need any other details.
    Regards,
    Komik Shah

  • "Alias Unset" Error While Activating Analytical View

    Hello Everyone,
    I am facing a strange issue while activating Analytical view in HANA Enterprise.  I have explained my scenario below. Could anyone help me or guide me if something is wrong here ?
    1. HANA Enterprise Version: 1.0.63
    2. I have created an Attribute view as ZCUST_AT( CUST_ID, CUST_NAME, CUST_CITY) from table CUST.
       I have created an Analytical view as ZSALES_ANA  on top of Sales tables ZSALES (ZINV_ID, ZINV_ITM, CUST_ID, MAT_ID, ZINV_PRICE, CURRENCY) and ZCUST_AT Attribute views.
    3. I saved this Analytical view without any error but while activating Analytical view, I am getting below error.
    Error: The table "HANATEST"."ZCUST_AT" (alias: <unset>) (columnName: CUST_ID) is not joined to the central table "HANATEST"."ZSALES" (alias: <unset>) (columnName: INV_PRICE) - i.e. the data foundation is fragmented. Deployment is canceled.
    Exception during activation: Error during deployment: Error during deployment
    com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentException: Error during deployment
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.JoinManager.getJoinPath(JoinManager.java:215)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processColumnMapping(CubeElement.java:487)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processAttributes(CubeElement.java:357)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processDimension(CubeElement.java:606)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processDimensions(CubeElement.java:596)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.initialize(CubeElement.java:211)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeSchemaRoot.initialize(CubeSchemaRoot.java:80)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentExecutor.initialize(DeploymentExecutor.java:172)
        at com.sap.ndb.studio.sdk.resource.deployment.bi.CubeDimensionDeploymentExecutor.initialize(CubeDimensionDeploymentExecutor.java:78)
        at com.sap.ndb.studio.sdk.resource.bi.core.impl.BIResourceController.clientSideActivate(BIResourceController.java:223)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateTypes(ResourceManager.java:974)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAllFiles(ResourceManager.java:817)
        at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAll(ResourceManager.java:359)
        at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.activateObjects(ActivateJob.java:117)
        at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.run(ActivateJob.java:91)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Did anybody face this problem earlier ? Because i am facing this issue with any scenario that i am developing. I tried taking standard table of SAP like VBRP and MARA but still facing same issue.
    If i remove Attribute view from my scenario and just take transaction table, Then I am able to activate analytical view.
    Regards,
    Komik Shah

    Hi Pawan,
    Thanks for your response. Joining are compatible and there is no issue over there. Also, as i said earlier, I am facing same problem if i take standard table of SAP like VBRP and MARA.
    Kindly find attached screenshot for your reference.
    Do let me know if you need any other details.
    Regards,
    Komik Shah

  • Invalid column Index error - While consuming Calculation view via Native SQL

    Hi Experts,
    I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
    Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
    Thanks in Advance,
    Suma
    REPORT ZTEST_HANA2.
    *Report to consume Calculation view (script based) from ABAP
    PARAMETERS: ip_docnr type BELNR_D,
                ip_gjahr type GJAHR,
                ip_bukrs type BUKRS,
                ip_blgr type FAGL_RLDNR.
       DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
              LO_CONN     TYPE REF TO CL_SQL_CONNECTION,
              LO_RESULT   TYPE REF TO CL_SQL_RESULT_SET,
              LV_SQL      TYPE STRING,
              LR_DATA     TYPE REF TO DATA.
        DATA: LX_SQL_EXC           TYPE REF TO CX_SQL_EXCEPTION,
              LT_SEPMAPPS_CLSDINV  TYPE TABLE OF SEPMAPPS_CLSDINV,
              LV_TEXT              TYPE STRING.
        TRY.
    lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
                     |WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
                      |'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
                      |,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
                      |,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
             LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
             "Create an SQL statement to be executed via the connection
              LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
             "Execute the native SQL query
             LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
             "Read the result into the internal table lt_sepmapps_clsdinv
             GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
             LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
             LO_RESULT->NEXT_PACKAGE( ).
             LO_RESULT->CLOSE( ).
             LO_CONN->CLOSE( ).
        CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
             LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
             MESSAGE LV_TEXT TYPE 'E'.
        ENDTRY.

    Hi Suma,
    Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
    Check there if the parameters case is working properly... Is it really this confusing options:
    p_GJAHR
    S_BUKRS
    p_base_ledger
    Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
    Regards, Fernando Da Rós

  • Privilege error to validate calculation view

    Hi  Experts!!
    I have a problem validating a calculation view, with errors privileges _SYS_REPO
    Displaying _SYS_REPO privileges if any, if I enter a more shows Error, also privileges.
    Does anyone know why this happens and how to fix it.
    thanks for your help
    Rogelio..

    Thanks, I run this query I entering the scheme _SYS_BIC
    I made this yesterday and tried to execute a view and if it did, the problem is that today tried to execute a view and I appeared before the same mistake.
    When trying to enter the query to issue permits but does correctly when executing a view returns me the same error.
    Regards
    Rogelio

  • SAP HANA: Error while activating Graphical Calculation Views

    Hello,
    I am receiving the below error while activating a Graphical Calculation View.
    I am getting this error lately. Not sure what is causing this because the calculation views worked just fine before.
    It is failing at the Repository Activation step with the Activation ID 2146.
    It says - Repository: Revalidation failed for at least one object.
    MDXRuntime: Internal deployment of object failed: Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Could not create repository entry for scenario (34053)nnprinting XML <?xml version="1.0" encoding="UTF-8" standalone="no"?><cubeSchema defaultLanguage="EN" defaultSchema="_SYS_BIC" operation="createCalculationScenario" version="3"><calculationScenario name="sflight/GC_AGENCY_REVENUE" schema="_SYS_BIC"><dataSources><tableDataSource name="SBOOK" schema="SFLIGHT" table="SBOOK"><attributes><allAttribute /></attributes></tableDataSource><tableDataSource name="STRAVELAG" schema="SFLIGHT" table="STRAVELAG"><attributes><allAttribute /></attributes></tableDataSource></dataSources><calculationViews><join name="Join_1" type="inner"><viewAttributes><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="MANDT" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="AGENCYNUM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="FORCURAM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="LOCCURAM" /><viewAttribute ignoreFromInputsFlag="false" isVisible="true" name="NAME" /></viewAttributes><inputs><input name="SBOOK"><mapping source="MANDT" target="MANDT"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="FORCURAM" target="FORCURAM"/><mapping source="LOCCURAM" target="LOCCURAM"/></input><input name="STRAVELAG"><mapping source="MANDT" target="MANDT"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="NAME" target="NAME"/></input></inputs><joinAttributes><joinAttribute excludeFlag="false" name="MANDT" /><joinAttribute excludeFlag="false" name="AGENCYNUM" /></joinAttributes></join><aggregation name="finalAggregation" defaultViewFlag="true"><inputs><input name="Join_1"><mapping source="NAME" target="NAME"/><mapping source="AGENCYNUM" target="AGENCYNUM"/><mapping source="MANDT" target="MANDT"/><mapping source="LOCCURAM" target="LOCCURAM"/><mapping source="FORCURAM" target="FORCURAM"/></input></inputs><viewAttributes><viewAttribute name="NAME"/><viewAttribute name="AGENCYNUM"/><viewAttribute name="MANDT"/></viewAttributes><keyfigures><keyfigure name="LOCCURAM" aggregationType="sum"/><keyfigure name="FORCURAM" aggregationType="sum"/><keyfigure name="row.count" datatype="int" isVisible="false" aggregationType="count"/></keyfigures><calculationNodeHints countStarAttribute="row.count"/></aggregation></calculationViews></calculationScenario></cubeSchema>nVersion: 33n
    I am using the SFLIGHT schema which is provided by SAP.
    Any pointer is appreciated.

    Hi Murali
    I met the exactly same issue when I try to activate a graphical calculation views.
    I created a new user in HANA db,  then create a simple graphical calculation view(just from one table from this user). It doesn't work. All attribute views work fine. There's no related column view under _sys_bic.
    HANA database version is 1.00.31 runs on HP DL580 512GB. And here's the error message -
    "MDXRuntime: Internal deployment of object failed: Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Could not create repository entry for scenario (34053)nnprinting XML <?xml version="1.0" encoding="UTF-8" standalone="no"?><cubeSchema defaultLanguage="EN" defaultSchema="_SYS_BIC" operation="createCalculationScenario" version="3"><calculationScenario name="co-pc-river/CALC_TEST1" schema="_SYS_BIC"><dataSources><tableDataSource name="JEST" schema="GLR" table="JEST"><attributes><allAttribute /></attributes></tableDataSource></dataSources><calculationViews><projection name="finalProjection" defaultViewFlag="true"><inputs><input name="JEST"><mapping source="MANDT" target="MANDT"/><mapping source="OBJNR" target="OBJNR"/><mapping source="STAT" target="STAT"/><mapping source="INACT" target="INACT"/></input></inputs><viewAttributes><viewAttribute name="MANDT"/><viewAttribute name="OBJNR"/><viewAttribute name="STAT"/><viewAttribute name="INACT"/></viewAttributes></projection></calculationViews></calculationScenario></cubeSchema>nVersion: 64n"
    Best Regards
    Mao Mingqi

  • Error in activating Sqlscript Calculation view - Data type mismatch

    Hi All,
    I am trying to create a Calculation view using sql script. When I try to activate the calculation view I get the below error., Could you please help.
    Error
    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: column store error: [34011] failed to save calculation scenario : The following errors occured: Inconsistent calculation model (34011)nDetails (Errors):n- CalculationNode (_ELECTION_ANALYTICAL_VIEW) -> attributes -> attribute (VOTE):
    Datatype int of VOTE does not match to datatype fixed18.0(9) in datasource.
    nnnSet Schema DDL statement: set schema "_SYS_BIC"nType DDL: create type "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" as table ("VOTE" INTEGER, "NAME_1" VARCHAR(250), "NAME_4" VARCHAR(250))nProcedure DDL: create procedure "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc" ( OUT var_out "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN n n election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);n n var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);nnnnEND /********* End Procedure Script ************/n
    SQL Script
    /********* Begin Procedure Script ************/
    BEGIN
    election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);
    var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);
    END /********* End Procedure Script ************/

    Hi Logesh,
    You have to use at least one aggregation while using CE_OLAP_VIEW. You can not use the same with out aggregation of at least on of the available measures .
    page 96 of SQL Script reference says
    Note you must have at least one <aggregation_exp> in the attributes.
    where
    <aggregate_exp> ::= <aggregate_func>(<aggregate_column> [AS <column_alias>])
    Specifies the required aggregation expression for the key figure.
    <aggregate_func> ::= COUNT | SUM | MIN | MAX
    Specifies the aggregation function to use. Supported aggregation functions are:
    ●count("column")
    ●sum("column")
    ●min("column")
    ●max("column")
    Sreehari

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Out of memory Error while querying SQL Script based Calculation View

    Hi All,
    I wanted to test the performance of Graphical and SQL Script based Calculation views.
    Created Graphical (CA_GRPH) and SQL Script (CA_SQL) Calculation views.
    Analytic View (AN_GRPH) for both Calculation views are the same which is Graphical based (90 Attributes and 5 Measures)
    In Analytic View data foundation I have a Fact table which has 1.5 Billion records and 9 Dimension Tables –collectively 500 million records (7 Attribute Views). 9 Referential joins with cardinality N:1 and 1 Referential join with cardinality N:N.
    I wanted to keep (CA_GRPH) and (CA_SQL) as a base Calculation views and leverage those to create various calculation views (Will be creating different Calc views for respective Business segments)
    In order to test this I have created below calc views on top of base calc views.
    Graphical Based: Created (CA_GRAPH_XYZ) by having CA_GRPH in projection with 30 Calculated Columns. – This retrieves data in 13 secs
    SQL Script Based: Created (CA_GRPH_ABC) by having CA_SQL in projection view with 30 calculated columns – This errors out after 1.50 mins.
    Could not execute 'SELECT "COLUMN_A","COLUMN _B"," COLUMN _C"," COLUMN _D", SUM("COLUMN _REVENUE") AS ...' in 1:50.480 minutes .
    SAP DBTech JDBC: [2048]: column store error:  [2048] column store error: search table error: [1000002] Error executing physical plan: exception 1000002:
    ltt/impl/memory.cpp:63
    Out of memory ; $size$=1507711; $name$=ihm; $type$=pool; $inuse_count$=170104; $allocated_size$=219215007925
    exception 1000002:
    Any suggestion / help in fixing this issue will be greatly appreciated.
    Regards,
    Av

    Hi Raj,
    Thanks for your time, please find edited snap hot of Analytic View (AN_GRPH) below,
    Calculation view(CA_SQL)
            /********* Begin Procedure Script ************/
    BEGIN
           var_out =
         SELECT
                "COLUMN_1"
                "COLUMN_2",
                "COLUMN_84",
                "COLUMN_85;",
                SUM("REVN") AS "REVN",
                SUM("MGN") AS "MGN",
                SUM("ORD_QTY") AS "ORD_QTY",
                SUM("SYS_QTY1") AS "SYS_QTY1",
                SUM("SYS_QTY") AS "SYS_QTY"
    FROM
          "_SYS_BIC"."XYZ/AN_GRPH"
    GROUP BY
                "COLUMN_1"
                "COLUMN_2",
                "COLUMN_84",
                "COLUMN_85";
    END
    /********* End Procedure Script ************/
    Later i have built one more Calculation view(CA_GRPH_ABC) using (CA_SQL)in projection. i have 30 calculated measures in this final calc view. this final calc view is throwing above mentioned error.
    Not sure if i can use SQL script based calc view in graphical based calc views?
    Regards,
    AV

  • BAM Error - during the creation of BAM Activity and View in EXCEL

    I'm getting an error "The Cube could not be created successfully. Please edit the view and validate the inputs" during the creation of BAM Activity and VIEW in MS Excel for BAM
    Error Details:
    Error Description:
    The following system error occurred:  Invalid class string .
    Error Source:
    Microsoft OLE DB Provider for Analysis Services 2008.
    Please help me in resolving the issue. Thanks in Advance!!

    Hi Ramesh,
    Below link has the information related to all the prerequisites for using BAM Add-In for Excel.
    Kindly ensure that you have all the files in place before creating BAM Activity and View.
    http://msdn.microsoft.com/en-us/library/aa560476.aspx
    Rachit
    Please mark it as Answer if this answers your question

  • On ECC, got these ERROR messages ACTIVATING a created View. Any hints?

    Hi,
    In creating a view on ECC, I got these messages while activating the View:
    VIEW ZVIEWXXX was not activated
    Check view ZVIEWXXX (MARK001/09.01.10/19:18)
    View allows read-only access only. Maintenance not possible.
    'Display using Data Browser only' was set automatically
    The view ignores client-dependency of the base tables
    Key field MBEWH-BWKEY missing
    Key field MBEWH-BWTAR missing
    Key field MBEWH-LFGJA missing
    Key field MBEWH-LFMON missing
    All fields are evaluated as key field
    Field name MATNR not unique
    Field MARA-LAEDA (Type conflict in selection condition)
    Operator   is not allowed in a selection condition.
    Field MARA-AENAM (Type conflict in selection condition)
    Link the selection conditions with AND or OR
    Operator   is not allowed in a selection condition.
    1.  Any hints to help  fix these problems?
    Ok, I went ahead and added the following fields in the error message :
    MBEWH-BWKEY
    MBEWH-BWTAR
    MBEWH-LFGJA
    MBEWH-LFMON
    2. Now, after this, the error reduced to the following below. But why am I being forced to add fields that I do not need?
        (I also removed the condition)
    VIEW ZVIEWXXX was not activated
    Check view ZVIEWXXX (MARK001/09.01.10/19:18)
    View allows read-only access only. Maintenance not possible.
    'Display using Data Browser only' was set automatically
    Field name MANDT not unique
    View ZVIEWXXX is not consistent
    ============================================================
    End of activation of worklist
    ============================================================
    3. Ok, So, why do I still have the above errors, the view is still not activating.
    Thanks
    Edited by: AmandaBaah on May 10, 2010 1:43 AM
    Edited by: AmandaBaah on May 10, 2010 2:05 AM

    Hi Lynn,
        Found your problem.
    View Field Table Field Data Element
    MANDT MARA MANDT MANDT
    MATNR MARA MATNR MATNR
    ERSDA MARA ERSDA ERSDA
    ERNAM MARA ERNAM ERNAM
    LAEDA MARA LAEDA LAEDA
    AENAM MARA AENAM AENAM
    MANDT MBEWH MANDT MANDT
    MATNR MBEWH MATNR MATNR
    STPRS MBEWH STPRS STPRS
    PEINH MBEWH PEINH PEINH
    VKSAL MBEWH VKSAL VKSAL
    BWKEY MBEWH BWKEY BWKEY
    BWTAR MBEWH BWTAR BWTAR_D
    LFGJA MBEWH LFGJA LFGJA
    LFMON MBEWH LFMON LFMON
    The basic function of a view is to join two or more tables. So when you join tables, the common data based on your join condition is fetched. Therefore if you have mapped mandt from mara to mandt to mbewh, then data will be fetched from both tables on the same condition. Therefore in your final result, you will have only 1 mandt field.
    In your view, there are several problems. You only need to have 1 MANDT and 1 MATNR.
    What the view will do is that it will fetch all records from MARA and then fetch all records from MBWEH where MANDT and MATNR match.
    So the revised view should be
    MANDT MARA MANDT MANDT
    MATNR MARA MATNR MATNR
    ERSDA MARA ERSDA ERSDA
    ERNAM MARA ERNAM ERNAM
    LAEDA MARA LAEDA LAEDA
    AENAM MARA AENAM AENAM
    MANDT MBEWH MANDT MANDT delete
    MATNR MBEWH MATNR MATNR delete
    STPRS MBEWH STPRS STPRS
    PEINH MBEWH PEINH PEINH
    VKSAL MBEWH VKSAL VKSAL
    BWKEY MBEWH BWKEY BWKEY
    BWTAR MBEWH BWTAR BWTAR_D
    LFGJA MBEWH LFGJA LFGJA
    LFMON MBEWH LFMON LFMON
    This should solve your problems.
    Regards.

  • Errow with IF statement in Scripted Calculation view

    Hi Team,
    I am trying to use IF statement in Scripted Calculation view.
    My scenario is:-
    I need to create a restricted Key figure based on input date from user.
    While i am activating my view system gives "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: Syntax Error for calculated Attribute: line 29 col 9 (at pos 1501)" error.
    Below is the code i have used in my CV.
    CE_CALC('IF((to_int("BUDAT") >= to_int(2013-01-01),"AMOUNT",'''')', DECIMAL(13,2)) AS "DTR"
    Here, "AMOUNT" is another calculated field created using CE_CALC.
    Without above IF statement my CV runs perfectly fine. The moment i include IF statement it does not activate.
    Kindly provide your inputs.
    Thanks & Regards,
    Anup

    Hi Lars,
    I am extremely sorry about the confusion.
    There was an extra parenthesis in the IF statement which was not allowing the CV to be activated. CV is now successfully activated.
    But my data is not getting restricted correctly.
    It is showing 0 against all the records.
    Below is the sql used for calling the CV.
    SELECT * FROM "_SYS_BIC"."A_123/CV_SCR_BSID_BSAD_ITEMS" ('PLACEHOLDER' = ('$$Currency$$', '''Local'''),'PLACEHOLDER' = ('$$Date_From$$','2014-01-01' ), 'PLACEHOLDER' = ('$$Date_To$$','2014-06-30' ));
    Below is my updated CE_CALC function :-
    CE_CALC('IF(date("BUDAT") >= date(:Date_From) and date("BUDAT") <= date(:Date_To),"AMOUNT",0)', DECIMAL(13,2)) AS "DTR"
    Is there any issue while passing values here?
    Regards,
    Anup

Maybe you are looking for