ENS ,ENSLIB Tables not able to access from my namespace
{ ClassMethod FetchMsgCount() As %Integer
{
set msgCount=-1
&sql(SELECT count(ID) INTO :msgCount FROM Ens.MessageHeader)
If SQLCODE=0 Quit msgCount
Quit SQLCODE
}
This class method always giving -30 , means Table does not exist.
note: my namespace extends %sys
Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1 (Build 215U) Mon Mar 30 2020 20:14:33 EDT
What do you mean by "my namespace extends %sys"
This makes no sense to me.
Did you setup the namespace yourself ?
you seem to miss this mapping by failed installation
and eventually also these databases
Thanks Rabert for quick reply.
when i created mynamespace in management portal, below log created.
Good Morning,
Now the case seems rather clear to me:
Hi Robert,
Can't thank enough .. That's just spot on...!
Thank you so much for the detailed explanation, knowledge on these basic things are very much an asset for a newcomer like me.
Thanks again.
On top of Robert's answer, I would add - why are you copying from another namespace at all? If you just need the standard interoperability mappings, those get generated from the "enable namespace for Interoperability productions" checkbox.
You can't run 2 productions (even if you assign 2 namespaces) from the same databases simultaneously, so I would probably avoid "copy from" in general, particularly because you are trying to use EnsLib code.
There are probably specific cases where you might want to copy a namespace from another one, but I'd be cautious and make sure that copying is what you actually want.
edit: I am unsure whether using "copy from" on HSSYS is a good idea. Personally, I haven't done that, but I would be concerned that you might have similar issues to copying from %SYS, as HSSYS is a shipped database.
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue