Import and export stock items
Find this screen
Open: Stock Control > Utilities > Import and Export > Import Stock Records.
Open: Stock Control > Utilities > Import and Export > Export Stock Records.
Open: Stock Control > Utilities > Import and Export > Import Stock Extensions.
How to
Create an import file for stock items
You can import stock items using a CSV Comma Separated Value (CSV) file format. Sage 200 can import and export data in the CSV file format. file.
-
Download the import information and example file:
- Stock Items import format (XLS): Details of the information you need to include in the file.
- Stock Items example CSV file: Use this to import from CSV format.
- Create your import file in the format of the CSV example file.
-
Read the information in the import format file (XLS), and make sure your information is correct and all mandatory fields are included.
- The required mandatory fields will depend on whether you are creating a new account or updating an existing account.
- Some fields can only be set when you create a new account, and can't be updated.
- Save your import file.
Create an import file for stock item extensions
If you import stock items from another system into Manufacturing, you can also import Manufacturing stock item details.
Note: You cannot import these unless you have imported the associated stock item records. Also, you cannot import data from Sage 50 Manufacturing.
Data is exported to and imported from an XML Extensible Markup Language (XML) file format. Sage 200 can import and export data in the XML file format. file.
Note: Sage can provide a conversion utility to convert a CSV Comma Separated Value (CSV) file format. Sage 200 can import and export data in the CSV file format. file into the required XML format. The conversion does not support the full range of values you can import in XML, but allows you to process key pieces of data. Ask your Business Partner for more information.
-
Download the import information and example file:
- Stock Item Extensions example XML file (opens in a new tab): Use this to import from XML format.
- Create your import file in the format of the XML example file.
- Save your import file.
These items relate to the Stock item record Manufacturing and Details tabs and the default manufacturing warehouse for the stock item (set when you add a warehouse on the Locations tab).
Item in Import File |
Item in Stock record |
Mandatory |
Use |
Notes |
---|---|---|---|---|
StockCode |
Code |
Yes |
This refers to the item in the Stock Control module. |
The stock item must exist in Stock Control. |
AggregateDays |
Aggregate Demand (days) | No |
|
Sets to 0.00 if left blank in the import file. |
WorksOrderBatchMinQty | Minimum order quantity | No | Sets to 0.00 if left blank in the import file. | |
WorksOrderBatchMaxQty | Maximum batch size | No | Sets to 0.00 if left blank in the import file. | |
CanCancelWorksOrders | MRP can cancel Works Orders | No |
Specify true or false. True specifies that works orders can be cancelled. |
True selects the check box in the Stock item Manufacturing tab. False leaves the check box clear. The check box is also left clear if this is left blank in the import file. |
CanCancelPurchaseOrders | MRP can cancel Purchase Orders | No |
Specify true or false. True specifies that purchase orders can be cancelled. |
True selects the check box in the Stock item Manufacturing tab. False leaves the check box clear. The check box is also left clear if this is left blank in the import file. |
MRPReplenishmentRulesTypeID | MRP Replenishment option | No |
|
Sets to 0.00 if left blank in the import file. |
MRPReplenishmentMultipleValue | Multiples quantity | No |
|
Sets to 0.00 if left blank in the import file. |
Linked | Allow linked under MRP | No |
Specify true or false. True specifies that MRP will treat the stock item as linked. |
True selects the check box in the Stock item Manufacturing tab. False leaves the check box clear. The check box is also left clear if this is left blank in the import file. |
UseDemandWarehouse | MRP Make Recommendation Location | No |
Specify true or false. True specifies that the demand/completion warehouse will be used to record the stock items in the warehouse specified on the works order. |
True selects the MRP Make Recommendation Location Use demand/completion Warehouse radio button in the Stock item Manufacturing tab. False selects the Use default Warehouse radio button instead. Use default Warehouse is also selected if this is left blank in the import file. |
UseWOCompletionWarehouse |
MRP Component Replenishment |
No |
Specify true or false. True specifies that the demand/completion warehouse is used to check for the stock items in the warehouse specified on the order. |
True selects the MRP Component Replenishment location Use demand/completion warehouse radio button in the Stock item Manufacturing tab. False selects the Use warehouse hierarchy radio button instead. Use warehouse hierarchy is also selected if this is left blank in the import file. |
ApplyReorderLevelAfterMaximum | Reapply Reorder Rule On Recommendation | No |
Specify true or false. True specifies that the MRP Replenishment option is reapplied to demand quantity after Maximum batch size is considered. |
True selects the check box in the Stock item Manufacturing tab. False leaves the check box clear. The check box is also left clear if this is blank in the import file. |
ReplenishmentHorizonDays | Replenishment Horizon (days) | No | Sets to 0.00 if left blank in the import file. | |
BuiltBoughtDefaultMake | Bom details | No |
Specify true or false. True specifies that BOMs are Built/Bought Default Built. |
True sets the Bom details Built/Bought setting to Default Built. False sets the Bom details Built/Bought setting to Default Bought. |
BulkIssue |
Bulk Issue |
No |
Specify true or false. True specifies that stock movements can be handled manually for this component. |
True selects the Bulk Issue check box in the Stock item Manufacturing tab. False leaves the check box clear. The check box is also left clear if this is blank in the import file. |
BomItemType |
Bom details |
Yes | Specifies the BOM item type of Component, Built, Phantom or Built/Bought. | The BOM details radio button is selected on the Stock item Details tab. |
DefaultWorksOrderWarehouse | Default Manufacturing Warehouse | Yes | Specifies the name of the default Manufacturing warehouse. |
The warehouse name must exist on the stock item. |
ScrapPercent |
Scrap Percentage |
No | ||
CostHeadingName | Cost Heading | Yes | Specifies the default cost heading for all stock items in the product group. | The cost heading must exist in Manufacturing System Manager. |
Validate your import file
Open: Stock Control > Utilities > Import and Export > Import Stock Records.
You can validate the file to make sure all the records are in the correct format and have the required mandatory fields. No records are imported
-
Select Validate records only and click OK.
-
Browse to your import file, select it and then click Open.
The file is checked and two reports are generated:
- The Update Report: Shows the valid records that would be successfully imported into Sage 200.
- The Update Report (Invalid): Shows the invalid records that would not be imported into Sage 200. The reason for the failure is shown in the report, and there may be more than one reason for the failure.
Note: The reports are displayed as a preview, printed, or sent to the spooler. This depends on the Output mode you have set.
Note: If you get a message "Unable to process the specified file", make sure your import file is closed and isn't open in any applications.
-
Check both reports to ensure that your records are complete and correct.
- Make any required corrections to the records in your import file.
- To revalidate your import file, repeat this process.
Import stock items
Stock items can be imported using a CSV file.
Note: You must first import or create the product groups for the stock items that you will import.
Open: Stock Control > Utilities > Import and Export > Import Stock Records.
- Select Validate and import records.
-
Choose whether you want to update existing items:
- If your import file contains existing items that you want to update, select Update stock record if it exists.
- If you don't want to update existing accounts, don't select Update stock record if it exists.
-
Choose what to do if items have new analysis codes or values that don't currently exist in Sage 200.
-
To import items with new analysis codes or values, select Ignore Invalid Analysis Codes.
If the code doesn't exist, the analysis code is not added to the stock item.
If the code exists and the values are new, the new value is added to stock item.
- If you don't select Ignore Invalid Analysis Codes and the analysis code or value doesn't exist in Sage 200, the stock item isn't imported.
-
-
Choose the warehouse(s) that new stock items will be associated with. The warehouse will be associated with new stock items only, it will not change the warehouses for existing stock items that you are updating.
Note: You must select a warehouse, even if you are only updating stock items.
Note: You can't import a stock item again for a different location (warehouse).
- Click OK.
-
Browse to the import file you created, select it and then click Open.
Sage 200 processes and imports the records. A report is produced that lists the imported valid records, and a second report is produced if there are any invalid records.
Note: The reports are displayed as a preview, printed, or sent to the spooler. This depends on the Output mode you have set.
Note: If you get a message "Unable to process the specified file", make sure your import file is closed and isn't open in any applications.
-
Check the reports to ensure that your records have been successfully imported.
-
Make any corrections required to the records in your import file.
Tip: We recommend that you remove those records that were successfully imported. As they can't be imported a second time, this stops them cluttering up your report.
- Repeat until all records are successfully imported.
Note: The import may take a long time to complete if you have a large number of items in the import file. For example, it might take 1 minute per 1,000 items in the import file. Therefore, it's a good idea to remove any unnecessary items from the import file. So if you're only updating 10 items in a file that has 10,000 items, then edit the import file so it only contains those 10 items.
Import stock item extensions
You cannot import manufacturing stock extensions unless you have imported the associated stock item records.
Open: Stock Control > Utilities > Import and Export > Import Stock Extensions.
Note: You can also import manufacturing stock item extensions using Manufacturing System Manager > System Utilities.
- Select Validate and import records.
-
Select Treat warnings as errors if you want to treat warning messages as error messages.
If an error is found in a record, the record will not be imported. If you select this option, then a warning in a record will also prevent the record from being imported.
- Click Import.
-
Select the import file and click Open.
Note: If you get a message "Unable to process the specified file", make sure your import file is closed and isn't open in any applications.
Note: If failures have occurred, see the generated report, investigate further and re-enter the stock item or stock item extension details.
Export stock items
Use this to export stock items to a file.
You can then make changes to your items using an external tool (such as Excel), and then import your updated information back into Sage 200.
Open: Stock Control > Utilities > Import and Export > Export Stock Records.
-
Choose the stock items to export.
-
Single stock item: Export a particular stock item.
Note: You can't select stock items that are inactive. To export inactive stock items, try exporting the product group that contains the item.
- Single product group: Export all stock items that are in a particular product group.
- All stock items: Export all stock items.
-
- Click OK.
- Specify a name for the export file and the required file type (CSV or XML), then click Save.
Useful info
About importing stock items
You can create stock items by importing data from another software package into Sage 200, or from one company in Sage 200 to another.
You can validate the import file before committing the data to the Stock Control module or you can proceed with the import once the file has been prepared. To do this there are two options available during the import activity.
- The Validate stock records only option checks the import file is correctly prepared. It checks the database identifiers are specified correctly and the data is compatible with existing data in your system's database, e.g. the cost centres and departments are valid. If invalid records are found, a report is generated detailing why the records have failed.
- The Validate and import stock records option checks the import file is correctly prepared as previously described, and then creates the new stock item records from the valid data. Invalid records are removed during the validation process. A report is generated detailing successful records and those that have failed.
All stock item types (Stock, Miscellaneous, Service/Labour) can be created. The stock type is determined from the product group you specify for a stock item in the import file. Other settings that are not specified in the import file but are derived from the product group are the search categories, units of measure and costing method.
If you are using multiple locations, the stock item locations are not specified in the import file. During the import activity you are prompted to select the warehouse(s) you intend to store the items in.
If you intend to use batch/serial numbered items, you must ensure a product group enabled for numbered items is specified for the relevant stock items. You cannot enable batch/serial numbers for a stock item once it has been created.
Bill of material (BOM) details cannot be included with the stock item using this activity.
Successful records are immediately applied to the Stock Control module and marked as active. Where the import file specifies a valid supplier and/or alternative item for a stock item, those details are marked as preferred on the stock item record.
After completing the import activity, you may need to access the new stock item records and make minor changes to the settings. For example, assign further suppliers or alternative items to the stock record or activate the required search categories for individual items.
Importing items to multiple warehouses
When you initially import the stock items using Import Stock Records, you choose which warehouse(s) the items are stored in. You can choose multiple warehouses, but don't forget, that'll mean all the items in the same CSV import file will be stored at all of the warehouses that you select.
So if you use multiple warehouse locations, there are different ways you could set the warehouses for your stock items.
-
When you initially import the stock items using Import Stock Records, you could organise the stock items into separate import CSV files for each warehouse location, or each group of warehouse locations.
For example, you might have three import files containing stock items that are in the Oxford warehouse, the Birmingham warehouse, and are in both the Oxford and Birmingham warehouse.
-
After you have imported the stock items, you could use Add Locations to Stock Records to add additional warehouses to a group of stock items. You would organise the stock items into separate import CSV files for each warehouse location, or each group of warehouse locations.
See Add locations (warehouses) to stock items.
Note - informationThis feature is only available from Sage 200 Professional 2023 R1 version onwards.
-
After you have imported the stock items, you could use Import Stock Record Locations to add additional warehouses to stock items on an individual basis.
See Import stock item locations (warehouses).
Note - informationThis feature is only available from Sage 200 Professional 2023 R1 version onwards.
You can also use a combination of these methods. For example, you might initially set the warehouses for large groups of your stock items using Import Stock Records and Add Locations to Stock Records. Next, you could export your stock locations using Export Stock Record Locations, then use Excel to update the warehouses for stock items on a more individual basis. Once you're finished, you would use Import Stock Record Locations to import your changes.
About exporting stock items
Stock items can be exported to a CSV Comma Separated Value (CSV) file format. Sage 200 can import and export data in the CSV file format. or XML Extensible Markup Language (XML) file format. Sage 200 can import and export data in the XML file format. file format. You cannot export stock transactions (movement history) or bill of material (BOM) details.
The stock items are exported in the same format used for an import.
Information not exported includes the stock type, search categories, units of measure, costing method, locations (warehouses and bins), attachments or the current status of the stock item (active or inactive).
Where a stock item has more than one supplier, the name of the preferred supplier is exported. Where the item has more than one alternative, the code of the preferred alternative item is exported.
Exporting and updating information
Some information can be exported to a CSV file, which can make updating the information easier if you need to make a lot of changes.
The information is exported to a CSV file in the same format used for an import. This means you can export information and make changes to it using an external tool (such as Excel), and then import your updated information back into Sage 200.
For details of which records you can export and update, see What can I import, export and update?
Updating information
-
An import file can include information for both new records and existing records that you want to update. You can choose whether or not to update existing records when you import.
- Check the import format spreadsheet (XLS/XSLX file) for details about each import format.
-
Not all fields need to be included in the import file. You only need to include the mandatory fields.
- If you do not want to include a field for a particular record, just leave that field blank.
- If you do not want to include a field for any of the records in your import file, then you can remove the field altogether (including the heading).
What happens when
What happens when I validate the file?
When you validate an import file, Sage 200 checks for the following:
-
Whether an item already exists.
-
All items contain the required mandatory fields.
-
All fields are correctly formatted.
The result of the validation is provided by reports.
-
A report lists the items that are valid and can be imported.
-
A separate report is produced to list any items that are invalid and can't be imported. The report will tell you why individual items are invalid.
Note: Depending on your selected output mode, the reports are displayed as a preview, sent to the spooler, or sent to the printer.
What happens when I import the file?
- The import file is validated.
-
The import file is processed.
All valid items are imported, and any invalid items are ignored.
-
The result of the import is provided by reports.
-
A report lists the valid items that were successfully imported.
-
A separate report is produced to list any items that were invalid and could not be imported.
Note: Depending on your selected output mode, the reports are displayed as a preview, sent to the spooler, or sent to the printer.
-