NAS suddenly stopped using events

danlindstromdanlindstrom Member Posts: 130
Hi folks

I have a strange problem in Dynamics NAV 2018 CU27 (11.0.41203.0)
until june 11 it worked as supposed but after that...

We have (from a ISV) configured a separate instance that are running a special codeunit (cod123456), startupMethod = NAShandler and a startupparameter.
for the selected parameter a second SingleInstance-codeunit with a timer is called that reads a incoming buffer.
Depending on the record in the buffer, table A is created and/or modified...
So far no problem!

codeunit C has some EventSubscribers listening for A.OnAfterModifyAEvent and A.OnAfterInsertAEvent to store some data in another buffertable B

BUT since June 11 this is not the case anymore

(Table A has data FROM a handheld integration, Table B is for sending data TO a planning system)

If a user modifies table A manually in a client, it works.

Any suggestions?
Transfer the solution to a JobQueue or Webservice is not an option.
Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009

Answers

  • RockWithNAVRockWithNAV Member Posts: 1,139
    Anything on Event Viewer?
  • danlindstromdanlindstrom Member Posts: 130
    Nothing (exept the usual) in the EventLog
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
  • SanderDkSanderDk Member Posts: 497
    From previous version af NAV (2016) I have had a problem with event not being triggered after tables are compiled (Later fixed by MS in a CU). The solution on NAV 2016 was to compile all codeunit that had a subscript function.

    I do not know if the problem could be the same (I do not hope so), but try to compile all Codeunits on the separate instance?
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • danlindstromdanlindstrom Member Posts: 130
    Tried that :(
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
  • danlindstromdanlindstrom Member Posts: 130
    The missing events was something totaly different.
    It was a 'hidden' modify deep into the code that made the subscriber think it was an un-modified record (Rec = xRec)
    CodeunitA modified some fields in TableA (TableA<>xTableA), TableA modified some values in TableB but now the functionallty with xRec is no longer working (TableB=xTableB) and the subscriber is listening to changes of som fields in TableB :(
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
Sign In or Register to comment.