I am attempting to import transactions into Tally Prime using GUI by including the following lines in the XML request: Code: <STATICVARIABLES> <SVOverwriteImpVch>Yes</SVOverwriteImpVch> </STATICVARIABLES> This is intended to override the settings in the Tally Prime GUI. For example, if the GUI setting for "Overwrite voucher when a voucher with the same GUID exists" is 'no', specifying 'yes' in the XML request (SVOverwriteImpVch) should ideally change the GUI setting to 'yes'. While this functionality works as expected in Tally Prime 3.0.1, it seems to be causing following errors in version 4.0. Code: Can't import! Check tally.imp for details Line:XXXX :Voucher number 'YYYY' already exists! Could you please help me understand the reason behind this discrepancy in Tally Prime 4.0?
this error is coming because of settings in VoucherType if you disable that you can import voucher with same number, but it's not recommended.
This setting is already 'no' in our case. Please note that 'method of voucher numbering' is 'Automatic(manual override)' in our Tally prime.
I want to Alter the details in particular Voucher , If I change the voucher number ,it might create new voucher . which is not my requirement
then you can set Action="Alter" Refer this - Case Study 1 - XML Request and Response Formats (tallysolutions.com)
I aim to avoid making these changes for each voucher individually. Please note that the error occurs only for the companies created in Tally Prime 4. When I tested it with a company created in an older version, it worked as expected.