Disable HTTP logs from XML Request while export/import data.

Discussion in 'Tally Integration' started by Bhushan Cellica, Dec 2, 2019.

    

  1. Hello All,

    I have tried to export or import data from Tally ERP 9, i observe that "TallyHTTP.log" file size increases.

    I want to disable logging data in that file from each XML request i sent to Tally.

    I have tried sending "DISABLELOG" header with "YES" value, but still logs are increasing in "TallyHTTP.log" file.

    Please guide me, how to disable it without change in Tally Configuration ?

    Thanks in Advance.
    Bhushan Akole.
     
    Last edited: Dec 2, 2019


  2. teja varma

    teja varma Active Member


    set this flag while sending request:
    Code:
    <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
     



  3. Thanks for your reply.
    I will try it and update about it.
     



  4. I have tried it in request XML, but HTTP Logs are increasing same request xml written to log file.

    Following is the request xml tried for testing,
    Code:
    <ENVELOPE>
       <HEADER>
         <TALLYREQUEST>Export Data</TALLYREQUEST>
       </HEADER>
       <BODY>
         <EXPORTDATA>
           <REQUESTDESC>
             <REPORTNAME>Bills Receivable</REPORTNAME>
             <STATICVARIABLES>
               <SVCURRENTCOMPANY>DEMO Company</SVCURRENTCOMPANY>
               <SVEXPORTFORMAT>$$SysName:xml</SVEXPORTFORMAT>
               <SVENABLEHTTPLOG>NO</SVENABLEHTTPLOG>
             </STATICVARIABLES>
           </REQUESTDESC>
         </EXPORTDATA>
       </BODY>
    </ENVELOPE>
    
    Please guide me if i use it wrongly.

    Thank You,
    Bhushan Akole.
     


  5. teja varma

    teja varma Active Member


    try this one:
    Code:
    <ENVELOPE>
        <HEADER>
            <VERSION>1</VERSION>
            <TALLYREQUEST>Export</TALLYREQUEST>
            <TYPE>Data</TYPE>
            <ID>Bills Receivable</ID>
        </HEADER>
        <BODY>
            <DESC>
                <STATICVARIABLES>
                    <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
                    <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
            </STATICVARIABLES>
             </DESC>
        </BODY>
    </ENVELOPE>
    
     



  6. Thanks for prompt reply.
    But its not working yet.

    Following is the log entry added in TallyHTTP.log" file

    Code:
    Server::REQUEST
    Time : 18:50:40
    ================
    REQUEST XML
    <ENVELOPE>
      <HEADER>
      <VERSION>1</VERSION>
      <TALLYREQUEST>Export</TALLYREQUEST>
      <TYPE>Data</TYPE>
      <ID>Bills Receivable</ID>
      </HEADER>
      <BODY>
      <DESC>
      <STATICVARIABLES>
      <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
      </STATICVARIABLES>
      </DESC>
      </BODY>
    </ENVELOPE>
    
     


  7. teja varma

    teja varma Active Member


    it will work for next requests
    because it is set yes previously so we are sending the xml request to tally to disable http log but that log will be created for that request
    so you send the disable log request first and then remaining requests next......
     



  8. I think the way i am doing this it is not working yet.

    For each request same log is added to "TallyHttp.log" file.

    Log extract
    Code:
    Server::REQUEST
    Time : 19:09:54
    ================
    REQUEST XML
    <ENVELOPE>
      <HEADER>
      <VERSION>1</VERSION>
      <TALLYREQUEST>Export</TALLYREQUEST>
      <TYPE>Data</TYPE>
      <ID>Bills Receivable</ID>
      </HEADER>
      <BODY>
      <DESC>
      <STATICVARIABLES>
      <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      </STATICVARIABLES>
      </DESC>
      </BODY>
    </ENVELOPE>
    
    
    Server::REQUEST
    Time : 19:12:08
    ================
    REQUEST XML
    <ENVELOPE>
      <HEADER>
      <VERSION>1</VERSION>
      <TALLYREQUEST>Export</TALLYREQUEST>
      <TYPE>Data</TYPE>
      <ID>Bills Receivable</ID>
      </HEADER>
      <BODY>
      <DESC>
      <STATICVARIABLES>
      <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
      </STATICVARIABLES>
      </DESC>
      </BODY>
    </ENVELOPE>
    
    
    Server::REQUEST
    Time : 19:12:09
    ================
    REQUEST XML
    <ENVELOPE>
      <HEADER>
      <VERSION>1</VERSION>
      <TALLYREQUEST>Export</TALLYREQUEST>
      <TYPE>Data</TYPE>
      <ID>Bills Receivable</ID>
      </HEADER>
      <BODY>
      <DESC>
      <STATICVARIABLES>
      <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
      </STATICVARIABLES>
      </DESC>
      </BODY>
    </ENVELOPE>
    
    
    Server::REQUEST
    Time : 19:12:11
    ================
    REQUEST XML
    <ENVELOPE>
      <HEADER>
      <VERSION>1</VERSION>
      <TALLYREQUEST>Export</TALLYREQUEST>
      <TYPE>Data</TYPE>
      <ID>Bills Receivable</ID>
      </HEADER>
      <BODY>
      <DESC>
      <STATICVARIABLES>
      <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      <SVENABLEHTTPLOG>No</SVENABLEHTTPLOG>
      </STATICVARIABLES>
      </DESC>
      </BODY>
    </ENVELOPE>
    
    Does we need to perform any other thing with this ?

    Thanks,
    Bhushan Akole
     


  9. teja varma

    teja varma Active Member


    first check in f12 configuration weather enable http log field setting to no or not by making it yes before sending request then you check the log
     



  10. Same thing happen, logs are generating in TallyHTTP.log" file and f12 configuration for enable http log changes to "No".
     


  11. teja varma

    teja varma Active Member


    yes so you have this request every-time in order to disable log if enabled
    but that will be logged
    only request send after making log to no will not record in the log file
    so you have make sure to send log disabling request first before sending other request
     



  12. Logs are generating for each request.

    I think the Tally ERP 9 Version 6.0.1 has some issue for HTTP Log.
    I will give a try for another version and update you the status of working.

    Thanks.
     


Share This Page