NAV 2009 R2, error CS0019

DoomhammerDoomhammer Member Posts: 211
edited 2013-06-05 in NAV Three Tier
Hello

we have problem with error CS0019 in sales documents, error is pointing to table 37. in classic client, we tried to compile all objects including pages but everything seems OK
sales document are working fine in classic client. but when someone tries to open sales docs in RTC, following error shows:
beznzvuvoun3.png
(sorry, I did not figure out how to set this error to english :) I set RTC to english but I think this error is generated by .NET)

I tried to attach debugger to service tier and to debug T37.cs but VS debugger did not stop on any error

please can anybody point me right direction? I searched for CS0019 but I did not find anything specific concerning RTC.

thanks in advance....
Martin Bokůvka, AxiomProvis

Answers

  • mdPartnerNLmdPartnerNL Member Posts: 802
    Open that file on the server and goto that line no 5917, it will give you a hint what is going on.
  • DoomhammerDoomhammer Member Posts: 211
    edited 2013-06-06
    thank you very much, it helped. on line 5947 was piece of code which worked in classic but was problematic in RTC:
    //    IF NOT (Item."Last Direct Cost" * "Qty. per Unit of Measure" IN [0,"Unit Cost (LCY)"]) THEN
        IF NOT ((Item."Last Direct Cost" * "Qty. per Unit of Measure" = 0) OR
                (Item."Last Direct Cost" * "Qty. per Unit of Measure" = "Unit Cost (LCY)")) THEN
    
    I removed testing via IN and problem was solved
    Martin Bokůvka, AxiomProvis
  • mdPartnerNLmdPartnerNL Member Posts: 802
    Good for you. :)
Sign In or Register to comment.