Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

HANA Email authentication failure

$
0
0

Hi All,

 

Could you please describe me the step by step procedures for sending an email from HANA Database using python script on Windows environment. I also followed the How to send emails from HANA  I am getting the given below error message while trying to connect the Database using Python script ::

------------------------------------------------------------------------------------------

>>>

Traceback (most recent call last):

  File "C:\Users\Python\xyz.py", line 1, in <module>

   import dbapi

ImportError: No module named 'dbapi'

>>>

---------------------------------------------------------------------------------------------

 

Please help me out to resolve the issue.


no option for creating xs project in eclipse luna

$
0
0

hi, i was trying to follow the instruction here: SAP HANA Cloud Platform  to create a xs project in Eclipse Luna, i got all SAP HANA tools installed (screenshot attached).

However, i still don't see SAP HANANext navigation stepApplication DevelopmentNext navigation stepXS Project

 

Capture1.JPG

Capture2.JPG

Does HANA XSJS support Date functions such as getDate()?

$
0
0

Hi,

 

I am trying to generate SQL query on the fly using server-side javascript aka xsjs. Now I need to calculate Date and then convert it to a suitable format (such as the ISO format: YYYY-MM-DDThh:mm:ss). There does exist Date.parse() method, which works. However I have hard time to format a Date object into a string. Even the regular methods such as Date.getDate() seem not to work.

 

So my question is:

Does XS Engine support Date object?

 

Ideally I need function Date.format("YYYY-MM-DDThh:mm:ss")

 

Regards,

Wei-Guo

How to put sql statements so that I can use it in a Calculation view?

$
0
0

Hi,

 

I have few DML STATEMENTS THAT I WOULD LIKE TO RUN VIA A PROCEDURE SO THAT I CAN USE IT AS AN INPUT INA CALVIEW, HOW WOULD I IMPLEMENT IT.

 

mY SQL STATEMENT IS

 

 

UPDATE "AVG_DIM" SET "MONTH" = MONTH(TO_DATE("ZDATE",'YYYYMMDD'));

 

 

UPDATE "AVG_DIM" SET

"YTD" = case when month(current_date) >= "MONTH"

       then 'Y' else 'N' end,

       "LASTTHREEMONTH" = case when month(current_date)-3 >= "MONTH"

       then 'N' else 'Y' end,

       "LASTMONTH" = case when month(current_date)-1 = "MONTH"

then 'Y' else 'N' end,

"LASTSIXMONTH" = case when month(current_date)-6 >= "MONTH"

then 'N' else 'Y' end;

Job in scheduled state--->not inserting records in table.

$
0
0

Hi,

 

I have created a job via XSJOB file, everything is activated .

But when I go in XS engine link , its showing status as job 'SCHEDULED'.And no records inserted in my table.

Am I missing anything?

 

My procedure:

 

PROCEDURE "SYSTEM"."sumeet10::insert_values" ( )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA "SYSTEM"

  --READS SQL DATA AS

  as

BEGIN

/*****************************

  Write your procedure logic

*****************************/

 

insert INTO "SYSTEM"."TEST_SD1" values ('ABC','DE');

 

END;

 

XSJOB file.

 

{

  "description": "Job to Update INSERT values",

  "action": "sumeet10::insert_values",

  "schedules":

  [

  {

  "description": "Table will be INSERTED after every 59 sec",

  "xscron": "* * * * * * 59"

  }

  ]

}

 

 

scheduled.png

Br

Sumeet

SAP HANA Studio vs. Eclipse

$
0
0

Hello I am in the quest for installing SAP HANA STUDIO.

I´ve already got the Client tool but after reading many documents still not been able to install it locally.

 

It is a total nightmare.

 

Java version issues --> Got solved.

Plug-in add ins for Composite Providers, ... incompatibility issues ---> Got Solved

...

 

But I got to a point where the plug ins (all) do not work:

 

 

