Index: /trunk/grails-app/services/InventoryCsvService.groovy
===================================================================
--- /trunk/grails-app/services/InventoryCsvService.groovy	(revision 720)
+++ /trunk/grails-app/services/InventoryCsvService.groovy	(revision 721)
@@ -13,4 +13,5 @@
 
     def dateUtilService
+    def createDataService
 
     def g = new org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib()
@@ -37,6 +38,10 @@
             CSVReader reader = new CSVReader(sr)
 
+            // Turn off index mirroring.
+            createDataService.stopSearchableIndex()
+
             def fail = { Map m ->
                 status.setRollbackOnly()
+                createDataService.startSearchableIndex() // Start mirroring again and rebuild index.
                 reader.close()
                 result.error = [ code: m.code, args: m.args ]
@@ -52,5 +57,5 @@
             def line = []
             def lineNumber = 0
-            def maxNumberOfColumns = 20
+            def maxNumberOfColumns = 19
             def inventoryParams = [:]
             def inventoryProperties = ["name", "description", "comment", "unitsInStock", "reorderPoint", "reorderQuantity",
@@ -351,4 +356,5 @@
             // Success.
             log.info "End of file."
+            createDataService.startSearchableIndex() // Start mirroring again and rebuild index.
             reader.close()
             return result
@@ -409,5 +415,5 @@
                                         "123", "Multi Supplier@Local",
                                         "Multi Distributors1@OEM; Multi Distributors2@Local",
-                                        "2204E-2RS", ""
+                                        ""
                                         ] as String[])
 
@@ -422,5 +428,5 @@
                                         "456KL", "Multi Supplier",
                                         "Multi Distributors1; Multi Distributors2",
-                                        "", ""
+                                        ""
                                         ] as String[])
 
@@ -688,5 +694,5 @@
             "Estimated Unit Price", "Currency", "Enable Reorder", "Location*", "Store*", "Site*", "Group*", "Type*",
             "Supplier's Part Number", "Preferred Supplier", "Alternate Suppliers",
-            "Alternate Item", "Spare For"]
+            "Spare For"]
     }
 
