Hi,
I have a strange problem with a new NAV 2016 (CU6). If I try run own codeunit like CU 50000 with code MESSAGE(‘Hello’); I get always RTC message “Object of type CodeUnit with ID 50000 could not be found”. Of course DEV licence for 2016.
I tried:
- restart RTC
- recompile all objects - some fails with not used addons (unknow variables for older version of dot net dll)
- sync with validate all
- restart server instance
- build server aplication objects
- renumber this CU
- export CU to fob, remove and import back
(Various combinations of this)
Event log at server or workstation nothing, just error message
It a little crazy/ghostly
First time a same CU worked.
SQL permissions are db_owner, for me and NAV service user too.
Any ideas ??
Thx!
check if the cu is compiled.
restart nav service.
check if you use the correct nav service instance and the correct company.
If still same problem, and Jonathan’s suggestions didn’t help, then try to UPLOAD your dev license again?
Hi,
I tried all this points, but without effect. But currently is problem solved, without “my” participated - I used same NAV server instance for different database and later mount back problematic db. My test CU was lost and if I created it again so worked.
but what was a root cause …??
If you test CU was lost, then I’m sure that you can find it again, when you find the correct database.
I’m sure that the issue was what Jonathan suggested, that you were using the wrong instance/database (company).
A method I use to test if I am in the correct company, is simply to edit one of the customers. Or change the company name… [:)]