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>
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.- 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
- Start Tally Prime and open the company you want to import into.
- Minimize Tally (leave it running).
- Start udiMagic and select
Excel to Tally. - Select option
Masters. - 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.
- Follow the wizard to complete the import.
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