Analytic View activation fails because of a Calculated Measure

I'm working with HANA SPS02 here.
Step 1
I have an Analytic View where I have CALDAY among Private Attributes and VALUE in Measures. I add an Attribute View with UCALDAY (whatever it means) and implement a new calculated measure CALCVAL with logic as follows: if( (date("CALDAY") <= date("ATV_SEL_UCALDAY")), "VALUE", 0). It works fine.
Step 2
I added another Attribute View where the key attribute is its own CALDAY field, making a join by that field. Activated the Analytic View failed with the error log as follows:
Error preparing and executing OLAP column view DDL: SAP DBTech JDBC: [2048] (at 15): column store error: <?xml version="1.0" encoding="utf-8"?><createCubeResult version="1.0"><status><message>The scenario XML is not valid</message><errorCode>2112</errorCode></status><details><errors><detail><element>CalculationNode (finalAggregation) -> attributes -> calculatedAttribute (CALCVAL) -> expression</element><code>46</code><message>Attribute 'CALDAY' is missing in node finalAggregation</message></detail></errors><warnings><detail><element>cubeSchema</element><code>46</code><message>Default language not set. Use 'en'</message></detail></warnings></details></createCubeResult>
Exception: class com.sap.db.jdbc.exceptions.JDBCDriverException
com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:284)
com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:149)
com.sap.db.jdbc.packet.ReplyPacket.createException(ReplyPacket.java:98)
com.sap.db.jdbc.ConnectionSapDB.throwSQLError(ConnectionSapDB.java:1124)
com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:774)
com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:639)
com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:433)
com.sap.db.jdbc.CallableStatementSapDB.execute(CallableStatementSapDB.java:309)
com.sap.db.jdbc.trace.PreparedStatement.execute(PreparedStatement.java:153)
com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentExecutor.getAndExecuteActivationDDl(Unknown Source)
com.sap.ndb.studio.bi.deployment.DeploymentJob.activateObjects(Unknown Source)
com.sap.ndb.studio.bi.deployment.DeploymentJob.run(Unknown Source)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Step 3
If I delete that CALCVAR measure, Analytic View can be activated just fine.
No hints in OSS Notes so far. Any ideas what went wrong?

Hello,
it is extremely hard from such description to figure out what is the problem...
You might need to paste the screenshots so that we can take a look...
Just one hint - make sure that you do not take attribute and use it as calculated measure or vice versa - this will definitely lead to error.
Tomas