Ironically -as I started with SAP HANA Cloud- I do have installed Eclipse client tool which seems to work better and seems to give me full features.

 

QUESTION:

Is there technical difference / incompatibility when creating devloping, creating/ modifying objects in Eclipse vs SAP HANA Studio ?

 

thank you,

HANA CDS View with Parameters

$
0
0

Hi,

 

I want to create a HANA CDS view for joining a given table with a text table. Since the language of the text coming from the text table should not be fixed, I want to parametrize this language. Unfortuantely I found no way to create a HANA CDS view with parameters. For ABAP CDS views this seems to be possible.

 

Is there any way to create a parametrized HANA CDS view? Or is there another way to create a "text join" with the current logon language in a CDS view?

 

Thanks and best regards

Felix

Modeling Inventory Management Scenario in HANA Studio

$
0
0

Hello Experts,

Can you share some insights on how to model Inventory Management Scnearion in HANA Studio using base tables ?

This is important because here many complex things are involved  like:

a)Historical and Delat Data records

b) Non-Cumulative Key Figures

 

Really appreciate if you can throw some development insights to the same.

 

Thanks,

Jomy


How to set up password rest in the WebUI

$
0
0

Hi, I would like to give our managers/team leads access to be able to change/reset passwords as we do on SU01 on the Web Client UI, how do I go about doing this?

OData permissions: GET succeeds but POST/PUT fail

$
0
0

Hi all

I have several OData services on my HANA instance (on HCP) where the following happens:

the OData service is very simple with just one or two entities, no forbidden instruction is defined.

Authentication has been set to SAML+Basic+Form, so almost everything is accepted.

The content-type is set to application/json and charset is specified to utf-8

Authentication headers are specified correctly

Payload is correctly formatted in JSON

But any call other than GET (e.g. POST/PUT) results in a 403 HTTP error.

I'm testing this through the Chrome Postman tool

 

Any idea why this happens?

Thanks

Vincenzo

SQL-Analytic Privilege

$
0
0

Hello,

 

I can create an SQL-analytic privilege via the SQL command

 

create structured privilege <ap sql> for select on <view> where <field> = <restriction>

But where can I find this SQL-analytic privilege later?

 

select * from ownership where object_type = 'SQLANALYTICPRIVILEGE' 

lets me at least find SQL-analytic privileges in the system. But where can I find out, how they were defined?

Analytic privileges generated from BW analysis authorizations are an example of SQL-analytic privileges where this would be interesting in order to check what has been generated.

 

Regards,

Ingo

Enable Change Recording not working - SPS9 - TrexUpdate failed on table '_SYS_REPO:ACTIVE_OBJECT'

$
0
0

Hello!

 

