cancel
Showing results for 
Search instead for 
Did you mean: 

ITS_UNEXPECTED_TOKEN dump while testing an ITS service in integrated ITS.

soumya_jose3
Active Contributor
0 Kudos

Hi Experts,

I am getting ITS_UNEXPECTED_TOKEN runtime error while executing an ITS service in integrated ITS.

The details of the dump are as follows:

The template "templates/zess_global/99/zessfunctions_46b.html" contains syntax

errors and could therefore not

be compiled.

Cause of error: the token "(" ("(") could not be recognized.

The syntax error is located in line: 124, column: 12

The erroneous HTMLB line is:

"makeButton1(OKCODE,BUTTON,"","","","","","");"

What can be the reason?

Thanks & Regards,

Soumya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Soumya,

seems that makeButton1 does not exist. Where is the implementation of

this function?

regards

Tobias

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

did you check the template,

is it there with the outer double quote as well?

is it like this

"makeButton1(OKCODE,BUTTON,"","","","","","");"

or like this

makeButton1(OKCODE,BUTTON,"","","","","","");

soumya_jose3
Active Contributor
0 Kudos

Hi,

It is like this:

makeButton1(OKCODE,BUTTON,"","","","","","");

Regards,

Soumya.

athavanraja
Active Contributor
0 Kudos

i was guessing that the quotes in the wrong place may have caused this .

do you also see the following code in the same template?

function MakeButton1(OKCODE,BUTTON,ICONPATH,Bold,IsHREF,TARGET,JSFunction,FTARGET).......

As Tobias mentioned, may be the function definition may be missing?

soumya_jose3
Active Contributor
0 Kudos

Hi,

Thanks for ur reply. I checked the template. Under the Internet Service there are two html templates. The concerned template does not have the definition of makeButton1 but the other one has. This error was coming when I migrated it into integrated ITS. Before the migration also the same code was there. It was not giving any error with stand alone ITS.

Please correct me as I am entirely new to this.

Regards,

Soumya.

Former Member
0 Kudos

Hi Soumya,

please check the parameter of your service in <name>.srvc - maybe you have to add

parameters to your service using TA sicf...

If not you can add

declare makeButton1(a,b,c,...) in "<secondtemplate>.html";

before the makeButton1() statement.

May be including the template containing makeButton1 will help too.

regards

Tobias

soumya_jose3
Active Contributor
0 Kudos

Hi Tobias,

How can I see the .srvc file. How will i include those parameters in sicf ? (using parameter ~sources? )

Could you please elaborate the steps.

Thanks & Regards,

Soumya.

Former Member
0 Kudos

Hi,

there are documents around here. Esp. documents describing the

migration steps.

regards

Tobias

soumya_jose3
Active Contributor
0 Kudos

Hi,

I have defined the missing function. But now I am getting a new error "ITS_FUNCTION_ALREADY_DEFINED"

Cause of error: Function "stylesheet" is defined twice in template "templates/iac/dm/generator.html".

I can see that the fuction style sheet is defined in service IAC as well as in service ESS_GLOBAL . How can I rectify this error.?

Thanks & Regards,

Soumya.

soumya_jose3
Active Contributor
0 Kudos

any solution????

Regards,

Soumya.

Former Member
0 Kudos

Hi Soumya,

you are migrating a service from 6.20, right? Again: What is the

configuration of this service in 6.20?

regards Tobias

soumya_jose3
Active Contributor
0 Kudos

Hi Tobias,

Yes, we are migrating from 6.20.

The parameters of the custom service in 6.20 are as follows:

~AUTOSCROLL 0

~GENERATEDYNPRO 1

~LISTSCROLLING 0

~POPUPS 1

~STYLE DHTML

~TRANSACTION ZPZ04

The dump I am getting is :

Template "templates/zess_global/99/essfunctions.html" contains syntay errors

and therefore could not be compiled.

Cause of error: Function "stylesheet" is defined twice in template

"templates/iac/dm/generator.html". The

syntax error is in row: 14, column: 10

The erroneous HTMLB lines is:

"function Stylesheet()`"

I don't know where it is calling the template "templates/zess_global/99/essfunctions.html"

Eventhough I am including the service zess_global, the html 'essfunctions.html' is not included. The include is like this:

include(~service="zess_global", ~language="", ~theme="99", ~name="zessfunctions_46B.html")

Thanks & Regards,

Soumya.