cancel
Showing results for 
Search instead for 
Did you mean: 

NW IDM Javascript question

Former Member
0 Kudos

Hi folks.

Having some trouble with a script in NW IDM under the JAVA engine.

I keep getting the error: Executing idcreator(foo) got RuntimeException - undefined: "uErrMSG" is not defined. HINT: Check line 47 in the script idcreator

Lines 45 - 47 read:


		var StatusMsg = '';
		StatusMsg = InfoName & 'There are less than 1000 unique IDs remaining.';
		UserFunc.uErrMSG(2, StatusMsg);

Anyone have any ideas?

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

oliver_nocon
Participant
0 Kudos

Hi,

check your spelling, you now have "uErrMag".

uErrMsg should so the job.

Best regards,

Oliver

Former Member
0 Kudos

Hi Matt,

I once had trouble with a self created script because I miscounted the opening and closing .

The problem was, the script generator did not locate the error in the correct line number.

Maybe it's just that simple in your case?

Former Member
0 Kudos

Nope, that was a type of a typo (that's what you get for typing in manually.

Former Member
0 Kudos

Thomas,

That was not it, but when I was reviewing the code I did find some structural problems and in fixing those, the script is now working better. Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Matt,

are you sure that the ' ' have not to be replaced by " " ?

But the real problem seems to be the spelling of uErrMsg.

Just my thoughts by now, I cannot test that right now, but I guess there is a difference between uErrMSG and uErrMsg.

Best regards

Dominik

Former Member
0 Kudos

Nice catch, but I still get the error:

Executing idcreator(foo) got RuntimeException - undefined: "uErrMag" is not defined. HINT: Check line 47 in the script idcreator

Thanks,

Matt