I am getting the error "\r\n Could not set 'SVCurrentCompany' to 'ECAPWEB'\r\n\r\n" from tally.
I have used a dot.net code to import data to tally but is giving me this error. I was able to integrate it preveously but now I am getting the above error does anyone know when does this error come
The code I used is
String xmlstc = "";
xmlstc = "<ENVELOPE>\r\n";
xmlstc = xmlstc + "<HEADER>\r\n";
xmlstc = xmlstc + "<TALLYREQUEST>Import Data</TALLYREQUEST>\r\n";
xmlstc = xmlstc + "</HEADER>\r\n";
xmlstc = xmlstc + "<BODY>\r\n";
xmlstc = xmlstc + "<IMPORTDATA>\r\n";
xmlstc = xmlstc + "<REQUESTDESC>\r\n";
xmlstc = xmlstc + "<REPORTNAME>All Masters</REPORTNAME>\r\n";
xmlstc = xmlstc + "<STATICVARIABLES>\r\n";
xmlstc = xmlstc + "<SVCURRENTCOMPANY>" + DIMP + " </SVCURRENTCOMPANY>\r\n";
xmlstc = xmlstc + "</ STATICVARIABLES >\r\n";
xmlstc = xmlstc + "</REQUESTDESC>\r\n";
xmlstc = xmlstc + "<REQUESTDATA>\r\n";
xmlstc = xmlstc + "<TALLYMESSAGE xmlns:UDF=" + "\"" + "TallyUDF" +"\">\r\n";
xmlstc = xmlstc + "<LEDGER NAME=" + "\"" + name + "\" Action =" + "\"" + "Create" + "\">\r\n";
xmlstc = xmlstc + "<NAME>" + name + "</NAME>\r\n";
xmlstc = xmlstc + "<PARENT>" + "Sundry Debtors" + "</PARENT>\r\n";
xmlstc = xmlstc + "<OPENINGBALANCE>" + balance + "</OPENINGBALANCE>\r\n";
xmlstc = xmlstc + "<ADDRESS.LIST TYPE=\"String\">\r\n";
foreach (var item in str)
{
xmlstc = xmlstc + "<ADDRESS>" + item + "</ADDRESS>\r\n";
}
xmlstc = xmlstc + "</ADDRESS.LIST>\r\n";
xmlstc = xmlstc + "<LEDSTATENAME>" + state + "</LEDSTATENAME>\r\n";
xmlstc = xmlstc + "<PINCODE>" + pincode + "</PINCODE>\r\n";
xmlstc = xmlstc + "<PARTYGSTIN>" + gst + "</PARTYGSTIN>\r\n";
xmlstc = xmlstc + "<GSTREGISTRATIONTYPE>Regular</GSTREGISTRATIONTYPE>\r\n";
xmlstc = xmlstc + "<ISBILLWISEON>Yes</ISBILLWISEON>\r\n";
xmlstc = xmlstc + "</LEDGER>\r\n";
xmlstc = xmlstc + "</TALLYMESSAGE>\r\n";
xmlstc = xmlstc + "</REQUESTDATA>\r\n";
xmlstc = xmlstc + "</IMPORTDATA>\r\n";
xmlstc = xmlstc + "</BODY>";
xmlstc = xmlstc + "</ENVELOPE>";
String xml = xmlstc;
String lLedgerResponse = SendReqst(xml);
string myXml = lLedgerResponse;
XmlDocument doc = new XmlDocument();
doc.LoadXml(myXml);`
I cheched the code & company name every thing is fine