Andy..
3rd June 2009, 17:25
I'm trying to compile an old report, that was supposed to be working last year - but now find that it won't compile with an error at line '321'. There aren't 321 lines in the report script, so assume its referring to the temp compile file. Here's the rep_gen results:

rtisfc040807wsc2:
repgen '2tiB40Cc4livesfc040807wsc' -c 'tiB40Cc4live' -o "d:\baan\tmp\tmp0811429
31" -qe "d:\baan\tmp\tmp081142932" -x "d:/baan/tmp/tmp081142933"
2tiB40Cc4livesfc040807wsc: Warning: Section 'detail.9' defined but never used.
bic -w "d:\baan\tmp\tmp081142931" -d ottstprepdll -u -o rtisfc040807wsc2 -f "d:\
baan\tmp\tmp081142930" -qe "d:\baan\tmp\tmp081142932"
tmp081142931( 321): Error: 'ser' not declared
2 warnings suppressed due to errors.
1 ERROR REPORTED.


I can't find referece to 'ser' anywhere in the report (input fields, script) - but if I add :

string ser(666)

to the report script it does compile! (BTW, if you make ser or type that isnt string it says error long=string)

I don't like the idea of modifying code without knowing why, and wonder what else might be different/wrong - any ideas what's going on here?

mark_h
3rd June 2009, 20:26
Post the script if possible. Is "ser" there absolutely anywhere? Just wondering if a control character got into the script, looking like a new line or something. Windows or UNIX for the server?

Andy..
3rd June 2009, 23:34
Post the script if possible. Is "ser" there absolutely anywhere? Just wondering if a control character got into the script, looking like a new line or something. Windows or UNIX for the server?

Mark, thanks for your reply - I dont think I can paste the script, but I'll check. In the meantime, I pasted the script into a similar report for the same session and it compiles fine. So, this string 'ser' seems to be 'in a part of the report that is NOT the report script'!

How can this be??

PS - its windows server, BaanIVc4 with fairly recent service pack

ashu2814
4th June 2009, 05:48
It may be added on the report layout without decalring in script or inserting in input fields. Please check that also.

en@frrom
4th June 2009, 11:12
It looks from your description that somewhere in your layout you have a misplaced "ser". Note: this may be as a report field, but also as a condition, initial value, expression, etc. So your best bet is to go carefully through your entire layout.

Andy..
5th June 2009, 12:32
Hi, thanks for you inputs. There was a field called 'ser' on the layout that wasnt defined as an imput - it turns out the report script had somehow got out of sync with the layout. Not sure how it happened, but was before my time!