cancel
Showing results for 
Search instead for 
Did you mean: 

Error while activating: Syntax error: Unexpected token

Former Member
0 Kudos

Hello guys

I am a newbie in using HANA Web-based Development toolkit.  I am following the tutorial of http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9063f922-81e2-3110-c9b9-b4b0c1199...

and in page 25, I met an error.

I am sure that I copy the same code as it is depicted in the tutorial. the file is saved but not activated, hence the schema '_SYS_BIC' could not be created.

could you please provide any insight into this issue。

Accepted Solutions (1)

Accepted Solutions (1)

chri_schmitt
Explorer
0 Kudos

Hi Fabian,

I've just found a solution for both issues:

Issue #1: Error while activating: Syntax error: Unexpected token

-> I noticed that if the command was issued in one line statement (and not in a multi lines statement) this error does not occur.

Issue #2: No "_SYS_BIC". Cannot activate

-> Run call HCP.HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS()

_SYS_BIC schema will appear afterwards.

I read following document : http://scn.sap.com/docs/DOC-53591

Issue #2. is step 42 of the procedure. 42 is definitively the answer.

Anyway, I read ths post:

http://scn.sap.com/community/developer-center/cloud-platform/blog/2014/04/15/sap-hana-web-ide-online...

and ran following online tutorial

https://thewebide.hana.ondemand.com/tutorials/hcptrial

It helped me a lot and had me undertstand several things about HCP.

Regards,

Christian

Answers (4)

Answers (4)

Former Member
0 Kudos

i have just added a ";" at the end of the last line and worked for me.

like "};" instead of "}"

ivelton

Former Member
0 Kudos

Hi every body,

I have the same problem :

Error while activating:

Syntax error: Unexpected token " "


Best Regards,

chri_schmitt
Explorer
0 Kudos

Hello Marouene,

It sounds a weird advice, but keep your statement on one unique line.

I observed that when the statement is broken into multiple lines, this error (Syntax error: Unexpected token " ")  occurs at activation.

Regards Christian

Former Member
0 Kudos

Hi Christian,

Thanks for replying, I have tried in the same line, but still the same problem.

Regards,

rhightower13
Participant
0 Kudos

I had the same error and putting it on one line didn't work but this worked for me:

namespace mycompany.myapp1; 

@Schema : 'MYSCHEMA'

@Catalog.tableType: #COLUMN

@Catalog.index: [ { name : 'MYINDEX1', unique : true, order : #DESC, elementNames : ['ISBN'] }  ] 

entity BOOK {key Author    : String(100);key BookTitle : String(100);ISBN      : Integer not null;Publisher : String(100);

};

The line beginning entity along with all the field definitions are on one line.

Ross

Former Member
0 Kudos

hi,

i have the same problem, but in my catalog schema "_SYS_BIC" doesnt exit, so i change in _SYS_BI but with same error.

So which is the solution?

chri_schmitt
Explorer
0 Kudos

Hi,

I have the same issue. No "_SYS_BIC". Cannot activate

Did not work either with the DEV_xxx schema.

Former Member
0 Kudos

Same problem here, what's the solution?

Former Member
0 Kudos

It is fixed ,thanks.

0 Kudos

Hi Torren,

Can you please tell, how it is fixed?