When I exported vouchers based on a specific date and then imported them into Tally, all the vouchers were duplicated. However, on a subsequent attempt to import the same set of vouchers, they did not duplicate. Can Anyone explain why this happened. For example, I exported four vouchers from Tally and then imported them. After importing, the number of vouchers doubled to eight. However, when I attempted to import the same four vouchers again, they did not duplicate, and the voucher count remained at eight. Can you explain why this occurred? Note: This happens only with portable Tally Prime exe. When I tried with locally installed exe, there was no issue.
As I Explained here Alter/Create Voucher request is not working properly in Tally portable exe | TDLeXperts-World's first online TDL (Tally Definition Language) community If you send voucher with RemoteId, it will alter if voucher with same remoteId exists else, it will create new one. To clarify on portable Tally Prime, every installation of tally is portable exe only. So, there will be no difference in app whether you copied from folder or installed through installer.
The issue was resolved when the "Overwrite voucher when a voucher with the same GUID exists" option was set to "Yes" in the Import configuration in Tally. Now, I would like to know if it's possible to retrieve this tag value using a TDL XML request.
You can set any import configuration through static variables For this setting use SVOverwriteImpVch Code: <STATICVARIABLES> <SVOverwriteImpVch>Yes</SVOverwriteImpVch> </STATICVARIABLES>
Can you please modify this request so that It works for me. I just want to update this setting to'YES' Code: <ENVELOPE> <HEADER> <VERSION>1</VERSION> <TALLYREQUEST>Import Data</TALLYREQUEST> <TYPE>Import Configuration</TYPE> </HEADER> <BODY> <DESC> <STATICVARIABLES> <SVOverwriteImpVch>Yes</SVOverwriteImpVch> <SVCURRENTCOMPANY>Approved2</SVCURRENTCOMPANY> </STATICVARIABLES> </DESC> </BODY> </ENVELOPE>
Not like that Use the same voucher XML you use to post data just add the required setting to staticVariable Code: <ENVELOPE> <HEADER> <TALLYREQUEST>Import Data</TALLYREQUEST> </HEADER> <BODY> <IMPORTDATA> <REQUESTDESC> <REPORTNAME>Vouchers</REPORTNAME> <STATICVARIABLES> <SVCURRENTCOMPANY>CompanyName</SVCURRENTCOMPANY> <SVOverwriteImpVch>Yes</SVOverwriteImpVch> </STATICVARIABLES> </REQUESTDESC> <REQUESTDATA> <TALLYMESSAGE xmlns:UDF="TallyUDF"> <VOUCHER> .....Data .. </VOUCHER> </TALLYMESSAGE> </REQUESTDATA> </IMPORTDATA> </BODY> </ENVELOPE>
I want this XML request setting to overwrite the GUI -("Overwrite voucher when a voucher with the same GUID exists" option ) setting. For example , If in XML request i have mentioned overwrite as "yes " . but in Tally GUI the setting is "no". This is causing exceptions . I want the XML setting to override the GUI setting . Can I do it ? If yes , how?
the value you send in SVOverwriteImpVch will be taken into consideration irrespective what is set in Tally
can u please tell me how to set this using XML request? Can I use "<SVOverwriteImpVch>Yes</SVOverwriteImpVch>" while importing transactions also?
it is not working, its creating duplicate vouchers in tally. I have set "Overwrite voucher when a voucher with the same GUID exists" option to No in GUI(tally). and imported 'daybook ' report exported from tally by adding below tag as you mentioned,still not working.