Exercise 1

Import Stock Item Masters

Published


This exercise teaches you how to import Stock Item master data from Excel into Tally Prime. To keep it simple, we have taken a Excel sheet that contains only one Column i.e. the Stock-Item Names. Herein, we will use the COLUMNREFERENCE attribute to fetch data from a specific Excel column.

Step 1 — Prepare the Excel sheet

Create a simple Excel sheet with few Stock Item records — one stock item per row.

Step 2 — Write the XML tags in a separate file

Open Notepad (or any plain-text editor) and write the following XML tags:

<XMLTAGS CELLREFERENCE="A1" xmlns:UDF="TallyUDF">
    <MASTER TYPE="STOCKITEM">
        <NAME.LIST>
            <!-- Fetch the value for NAME from Column A of the Excel sheet -->
            <NAME COLUMNREFERENCE="A"/>
        </NAME.LIST>
    </MASTER>
</XMLTAGS>
Note:
  1. COLUMNREFERENCE="A" instructs udiMagic to pull the Stock Item name from Column A of the Excel sheet — see udiMagic XML tags for the full tag/attribute reference.
  2. Comments are written using the <!-- --> syntax.

Step 3 — Save the file

Save it as stock-item-master-xml-tags.xml. In the Save as type box, choose All Files — otherwise Notepad appends .txt and you'll end up with stock-item-master-xml-tags.xml.txt instead.

Step 4 — Import into Tally

  1. Start Tally Prime and open the company you want to import into.
  2. Minimize Tally (leave it running).
  3. Start udiMagic and select Excel to Tally.
  4. Select option Masters.
  5. Browse to select both the Excel sheet and the XML tags file — you're prompted for the XML file on the same screen as the Excel sheet.
  6. Follow the wizard to complete the import.
Sample files: The sample Excel sheet and matching XML tags file for this exercise will be linked here shortly.

Ready to import your Excel data into Tally?

Download udiMagic and start a 14-day free trial — no credit card required.

Download udiMagic View Pricing