Summary: I am trying to enable changing recording (feature introduced in SPS6 and enhanced a lot in SPS7) using HALM (I'm on SPS09) but I get the following error:

 

"message not found;mark active objects: SQL preparation or execution failed. Details can be found in the indexserver trace file."

 

 

Inside the browser console, I can see a failing POST call to /sap/hana/xs/lm/core/ConfService.xsjs service - it receives a HTTP 500 error. The HTTP request has the folling Form Data

 

 

{"action":"set_change_tracking","value":true}

 

 

---

 

 

What I'm 100% sure

 

 

After reading several OSS Notes, debugging this service I am aware of what is **not** the root cause:

 

 

Privileges

 

 

I'm using SYSTEM user and it has:

  • role sap.hana.xs.lm.roles::Administrator (among other lm roles)
  • system privilege REPO.CONFIGURE
  • execute privilege on procedure SYS.REPOSITORY_REST (discussed later)

 

 

Timeout

 

 

The error takes ~5 seconds to happen, so I'm discarding a timeout issue.

 

 

OSS Notes

 

 

  • 2073243 - Release Notes for SAP HANA Application Lifecycle Management for SAP HANA SPS 09

 

 

This OSS Notes is the only one I found it was useful somehow as it describes frequent issues on HALM and other restrictions according to SPS and revisions. The only item I could not check in my system is "JSVM memory" mentioned in that note. According to such OSS:

 

The change recording function in SAP HANA Application Lifecycle Management, which was introduced with HANA SPS 07, has the following restrictions:

 

 

Change recording requires enough JSVM memory to handle changelists, for example, search for changes and export/transport changelists and enable/disable change tracking. If you have received a 500 Internal Server Error in the browser console and the xsengine_* trace file is out of memory, then enhance the memory configuration to a proper value. The following example provides information about how to do this.

 

 

xsengine.ini > jsvm > max_runtime_byte

 

Using the Administration view inside Eclipse, I don't even have an option called jsvm inside xsengine.ini

 

 

Browser

 

I'm using Chrome but I'm sure the issue is in the back end according to the log files presented afterwards.

 

---

 

 

What I am **not** 100% sure

 

 

I don't know if the error I'm getting is due to the fact that at least on artifact in the system has a syntax error. To explain why I guess this could be an error I have to explain what I learn watching Change Management in SAP HANA 1.0 SPS07 from Willi Petri and reading SAP HANA Lifecycle Management from Boris Zarske among other slides.

 

When you enable change recording, HANA takes all your artifacts and include them inside a change (the very first one in the system). After releasing this change, every activation you do on an artifact prompts for a new change associated with it (similar to how CTS works in ABAP).

 

Maybe, when HANA tries to assign all artifacts to a change, it checks the syntax of such objects and aborts the operation if at least one failed.

 

What I have done to confirm this was to manually regenerate all my packages (which contains almost 60000 artifacts) and check whether they had syntax errors or not. I found some and fixed them. I can regenerate all my packages without error. The only one I get an error is the system-local package, which although it's empty, gives me an error)

 

---

 

The error in detail

 

Debugging the ConfService.xsjs service, I came to the conclusion that the root cause is inside function execRepoCall. It calls the procedure SYS.REPOSITORY_REST but the call fails as it returns false.

 

root cause - scn.png

 

Looking at the application and SQL trace files, I see a failing UPDATE statament on table '_SYS_REPO:ACTIVE_OBJECT'

 

 

Trace on sap.hana.xs.lm Application

 

[6307]{6307}[-1/-1] 2015-09-02 18:36:29.640156 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00085) : Execute WebRequest returned with: 0

[6307]{6307}[-1/-1] 2015-09-02 18:36:29.640164 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00095) : end JS request handler for /sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.511661 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00058) : begin JS request handler for /sap/hana/xs/lm/csrf.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.511891 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00085) : Execute WebRequest returned with: 0

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.511897 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00095) : end JS request handler for /sap/hana/xs/lm/csrf.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.587800 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00058) : begin JS request handler for /sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.588039 d xsa:sap.hana.xs. GlobalFunctions.cpp(00159) : check access for URI: /sap/hana/xs/lm/core/lib/Config.xsjslib

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589362 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "sap"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589378 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "hana"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589381 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "xs"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589383 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "lm"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589384 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "core"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589396 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "lib"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589397 d xsa:sap.hana.xs. GlobalFunctions.cpp(00214) : create "Config"

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.589482 d xsa:sap.hana.xs. GlobalFunctions.cpp(00159) : check access for URI: /sap/hana/xs/lm/xsts/utils.xsjslib

 

 

...

lots of other checkAccess for stuff

...

 

 

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.645294 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00873) : getTrackingStatus Starts

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.645326 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00156) : execRepoCall: {"action":"get","what":"changeTrackingStatus","session":{"sessionType":"2","owner":"SYSTEM","workspace":"HALM"}}

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.647147 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm, ApplicationSource=/sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.647145 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00167) : Starts: Wed Sep 02 2015 18:36:32 GMT-0400 (EDT)

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651268 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm, ApplicationSource=/sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651266 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00169) : Done: Wed Sep 02 2015 18:36:32 GMT-0400 (EDT)

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651285 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00170) : Statement Result: false

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651308 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00172) : Result: [object ArrayBuffer]

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651325 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:utils.xsjslib(00420) : ab2str(): byte array length: 6

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651366 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00089) : Header: repoV2

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651370 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00091) : No. of Attachments: 1

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651374 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00094) : JSON Length: 94

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651380 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:utils.xsjslib(00420) : ab2str(): byte array length: 94

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.651393 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00101) : DECODED JSON: {

  "error-arg": "",

  "error-code": "0",

  "error-msg": "No error",

  "status": "disabled"

}

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.654434 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00905) : setTrackingStatus Starts: Wed Sep 02 2015 18:36:32 GMT-0400 (EDT)

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.654464 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00156) : execRepoCall: {"action":"set","what":"changeTracking","status":"on","ignoreOpenChanges":"1","session":{"sessionType":"2","owner":"SYSTEM","workspace":"HALM"}}

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.656030 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm, ApplicationSource=/sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:32.656028 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00167) : Starts: Wed Sep 02 2015 18:36:32 GMT-0400 (EDT)

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143529 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm, ApplicationSource=/sap/hana/xs/lm/core/ConfService.xsjs

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143527 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00169) : Done: Wed Sep 02 2015 18:36:38 GMT-0400 (EDT)

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143539 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00170) : Statement Result: false

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143622 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00172) : Result: [object ArrayBuffer]

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143644 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:utils.xsjslib(00420) : ab2str(): byte array length: 6

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143656 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00089) : Header: repoV2

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143660 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00091) : No. of Attachments: 1

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143664 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00094) : JSON Length: 191

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143671 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:utils.xsjslib(00420) : ab2str(): byte array length: 191

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.143805 d xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00101) : DECODED JSON: {

  "error-arg": "",

  "error-code": "129",

  "error-msg": "message not found;mark active objects: SQL preparation or execution failed. Details can be found in the indexserver trace file."

}

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.147330 e xsa:sap.hana.xs. sap.hana.xs.lm.xsts:repoUtils.xsjslib(00929) :

Stack Trace:

UserReportableException@/sap/hana/xs/lm/xsts/utils.xsjslib:41

setTrackingStatus@/sap/hana/xs/lm/xsts/repoUtils.xsjslib:922

setChangeTracking@/sap/hana/xs/lm/core/lib/Config.xsjslib:26

processPOSTRequest@/sap/hana/xs/lm/core/lib/Config.xsjslib:90

@/sap/hana/xs/lm/core/lib/Config.xsjslib:104

process@/sap/hana/xs/lm/xsts/utils.xsjslib:1219

processRequest@/sap/hana/xs/lm/core/lib/Config.xsjslib:98

@/sap/hana/xs/lm/core/ConfService.xsjs:2

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.147355 e xsa:sap.hana.xs. sap.hana.xs.lm.xsts:utils.xsjslib(00161) : message not found;mark active objects: SQL preparation or execution failed. Details can be found in the indexserver trace file.

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.147381 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00085) : Execute WebRequest returned with: 0

[6307]{6307}[-1/-1] 2015-09-02 18:36:38.147386 d xsa:sap.hana.xs. JsSuffixHandler.cpp(00095) : end JS request handler for /sap/hana/xs/lm/core/ConfService.xsjs

 

