IF OK THEN STOPSESSION(SessionEvent.”Session ID”, ‘Logoff cache stress test session’)The bit above stops session regardless it has finished executing the code or not. Most likely the new session have not managed to execute anyting before it got killed.
OK := STARTSESSION(SessionEvent.”Session ID”, CODEUNIT::ChangeCompany, CompanyDest, Prueba); IF NOT OK THEN ERROR(‘The session was not started successfully.’);
Answers
Try with
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03