Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Econnect enabled Status checking in the Server

(0) ShareShare
ReportReport
Posted on by

Hi all,

when i'm checking the eConnect enabled status ,the system throws below error 

Method not found: 'Void Microsoft.Dynamics.GP.eConnect.Serialization.eConnectOut.set_DOCTYPE(System.String)


and even it is not showing where is the error occurs (line wise).My code is below .please tell me why i'm getting this error

 

bool isEnable = false;
using (eConnectMethods eConnectMethod = new eConnectMethods())
{
try
{
string result = string.Empty;
eConnectOut myRequest = new eConnectOut();
myRequest.DOCTYPE = defaultUOM;
I95DevLog.LoggingIntoText(myRequest.DOCTYPE, I95DevLogMessages.GPConnectionTest, I95DevLog.LogType.Information);
myRequest.OUTPUTTYPE = 1;
myRequest.FORLIST = 0;
myRequest.ACTION = 0;
// Create the eConnect requester XML document object
RQeConnectOutType[] eConnectOutType = new RQeConnectOutType[1] { new RQeConnectOutType() };
eConnectOutType[0].eConnectOut = myRequest;
eConnectType eConnectDoc = new eConnectType();
eConnectDoc.RQeConnectOutType = eConnectOutType;
// Serialize the object to produce an XML document
MemoryStream memoryStream = new MemoryStream();
XmlSerializer serializer = new XmlSerializer(typeof(eConnectType));
serializer.Serialize(memoryStream, eConnectDoc);
memoryStream.Position = 0;
XmlDocument gpConnectDocument = new XmlDocument();
gpConnectDocument.Load(memoryStream);
result = eConnectMethod.GetEntity(sConnectionString, gpConnectDocument.OuterXml);
if (!string.IsNullOrEmpty(result))
{
isEnable = true;
}
}

 

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans