Error for getting List of Comapnies in Tally Prime

Discussion in 'Tally Integration' started by Researcher, Nov 19, 2020.

    
  1. Researcher

    Researcher New Member


    To get "list of companies" i am using Below xml request. It was working fine with old versions of Tally.
    But not working in tally prime version.

    Xml request:
    Code:
    <ENVELOPE><HEADER><TALLYREQUEST>Export Data</TALLYREQUEST></HEADER><BODY><EXPORTDATA><REQUESTDESC><REPORTNAME>List of Companies</REPORTNAME><STATICVARIABLES><SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT></STATICVARIABLES></REQUESTDESC></EXPORTDATA></BODY></ENVELOPE>
    Response from tally prime version :
    Error only for Getting list of companies. How to solve this Problem?
     


  2. teja varma

    teja varma Active Member


    read the error message, it tells you what the problem is
    'list of companies' is not a report
    it is a collection, that's why it not able to found a report 'list of companies'
     


  3. Researcher

    Researcher New Member


    How to get "list of companies" in tally prime using xml request? can anyone please suggest the xml request for getting " list of companies" in tally prime.
     



  4. In Tally Prime there is no ‘List of companies’ report
     


  5. Sai Vineeth

    Sai Vineeth Active Member


    Since Prime update I am also getting same error so am searching for solution and found this post,
    Now I got solution for this error

    Code:
    <ENVELOPE>
    <HEADER>
    <VERSION>1</VERSION>
    <TALLYREQUEST>Export</TALLYREQUEST>
    <TYPE>Data</TYPE>
    <ID>List of Companies</ID>
    </HEADER>
    <BODY>
    <DESC>
    <TDL>
    <TDLMESSAGE>
    <REPORT NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <FORMS>List of Companies</FORMS>
    </REPORT>
    <FORM NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <TOPPARTS>List of Companies</TOPPARTS>
    <XMLTAG>"List of Companies"</XMLTAG>
    </FORM>
    <PART NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <TOPLINES>List of Companies</TOPLINES>
    <REPEAT>List of Companies : Collection of Companies</REPEAT>
    <SCROLLED>Vertical</SCROLLED>
    </PART>
    <LINE NAME="List of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <LEFTFIELDS>Name</LEFTFIELDS>
    </LINE>
    <FIELD NAME="Name" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <SET>$Name</SET>
    <XMLTAG>"NAME"</XMLTAG>
    </FIELD>
    
    <COLLECTION NAME="Collection of Companies" ISMODIFY="No" ISFIXED="No" ISINITIALIZE="No" ISOPTION="No" ISINTERNAL="No">
    <TYPE>Company</TYPE>
    </COLLECTION>
    </TDLMESSAGE>
    </TDL>
    </DESC>
    </BODY>
    </ENVELOPE>

    You will get Response(If Company or Companies is opened)

    Code:
    <LISTOFCOMPANIES>
    <NAME>ABC Company</NAME>
    <NAME>Test</NAME>
    </LISTOFCOMPANIES>
    
     
    Last edited: Nov 25, 2020
    Sushant Garg likes this.


  6. s.srini

    s.srini New Member


    TallyPrime XML Request are slight different from TallyERP, some of the additional TDL codes are required for List Of companies,
    click to view TDL structure in xml request
    Getting List of Companies
     
    Sushant Garg likes this.


Share This Page