Issues with Autobackup in Tally Prime

Discussion in 'Tally Developer' started by SAHIL BHATIA, Dec 29, 2022.

    
  1. SAHIL BHATIA

    SAHIL BHATIA New Member


    Hi.

    This backup file was working in tally erp9 but when I tried to import it in tally prime 2.1 it seems to give me error stating backup failed (Screenshot enclosed for full error)

    Digging deeper made me realise that the error is because of this function where I'm modifying date to suit my requirements as below

    [System: Formula]
    DestPath : ##DestinationPath + "\" + ##SVCurrentCompany + "\" + @@DateForm + "\" + @@TimeForm
    CoNumber : $$String:($CompanyNumber:Company:##SVCurrentCompany):5
    DateForm : $$String:mad:@DateStr
    DateStr : $$YYYYMMDDDateFormat:$$MachineDate:"-"

    Here if I change the DateForm : $$String:mad:@DateStr to DateForm : $$String:$$MachineDate

    The TDL works perfectly.

    The above code is just an extract and the entire TDL is attached for reference.

    I had posted this query in learning hub section but I haven't received a reply so I thought of posting it here again after reading all the rules. Forgive me if I missed something.
    Thanks in advance
     

    Attached Files:



  2. Santosh

    Santosh Member


    Try this code i m using in tally prime
     

    Attached Files:



  3. SAHIL BHATIA

    SAHIL BHATIA New Member


    Hi,

    Thank you for replying to the post but my query is not related to backup.
    The file that I have posted can also do backup but the issue is that I want the backup folder to be named as
    Company Name-> Date

    Now this date is created as 04-Jan-2023 but i want my date format to be like 2023-Jan-04.

    Now the command that i have posted was working with Tally ERP 9 but now it shows error in tally prime.
     


  4. Bipin Damania

    Bipin Damania Active Member


    Have you define this in any function ?

    $$YYYYMMDDDateFormat:$$MachineDate:"-"
     


  5. SAHIL BHATIA

    SAHIL BHATIA New Member


    Yes as you can see above this is defined under @DateStr
     


  6. Bipin Damania

    Bipin Damania Active Member


    I think you have to write function to get this format
     


  7. SAHIL BHATIA

    SAHIL BHATIA New Member


    I'm not sure about Tally Prime but this used to work on Tally ERP9 and is still working till now. I think its Date format issue as some changes have been made to date formatting in Tally Prime
     


  8. drive

    drive Active Member


    [Function: YYYYMMDDFormat]
    PARAMETER : pInputDate : Date
    VARIABLE : vInputVarDate : String
    VARIABLE : vInputVarMonth : String
    VARIABLE : vInputVarYear : String
    RETURN : String
    10 : IF : NOT $$IsEmpty:##pInputDate
    20 : SET : vInputVarDate : $$Zerofill:($$DayofDate:##pInputDate):2
    30 : SET : vInputVarMonth : $$Zerofill:($$MonthofDate:##pInputDate):2
    40 : SET : vInputVarYear : $$YearofDate:##pInputDate
    50 : RETURN : $$String:##vInputVarYear + $$String:##vInputVarMonth + $$String:##vInputVarDate
    60 : END IF
    70 : RETURN : ""
     


  9. Parag

    Parag New Member


    Hello Experts,
    Autobackup that worked in Tally Prime 2.1 is not working on Release 3.0
    Sharing the code for reference
    Getting the below error.

    upload_2023-6-29_16-41-29.png

    Please Help.
     

    Attached Files:



  10. ASHOK

    ASHOK Member


    Sir ji please change data company NO.

    Example ( 100000)
     
    Parag likes this.


  11. Coldfire

    Coldfire New Member




    Also happens in my case...I am Using Tally Prime3.0. it already migrated data to 100000 i.e six digit format
    Dont know what is the issue
     


  12. ASHOK

    ASHOK Member


    Sir ji please data path change kar do than try
     
    Gagan Jyoti likes this.


  13. Johar

    Johar Member



  14. drive

    drive Active Member



  15. vijendra singh

    vijendra singh New Member


    $$String:($CompanyNumber:Company:##SVCurrentCompany):6
     
    Mahesh Sethi likes this.


Share This Page