Of course you have table 2000000047 it's a virtual table like printers, so you can't see it in object designer but its there, session table is another one like that!
Just assign the number to a variable of type record and you will see that it exists!
hi all
i create codeunit to get server name
when i test it using message, it can show my server name
but when using webservice, there is an error message
Metadata for object of type Table with id 2000000047 is in a failed state. This is caused by a previous exception:
Table 2000000047 is not available and cannot be opened.
Table 2000000047 is a hidden table named as "Server" in Navision Database.
For the error -
Metadata for object of type Table with id 2000000047 is in a failed state. This is caused by a previous exception:
Table 2000000047 is not available and cannot be opened.
Please check by creating a form with table id 2000000047, if it didnt work then i think you are using an old version database( < 6SP1).
IF ISSERVICETIER THEN BEGIN
IF ISCLEAR(DomDoc) THEN
CREATE(DomDoc);
DomDoc.load(APPLICATIONPATH + 'CustomSettings.config');
DomNode :=
DomDoc.selectSingleNode(
'//appSettings/add[@key=''DatabaseServer'']');
MyServerName := DomNode.attributes.item(1).text;
end;
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Use form wizard to see..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Appreciate Your help satbir but looks like ms made it obsolete and nav returns error when using it
http://www.dynamics.is/?p=541
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Just assign the number to a variable of type record and you will see that it exists!
i create codeunit to get server name
when i test it using message, it can show my server name
but when using webservice, there is an error message
anybody know how to solve?
thanks
Table 2000000047 is a hidden table named as "Server" in Navision Database.
For the error -
Please check by creating a form with table id 2000000047, if it didnt work then i think you are using an old version database( < 6SP1).
Thanks & Regards,
Saurav Dhyani
http://saurav-nav.blogspot.in/
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
using this code
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks, Mohana!
Ron