SQL Trace

 

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862357 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862345 e AEText           core.cpp(00324) : Invalid term id in scaled document: 32625

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862366 e AEText           core.cpp(00325) : Document id: 13156

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862368 e AEText           core.cpp(00326) : Size of scaled document: 114460

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862369 e AEText           core.cpp(00327) : Number of distinct terms: 8240

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862370 e AEText           core.cpp(00328) : Min term id: 1

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862379 e AEText           core.cpp(00329) : Max term id: 121040

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862388 e textattr         TextAttribute.cpp(03606) : _getNormalizedDoc._SYS_REPO:ACTIVE_OBJECT (5).$_SYS_SHADOW_CDATA$(63378): mCore->scaledDocument(id, doc, mapping, fromTemp), in _getNormalizedDoc: 6900

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862394 e textattr         TextAttribute.cpp(03647) : _reconstructDaf._SYS_REPO:ACTIVE_OBJECT (5).$_SYS_SHADOW_CDATA$(63378): _getNormalizedDoc(id, dict, doc, fromTemp), in _reconstructDaf: 6900

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862397 e textattr         TextAttribute.cpp(03734) : _getDaf._SYS_REPO:ACTIVE_OBJECT (5).$_SYS_SHADOW_CDATA$(63378): _reconstructDaf(id, daf, fromTemp), in _getDaf: 6900

[9732]{212705}[1577/3965391] 2015-09-02 18:45:21.862398 e textattr         TextAttribute.cpp(03700) : getDocObject._SYS_REPO:ACTIVE_OBJECT (5).$_SYS_SHADOW_CDATA$(63378): _getDaf(id, simpleDaf), in getDocObject: 6900

[5949]{212705}[1577/3965391] 2015-09-02 18:45:21.862922 i TraceContext     TraceContext.cpp(00827) : UserName=SYSTEM, ApplicationUserName=SYSTEM, ApplicationName=sap.hana.xs.lm

[5949]{212705}[1577/3965391] 2015-09-02 18:45:21.862917 e table_update     TableUpdate.cpp(12201) : TableUpdate::writeDataIntoAttributeEngine(): commitOptimizeAttributes() failed with rc=6900, Attribute engine failed; table '_SYS_REPO:ACTIVE_OBJECT$delta_1$'(6900)

[5949]{212705}[1577/3965391] 2015-09-02 18:45:21.862927 e table_update     TableUpdate.cpp(15614) : lastError: commitOptimizeAttributes() failed with rc=6900, Attribute engine failed; table '_SYS_REPO:ACTIVE_OBJECT$delta_1$'(6900)

[5949]{212705}[40/3965389] 2015-09-02 18:45:21.902318 e REPOSITORY       dbutils.cpp(01014) : mark active objects: SQL execution of

'UPDATE _sys_repo.active_object SET change_number = ?, released_at = ?

(65835, '2015-09-02 18:45:16.5740000')

SQL string with parameter values instead of '?':

UPDATE _sys_repo.active_object SET change_number = 65835, released_at = '2015-09-02 18:45:16.5740000''

failed:

transaction rolled back by an internal error: TrexUpdate failed on table '_SYS_REPO:ACTIVE_OBJECT' with error: commitOptimizeAttributes() failed with rc=6900, Attribute engine failed; table '_SYS_REPO:ACTIVE_OBJECT$delta_1$', rc=6900 - enforce TX rollback at ptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_update.cc:2374

exception  1: no.71000129  (ptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_update.cc:2374)

    TrexUpdate failed on table '_SYS_REPO:ACTIVE_OBJECT' with error: commitOptimizeAttributes() failed with rc=6900, Attribute engine failed; table '_SYS_REPO:ACTIVE_OBJECT$delta_1$', rc=6900 - enforce TX rollback

NO exception throw location recorded. Stack generation suppressed.

[5782]{-1}[-1/-1] 2015-09-02 18:46:30.975267 w Logger           SavepointImpl.cpp(02136) : NOTE: BACKUP DATA needed to ensure recoverability of the database

 

 

Using the SQL console to reproduce the error

 

If I take the UPDATE call from the SQL file and try to run it using SQL console, I get the same error:

 

UPDATE _sys_repo.active_object SET change_number = 65835, released_at = '2015-09-02 18:45:16.5740000'

 

Could not execute 'UPDATE _sys_repo.active_object SET released_at = '2015-09-02 18:45:16.5740000'' in 5.348 seconds .

[129]: transaction rolled back by an internal error: TrexUpdate failed on table '_SYS_REPO:ACTIVE_OBJECT' with error: commitOptimizeAttributes() failed with rc=6900, Attribute engine failed; table '_SYS_REPO:ACTIVE_OBJECT$delta_1$', rc=6900 - enforce TX rollback

 

I had no success searching for 'TrexUpdate failed on table', 'commitOptimizeAttributes() failed with rc=6900' and other key terms. I have no clue what is Trex and why this dinossaur doesn't like me.

 

So... after all... what do I need to do inside this system to enable change recoring?

 

Thanks a lot! I tried to be as detailed as possible.

 

Including trace files as quotes so it's possible to see it completely

LT Replication Server - Error "Failed to create logging table /1CADMC/XXX for table XXXXXX"

$
0
0

Hi,

 

I am trying to replicate a table using data provisioning editor in HANA studio. This shows the status as "Error".

 

I checked transaction IUUC_SYNC_MON in the LT Replication server, which shows the error as "Failed to create logging table /1CADMC/XXX for table XXXXXX".

 

I checked the source system. I could not find any dumps in the source system. The logging table (/1CADMC/XXX) already exists in the source system (Strange thing is that it is already assigned to a different table. Not sure why the LT server is trying to create a logging table with the same name in the source system).


I tried stopping the replication and restarting it in transaction IUUC_SYNC_MON.


I know for a fact that the source system has some issue. I tried connecting to a different source system and the replication went through without any problems.

 

Any suggestions ?

 

Thanks

Rajvansh

Authorization issue in HANA

$
0
0

Hello Everyone,

 

I have admin access and I created one user ID and tried to grant select on access to that user id to _SYS_REP user,

 

Executed Below SQLScript:

 

GRANT SELECT ON SCHEMA  "your user" TO _SYS_REPO WITH GRANT OPTION

 

But  when I executed the above statement it is throwing "Insufficient Previlege".

 

Actual issue was, I was getting authorization issue when tried to see data preview on Calculation view so I am trying to provide this access to check if it resolved that access issue.

 

 

Kindly please help me resolving this.

 

Thanks,

Sri

HANA Email authentication failure

$
0
0

Hi All,

 

Could you please describe me the step by step procedures for sending an email from HANA Database using python script on Windows environment. I also followed the How to send emails from HANA  I am getting the given below error message while trying to connect the Database using Python script ::

------------------------------------------------------------------------------------------

>>>

Traceback (most recent call last):

  File "C:\Users\Python\xyz.py", line 1, in <module>

   import dbapi

ImportError: No module named 'dbapi'

>>>

---------------------------------------------------------------------------------------------

 

Please help me out to resolve the issue.


Issues while executing Javascript in SAP UI5

$
0
0


hi Team,

 

I am having issues with SAP UI5 application as under:

 

1)in the Service file, I would like to call CALCULATION view but when I call the .XSODATA service file using the call as SERVICE, I was not getting proper results so I used the following:

 

"_SYS_BIC"."PKG_TEST/CV_TEST" as "customer_det" keys generate local "ID" ;

 

instead of:

"PKG_TEST::CV_TEST" as "cusotmer_det" keys generate local "ID" aggregates always;

is it fine to use it like that or can we use the 2nd way to use in the SAP UI5 application.. is we need to use 2nd method, how can we get the values into the Layout?

 

2)the URL for the Service is as under:

http://xx.xxx.xxx.xx:8000/PKG_TEST/xsproject1/customer_det.xsodata/customer_det?$select=CUSTOMER_ID,CITY&$filter=(CUSTOMER_ID eq 1)

 

the requirement is that, an external system sends the Customer_id=1, then corresponding CIty value of that customer, there fore the above URL has been built and the above URL is giving the details of the CUSTOMER_ID and CITY for the Customer....

 

