title: Magento Category Import Manually Specify ID
body: <p>I am currently trying to setup an import script that will read from a CSV file a list of categories with ID numbers and what i would like to do is insert the categories into the root category of the default website but with a specific ID so that i can the insert products into categories by ID number.</p>
  
  <p><a href="http://www.sonassi.com/knowledge-base/quick-script-batch-create-magento-categories/" rel="nofollow">http://www.sonassi.com/knowledge-base/quick-script-batch-create-magento-categories/</a></p>
  
  <p>I am currently using the script from the link above and would like to know if anyone can tell me where i insert the setId() code, i have tried it in several places and it just cancels out the parentId so all the categories are created in the root of the system rather than in the root folder for default store.</p>
  
  <p>I have manually set the parentId to the main root folder of the default site so they should all be created in the same place and if i don't set the ID manually it does create them in the correct place so i think the problem is just syntax, the only problem if i don't set the root folder when they are created in the correct place they have dynamic category id's not the required static ones.</p>
  
  <p>Thanks in Advance.
  Brad</p>