problems with table 2000000047 in a web services
gorvega79
Member Posts: 73
Hi all
i have a problem with table 2000000047 Server when i try to get a value from a function of the web service, in the explorer i can see the services well and i can add a reference in visual studio 2008 without problems and compiling fine. but when i´m using the program and call to the web services the error is :
"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. "
the user is in domain and have administrator rights, the web services are running with that user and delegation is ok,the licence is ok, the user´s spns are ok. i don´t know where is the problem ](*,)
the program in the c# is
int vStock;
string vProd="",vlocation="";
vProd = "DARCHIVADOR";
vlocation = "EBI";
var vConWS = new vRefWs.CodeunitStock_Binding();
vConWS.UseDefaultCredentials = true;
vStock = vConWS.SacarStock(vProd,vlocation);// here is the problem
MessageBox.Show("the stock is:"+Convert.ToString(vStock));
thank you so much.
i have a problem with table 2000000047 Server when i try to get a value from a function of the web service, in the explorer i can see the services well and i can add a reference in visual studio 2008 without problems and compiling fine. but when i´m using the program and call to the web services the error is :
"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. "
the user is in domain and have administrator rights, the web services are running with that user and delegation is ok,the licence is ok, the user´s spns are ok. i don´t know where is the problem ](*,)
the program in the c# is
int vStock;
string vProd="",vlocation="";
vProd = "DARCHIVADOR";
vlocation = "EBI";
var vConWS = new vRefWs.CodeunitStock_Binding();
vConWS.UseDefaultCredentials = true;
vStock = vConWS.SacarStock(vProd,vlocation);// here is the problem
MessageBox.Show("the stock is:"+Convert.ToString(vStock));
thank you so much.
0
Answers
-
Did you try Compiling table 2000000047?0
-
thank you mohana
but how can i compile this table if i can´t watch it, i have developer licence but in the object designer i cant watch server table then i don´t know how compile the table.0 -
Have any of you modified server name by any chance?
create a new form with wizard and try.0 -
hi again
the server table has never modified and i can create a form with server table without problems. any idea.
thank you0 -
Unfortunatelly It is not possible to work with table 2000000047 (Server) in RTC as wel as through Webservices.
You can check this topic for more info. viewtopic.php?f=32&t=36277&start=00 -
thank you
but, we don´t want do anything with the server table, we have a problem with table, we execute a function from a codeunit that we call with the web service but in the codeunit there aren´t references about server table, nothing. we want to consume the web service but we don´t do nothing to this table0 -
Probably your codeunit calls, in turn, other codeunit (or another object). And this other object can have the reference to Server table...0
-
hello
i find the mistake in the codeunit 1 I have this code:
CLEAR(Tserver);
Tserver.SETRANGE("My Server",TRUE);
IF Tserver.FINDFIRST THEN BEGIN
IF Tserver."Server Name" = 'nameserver' THEN
MESSAGE('You are working in ausbert database');
END;
with the function ISSERVICETIER only process the code if that code is called from a webservice.
IF NOT ISSERVICETIER THEN BEGIN
CLEAR(Tserver);
Tserver.SETRANGE("My Server",TRUE);
IF Tserver.FINDFIRST THEN BEGIN
IF Tserver."Server Name" = 'nameserver' THEN
MESSAGE('You are working in ausbert database');
END;
thank you for all!!!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