in view of SAP UI5, the following code was written:

 

var url = "http://xx.xxx.xxx.xx:8000/PKG_TEST/xsproject1/customer_det.xsodata/customer_det?$format=json&$select=CUSTOMER_ID,CITY";
       var oModel = new sap.ui.model.odata.ODataModel(url, false); 
              var oControl;

          this.oSHTable = new sap.ui.table.Table("soTable",{  visibleRowCount: 10,  }); 
          this.oSHTable.setTitle("CUSTOMER <-> DETAILS");
          
           //Table Column Definitions 
          oControl = new sap.ui.commons.TextView().bindProperty("text","CITY");
          this.oSHTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text: "CITY"}), template: oControl}));
          this.oSHTable.setModel(oModel); 
          this.oSHTable.bindRows({ path: "/cusotmer_det"  }); 
                oLayout.createRow(this.oSHTable); 
                return oLayout;

 

but I was not getting the values in the Browser, how to get the values fetched from Calculation view onto the Browser?

 

3)suppose if I make any changes in the layout(of JS View) eg., if I add an UI element,  I am not getting this UI element onto the Output of Layout.

even if I delete the SAP UI 5 project, make changes and again create UI application and Integrate that into XS project also, I am not getting the results/changes back into the Layout... what is the procedure by which the changes are reflected?

 

thanks for your answers in advance.


Regards,

Vishnu

removing a project from the repository, without removing it from the work space

$
0
0

Hello everyone,

I'm still pretty new to SAP HANA Studio and while I'm familiar with the concepts of a workspace and repository, I had the following issue come up:

 

I accidentally shared a project in the wrong (sub)package in the repository and want to undo this,

 

however, the only option that seems available is to delete the package from the repository AND the file system (which I assume to be the workspace).

Now ofcourse I don't want to lose the project files.

 

I tried to unshare the project first in the workspace but it still gets deleted,

Any (easy) way to do this?

 

I also checked out the workspace folder but there don't seem to be any project files that I can copy-paste or whatever.

As soon as I share the project it disappears from the workspace folder.

 

 

Anyone who could shine some light on this matter?

 

EDIT: for clarity, it's a SAPUI5 Application Development > Application project.I create it in the SAP HANA workspace. It does not automatically get added to the repository

Xs Admin Page Broken.

$
0
0

I updated to 96.. Wanted to use the webdispatcher admin page but I did not have the roles.. I found i needed to install xs base Delievery Unit.
After I installed the Delievery Unit xs admin was broken and login page not responsive..I went into ide and changed to legacy login and admin .html pages.. It is working .. but that sucks..

 

I have just updated to hana 97 do i have to install xs base delievery unit for upgrades to take place at xs engine level?

 

Please advise.

Thanks
Zachary.

HANA Query group by but add values

$
0
0

Hello everyone,

 

I am trying to write a query in HANA that achieves the following:

Capture.PNG

So I want to make the Sales_ID unique. At the same time I want to add the Revenue of each Sales_ID.

What I did so far: Selecting Sales_ID and Revenue, group by Sales_ID and sum up the revenue. So far so good. But it doesnt work when I add the field "Product_ID" since there are different values in each row. (so it doesnt group anymore) But I'm good if I just have the Product_ID of the first row of each Sale.

 

How do I do that?

 

Greetings

What is the syntax for a delete with a join in HANA?

$
0
0


Hi Everyone

 

I read the previous answer to this question which was:

 

deletefrom sk1

where (sk1.user, sk1.location) in (select sk.user, sk.location from sk);

 

unfortunately this does a select for every key in the table.  I have to delete 1.3b rows from a 2b row table...

even HANA takes too long to run 1.3b selects...

 

How do we actually do a join with a delete????

 

Thanks

Doug

Viewing all 6412 articles
Browse latest View live