{"id":591,"date":"2022-06-01T11:42:49","date_gmt":"2022-06-01T10:42:49","guid":{"rendered":"https:\/\/www.fastseal.eu\/blog\/?p=591"},"modified":"2026-11-09T15:07:15","modified_gmt":"2026-11-09T15:07:15","slug":"import-compounds","status":"publish","type":"post","link":"https:\/\/fastseal.eu\/blog\/import-compounds\/","title":{"rendered":"Import compounds\/materials"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is possible to import components directly to the components database from a CSV file, that is a standard approach for interchanging data between systems. The import\/export functions are located on the components database:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"263\" src=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/06\/image-13-1024x263.png\" alt=\"\" class=\"wp-image-2244\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/06\/image-13-1024x263.png 1024w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/06\/image-13-300x77.png 300w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/06\/image-13-767x197.png 767w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/06\/image-13.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">In order to use the import function the input file must follow some rules as the import data must match what is expected to be received.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example of a valid CSV to import:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#ebf3fc;font-size:12px\">BrandName,BrandDescription,UserDesignation,BrandDesignation,Type,SubTypeID,inside,outside,insideUseful,outsideUseful,length,price,usefulLength,reference,profit,polygonFaces,stockQuantity,stockDesired,stockAutomatic<br>\"FastSeal\",\"\",\"POM\",\"POM\",\"Plastic\",\"1\",\"18\",\"155\",\"20\",\"150\",\"155\",\"100\",\"140\",\"20.150.155\",\"50\",\"0\",\"0.925357142857143\",\"1\",\"1\"<br>\"FastSeal\",\"\",\"POM\",\"POM\",\"Plastic\",\"1\",\"25\",\"207.9\",\"30\",\"180\",\"155\",\"100\",\"140\",\"30.180.155\",\"50\",\"6\",\"1\",\"1\",\"1\"<br>\"FastSeal\",\"\",\"EPDM 85ShA\",\"EPDM 85ShA\",\"Rubber\",\"5\",\"3\",\"155\",\"5\",\"150\",\"155\",\"100\",\"140\",\"5.150.155\",\"50\",\"0\",\"0.905028571428571\",\"3\",\"1\"<br>\"FastXRing\",\"FastXRing - sub company of FastSeal\",\"LPU\",\"LPU\",\"PU\",\"4\",\"36\",\"63\",\"37\",\"62\",\"155\",\"24\",\"140\",\"37.62.155\",\"20\",\"0\",\"40\",\"5\",\"0\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The columns description are:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>n<\/td><td>Column<\/td><td>Description<\/td><\/tr><tr><td>1<\/td><td>BrandName<\/td><td><strong>Brand<\/strong> name, for example &#8220;FastSeal&#8221; &#8211; affects the brand table<\/td><\/tr><tr><td>2<\/td><td>BrandDescription<\/td><td><strong>Brand<\/strong> description, for example &#8220;Good brand&#8221; &#8211; affects the brand table. If more than one description is set for the same brand, only the first occurrence will be taken in account.<\/td><\/tr><tr><td>3<\/td><td>UserDesignation<\/td><td>User designation of a product, for example &#8220;HPU Red Premium&#8221;. Should correspond to the name that the product is known on your company &#8211; affects the <strong>products<\/strong> table<\/td><\/tr><tr><td>4<\/td><td>BrandDesignation<\/td><td>Brand designation, for example &#8220;HPU Red | FDA&#8221;. Should correspond to the name that your supplier calls to this product &#8211; affects the <strong>products<\/strong> table<\/td><\/tr><tr><td>5<\/td><td>Type<\/td><td>Must be one of the following words: PU, RUBBER, PTFE, PLASTIC or METAL- affects the <strong>products<\/strong> table<\/td><\/tr><tr><td>6<\/td><td>SubTypeID<\/td><td>The sub type ID that matches the ID present on the material types window <a href=\"https:\/\/fastseal.eu\/blog\/compounds-database-subtypes\/\" data-type=\"post\" data-id=\"2193\">Compounds database \u2013 subtypes<\/a>. If the sub type does not exist it will not be set (will remain without a subproduct)<\/td><\/tr><tr><td>7<\/td><td>inside<\/td><td>Tube measured inside dimension (mm). Must be equal or smaller than inside useful &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>8<\/td><td>outside<\/td><td>Tube measured outside dimension (mm). Must be equal or greater than outside useful &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>9<\/td><td>inside useful<\/td><td>Tube inside useful dimension (mm) normally matches the sticker on the tube &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>10<\/td><td>outside useful<\/td><td>Tube outside useful dimension (mm) normally matches the sticker on the tube &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>11<\/td><td>length<\/td><td>Tube length (mm) &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>12<\/td><td>price<\/td><td>Cost of tube in local currency &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>13<\/td><td>useful length<\/td><td>Tube useful length (mm). Must be smaller than the tube length &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>14<\/td><td>reference<\/td><td>Raw material reference (normally describes the useful dimensions) &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>15<\/td><td>profit<\/td><td>Required profit in % (50 means 50%) &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>16<\/td><td>polygonFaces<\/td><td>Number of faces. 0 for rods and tubes, 4 for squares, 6 for hexagons and 8 for octagonal shapes &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>17<\/td><td>stockQuantity<\/td><td>Numeric value that reflects the quantity in stock (integer or decimals numbers are possible). For example 1.2; 0.3; 0.33332; 4 are all valid numbers &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>18<\/td><td>stockDesired<\/td><td>Integer value that represents the number of tools that is the desired stock &#8211; affects <strong>Materials<\/strong> table<\/td><\/tr><tr><td>19<\/td><td>stockAutomatic<\/td><td>This column can only have the value 0 or 1. Set to 1 if the software will manage this stock quantity or set to 0 if no change on the stock will be made by the software<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All values must be contained in &#8221; &#8220;<\/li>\n\n\n\n<li>No value can contain a &#8220;<\/li>\n\n\n\n<li>The type (column 5) must be either PU, RUBBER, PLASTIC, PTFE or METAL<\/li>\n\n\n\n<li>The column reference is generally the result of the &#8220;insideUseful&#8221;.&#8221;outsideUseful&#8221;.&#8221;length&#8221; columns. See example of the valid CSV file.<\/li>\n\n\n\n<li>Numeric values uses the dot to separate the decimals. Ex: 345.87 &#8211; not commas!<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The user can also create, manually, a few materials and export the file. This way a valid file is generated that can be used to import and also serves as a guide\/example to create a larger file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Import dialog<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Version higher than 5.2.8.2 have a new and improved import dialog that gives more insight about the import and useful options. The dialog can provide some insight about the contents of the file being imported.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two main options exist after the file is loaded:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Read file to replace: This option will check all current brands, products and materials that are currently on the database and will remove all that are not being in use <strong>before<\/strong> adding the new products and brands from the database.<\/li>\n\n\n\n<li>Read file to add: This option will just add new brands, products and materials from the imported file.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"596\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2022\/08\/image-1.png\" alt=\"\" class=\"wp-image-678\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/08\/image-1.png 587w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2022\/08\/image-1-295x300.png 295w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the user is using a database with 76 brands, 30066 products and 31076 materials. This is clearly a wrong constructed database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the option &#8220;Read file to replace&#8221;, where 3 brands, 2 products and 152 materials are new in relation to the current database, and where 71 brands, 30054 products and 30685 materiais are not being used, will result on a clean database with just 8 brands, 14 products and 543 materials. trying to import 30535 materials, 66 brands and 29518 products. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the client used the option to add instead of replace, the result would be 76+3 brands, 30066+2 products and 31076+152 materials.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to import components directly to the components database from a CSV file, that is a standard approach for interchanging data between systems. The import\/export functions are located on the components database: In order to use the import function the input file must follow some rules as the import data must match what &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/fastseal.eu\/blog\/import-compounds\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Import compounds\/materials&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-591","post","type-post","status-publish","format-standard","hentry","category-tutorials","entry"],"_links":{"self":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":22,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"predecessor-version":[{"id":2245,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/591\/revisions\/2245"}],"wp:attachment":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}