Similar Messages

  • WS activating fails because of RIC refererence

    Hi,
    Now I have another question.
    We have two versioned tables and
    If we create a RIC link to a record in a workspace and then we want to delete this recork in the LIVE workspace we cannot do that because there is still in a linkage in the workspace.
    OK, that can be acceptable.
    But if we delete the linkage in the workspace and after we want to delete this record in the live workspace we still cannot do that because the workspace manager history stores the created and deleted linkage. It seems accepteble because we could rollback to the state when the linkage was not deleted yet.
    My question is what we could do by deleting this kind of records. What solution can be in this situations? ((Maybe we could delete the referenced records in the _lt table? I know that it's not the best solution))
    Orsi

    Hi Orsi,
    If we are raising an error when you are trying to delete a parent record, then there exists 1 or more versions for which the child table row has not been deleted. In your case, this is most likely the version that existed before you created the child workspace. This is required to operate this way to maintain data integrity. Otherwise, the child row at that particular version would not have a parent row, which cannot be allowed.
    So, there are 2 options:
    1. Specify the RIC constraint as 'on delete cascade' so that when the parent row is deleted, all of the child rows will also be deleted.
    2. Call enableversioning on the parent table. This scenario that you stated can only happen when the child table is versioned, but its parent table is not versioned.
    Regards,
    Ben

  • How to create analytic view with tables  VBRK VBRP KONV ?

    Hi Gurus,
    What is the best way to combine in a analytic view tables VBRK VBRP and KONV for better optimization or
    how to make the relationship tables VBRK VBRP KONV with better performance in Hana Studio ?
    This analytic view should be used in a calculation view to the final calculations.
    Thanks !

    Hi Rogerio,
    Greetings.
    Basically , when you design your analytic views , while designing your data foundation , you can directly join the tables with the corresponding key attributes . Analytic views are capable of optimizing the join operation when we access the view.Logic of joining is purely depends on your business requirement
    Sreehari.

  • Output data differs in Analytic view

    Hi Everyone,
    I am trying to figure out the solution for the Analytic view. I have created a calculated column based on the Input parameter.
    In the Input paramter I have defined as  ('$$IP_TRANSACTIONYEAR$$'='2012',"SALES REVENUE"*50,"SALES REVENUE").
    So in the output , when the Year 2012 is declared the sales revenue has to be multiplied by 50 and must view the data.
    But all the rows are bring multiplied and i get the resultant data. I dont know the root cause of the error.
    Can any one guide me in this approach?
    Thanks and regards
    Sanjay

    Hi Krishna,
    Have decared the code as:
    IF("TRANSACTION YEAR"='$$IP_TRANSACTIONYEAR$$',"SALES REVENUE"*50,"SALES REVENUE")
    Have got the output as expected.!!
    Thanks and regards
    Sanjay

  • Iphone4 IOS7 Activation failed

    Hello,
    I restore my iphone4 with IOS7 but now sim is locked and doesn't ask me to unlock...
    I phone loop in the fisrt configuration process with language choice, wifi selction and activation failed because sim is locked...
    Any idea ?
    Thanks and sorry for my bad english

    Okimac wrote:
    But it's a bug on the phone, all new SIM have a default code
    Nope. You either have to elect to set a sim pin, or your carrier requires such. Some carriers, do in fact, require sim pins.

  • 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

  • Error when activating an analytic view

    Hi All,
    I am getting the below error when trying to activate an analytic view:
    An internal error occurred. Assertion failed with error message JoinManager::convertLogicalToPhysicalJoin(), cannot retrieve attribute for: CA_BNFPO in dimension: ECC-COMMON-AT_VIEWS/AT_STXH
    In the analytic view , I am doing an inner join between table  EBAN  , fields MANDT,BANFN,BANFO with an attribute view created on STSXH ,fields MANDT,CA_BNFN,CA_BNFPO.
    CA_BNFN and CA_BNFPO are the calculated columns in the attribute view AT_STXH .
    Can anyone please let me know how to resolve this.
    Thanks,
    Goutham

    Hi Raj,
    Thanks for your response.
    I have created joins using calculated columns in other analytic views and I didn't face any issues doing that.
    Thanks,
    Goutham

  • Error when activate analytic view (join tables)-Exception during activation

    Dear guru,
    I suffered an error showed "Exception during activation" when activate a newly created analytic view.
    I used two tables, one is NASDAQDAILY, one is NYSEDAILY.
    Private attribute are "DATE, STOCK(NYSE.STOCK), STOCK_1(NASDAQ.STOCK"
    Measure are "PRICEOPEN(NYSE), PRICEOPEN_1(NASDAQ)"
    JOINS are: Left Table-NASDAQ, Left Column-DATE
    Right Table-NYSE, Right Column-DATE
    Validate is sucessfully.
    But when "Save and Activate", it gave below error.
    Kindly help me on this. Thank you so much.
    com.sap.ndb.studio.sdk.resource.deployment.bi.DeploymentException: Error during deployment
    _     at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.processMeasures(CubeElement.java:591)_
    _     at com.sap.ndb.studio.sdk.resource.deployment.bi.cv.CubeElement.initialize(CubeElement.java:170)_
    _     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:159)_
    _     at com.sap.ndb.studio.sdk.resource.deployment.bi.CubeDimensionDeploymentExecutor.initialize(CubeDimensionDeploymentExecutor.java:78)_
    _     at com.sap.ndb.studio.sdk.resource.bi.core.impl.BiResourceImpl.activateObjects(BiResourceImpl.java:236)_
    _     at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceImpl.activateObjects(ResourceImpl.java:868)_
    _     at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceImpl.activate(ResourceImpl.java:727)_
    _     at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAll(ResourceManager.java:166)_
    _     at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.activateAll(ResourceManager.java:202)_
    _     at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.activateObjects(ActivateJob.java:92)_
    _     at com.sap.ndb.studio.modeler.job.type.activate.ActivateJob.run(ActivateJob.java:71)_
    _     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)_

    Hello,
    This issue is resolved now.
    The problem was with the file system space on the Unix server(on which portal is installed).
    The server administrators and the Basis team extended the disk space and issue got resolved.
    Thanks for all your inputs.
    Sonali.

  • Input parameter of Analytic view in Calculation View

    Hello Folks,
    I have created an analytic view with some input parameters and using this view in a calculation view.
    when i am checking Data Preview of Calculation view , it is not asking for any input parameter and returning blank values.
    Could you please let me know the where i went wrong.
    Thanks.

    Hello Ravindra,
    Here is scenario :
    AV :   AV_1 w/o parameters
    AV :  AV_2  w/  required parameters
    when i join the both them into CV_1 , I am unable to see input parameter mapping.
    Could you tell me where it is located.

  • Generating Dependencies for Calculation/Analytical View in SAP HANA.

    Hi Everyone,
    I am trying to find out the dependencies for a specific Calculation/Analytical View. I have used sys.object_dependencies but that gives only the table names on which the calculation view is dependent on, but not theanalytical and attribute views.
    For example, consider a calculation view which is developed by joining 2 analytical views and the analytical views in turn uses some attribute views. So my ask is to get all these object information not just the tables. This is very basic info and I assume it must be captured in some metadata views. My aim is to query such metadata views and get the dependencies. Any pointers to this would be highly helpful.
    Best Regards. 

    Hi Samarpan,
    You can right click on the view and select option 'Auto Documentation' with content type as 'Model Details' in the wizard. Select a target location for the document to generate.
    When you open the generated document, in the last there is a section as 'Cross References' which will give you full hierarchy of views/tables used.
    Hope this will solve your problem
    Regards,
    Rashmi

  • Odata error: Parameters are not allowed for entity "calculationView" as it is not a calculation or analytical view

    I have created scripted calculation view
    I can add parameter in aforesaid calculation view
    It fetches me right result
    But when I am to call aforesaid calculation view from odata service I am getting following error:
    ERROR      zcustsearch/services/AutoComplete.xsodata
               Parameters are not allowed for entity "calculationView" as it is not a calculation or analytical view.
    Any solutions

    Don't reference it via the catalog object. Otherwise only the runtime Column View will be seen. Instead you should specific the view as the repository object.  This means no schema and use package path::view name.  Like this example from the SHINE content:
    service namespace "sap.hana.democontent.epmNext"  {
       "sap.hana.democontent.epmNext.models::CV_SALESORDER_YEAR_COMPARISON"
        as "salesYear" 
      keys generate local "ID"
        aggregates always
        parameters via entity "InputParams"; 

  • Unload dbsrv7 fails because there are active connections

    Hello,
    i want to stop ZEN before backup runs and wanto to unload dbsrv7 as a cron
    job but it fails because there are active connections open. The console
    message is the following:
    DBSRV7.NLM still has active connections
    Unload module anyway? N
    Our Server ist runnig Nw6 SP2 and ZFD 4.01 with IR 5
    Ive found nothing helpful at the knowledgebase and ive tried the utility
    stuffkey from Coolsolutions but it dows not work.
    How can I stop DBSRV7 automatically with a switch to yes at the console
    screen?
    Thanks for your help
    Michael
    Administrator

    Hello,
    the problem was resolved with TID2962044.
    Bye Michael

  • Error when using Analytic view with Input Parameters

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    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,

  • Error while using Analytic view with BO explorer

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    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,

Maybe you are looking for

  • How do I re-number and re-order tracks in album view in iTunes 11 for Mac?

    When I manually transfered my iTunes library from an old PowerBook G4 to a used (but new to me) MacBook Pro, one of my albums has the same track numbers for multiple songs and so the songs are in the incorrect order. I know I can create a playlist of

  • Which Powerbook 15" travel sleeve should I buy?

    I will be traveling to Europe with my 15" Powerbook in two weeks and I'm looking for a sleeve that I can put into my carry-on bag. I don't want to buy an entire laptop bag, so I'm looking for something that can hold my PB and a couple accessories, li

  • Can't settle an internal order by amount

    My company wants to settle internal orders to a fixed asset by amount instead of equivalence number or %. Can anyone describe in detail how to do this please.  Thanks and regards Walter

  • Copying and pasting symbols

    Hi there gang, We just bumped up to CS5.5 and one of the most frustrating things is that when you copy a symbol from one fla and paste it into another and it needs to replace a symbol in the other file, it can take up to a minute (even more a few tim

  • Does the APS Java API v11.1.1 support the Essbase 9.x?

    Hi All, I'm currently using the APS java API v11.1.1 for the Essbase 11.x and works well. Now I'll change to Essbase 9.x, and I don't want to change the ess_japi.jar which version is 11.1.1. I want to ask if the api v11.1.1 support the Essbase 9.x? T