{"id":23013,"date":"2016-12-05T14:54:19","date_gmt":"2016-12-05T06:54:19","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=23013"},"modified":"2017-08-10T14:03:52","modified_gmt":"2017-08-10T06:03:52","slug":"importing-configuration-from-scratch-4-3","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/importing-from-scratch\/importing-configuration-from-scratch-4-3\/","title":{"rendered":"Importing Configuration From Scratch (4.3)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to version 4.3 of P2 Server. For help on the latest version, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/importing-from-scratch\/\">Importing Configuration from Scratch<\/a>.\u00a0<\/p>\n<p class=\"intro-text\">When you first install P2 Server, you will most likely need to import data into a blank database. The best way to do this is to use P2 Server Management to import a specially formatted Excel\u00ae spreadsheet. The spreadsheet has been formatted so that the Data Dictionary has the required information to accurately model your data\u00a0for use in other applications such as <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/\">P2 Explorer<\/a>.<\/p>\n<p class=\"intro-text\">Importing data into a blank database is a 3-step process.<\/p>\n<ol class=\"intro-text\">\n<li>Export a\u00a0blank spreadsheet.<\/li>\n<li><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/tips-on-filling-in-the-import-spreadsheet\/\">Fill in the spreadsheet<\/a>.<\/li>\n<li>Import the spreadsheet.<\/li>\n<\/ol>\n<p class=\"intro-text\">Let's look at this process, step by step.<\/p>\n<h2 class=\"page-subheading\">Step 1. Export a\u00a0blank spreadsheet<\/h2>\n<p class=\"intro-text\">Because the format of the import spreadsheet is crucial to a successful import, we've made it easier for you by providing a blank template for you to fill in. All you need to do is download or export this from P2 Server Management.<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18713 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template.png\" width=\"1084\" height=\"762\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template.png 1084w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template-768x540.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template-150x105.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template-24x17.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template-36x25.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/export-template-48x34.png 48w\" sizes=\"auto, (max-width: 1084px) 100vw, 1084px\" \/><\/a><\/p>\n<ol class=\"intro-text\">\n<li>In P2 Server Management, click the Import\/Export icon in the navigation bar.<\/li>\n<li>Select the \"Export\" option from the middle panel.<\/li>\n<li>Click the \"Export Template\" button.<\/li>\n<\/ol>\n<p class=\"intro-text\">The Excel spreadsheet will download and you will be prompted to save it to your computer.<\/p>\n<h2 class=\"page-subheading\">Step 2. Fill in the spreadsheet<\/h2>\n<p class=\"intro-text\">The key to a successful import is to make sure that everything in the spreadsheet is filled in correctly.\u00a0<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/tips-on-filling-in-the-import-spreadsheet\/\">Tips on Filling in the Import Spreadsheet<\/a><\/p>\n<p class=\"intro-text\">On the header rows in the spreadsheet, there are help comments for every column. This should provide you with enough information on what should be entered in the column. Click the little red comment indicator on the header row to see the help.<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importcomments.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3900\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importcomments.png\" alt=\"importcomments\" width=\"530\" height=\"475\" \/><\/a><\/p>\n<p class=\"intro-text\">You may find further information on crucial aspects of the Data Dictionary in the \"<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/primers\/\">Server Primers<\/a>\" section of the Help Center.<\/p>\n<p class=\"intro-text\"><strong><span style=\"color: #ff0000;\">Important<\/span><\/strong>:\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/primers\/templates\/\">Templates<\/a> will not appear in P2 Explorer unless they are marked as <strong>Primary<\/strong>. Marking a template as primary is now done through the use of <em><strong>time ranges<\/strong><\/em>, as these are now historised.\u00a0In the example below, we have an <strong>Oil Producing Well<\/strong> that is <strong>Primary<\/strong> from <em>Forever<\/em> (null) to <em>Forever<\/em> (null). The <strong>Other Template<\/strong> is not primary for any time period, because the start and end times are blank for the Primary Time Periods.<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3901\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate.png\" alt=\"primarytemplate\" width=\"745\" height=\"98\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate.png 745w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate-150x20.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate-24x3.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate-36x5.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/primarytemplate-48x6.png 48w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/a><\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<h2 class=\"page-subheading\">Step 3. Import the spreadsheet<\/h2>\n<p class=\"intro-text\">When importing, P2 Server first checks the file for errors and then asks for your permission to proceed. This is a fail-safe mechanism to ensure no errors propagate into the system.<\/p>\n<p class=\"note\">Note: During import, P2 Server Management is locked and other users will not be able to make any changes until the import has finished and the session is released.<\/p>\n<p class=\"intro-text\">The first part of the import process is similar to the export process:<\/p>\n<p class=\"intro-text\">1. In P2 Server Management, click the Import\/Export icon in the navigation bar.<\/p>\n<p class=\"intro-text\">2. Select the \"Import\" option from the middle panel.<\/p>\n<p class=\"intro-text\">3. Drag and drop your file into the box, or click the box to browse for your file and upload it.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18714 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file.png\" width=\"1114\" height=\"441\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file.png 1114w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file-768x304.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file-150x59.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file-24x10.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file-36x14.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/import-file-48x19.png 48w\" sizes=\"auto, (max-width: 1114px) 100vw, 1114px\" \/><\/a><\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">The process continues\u00a0as soon as P2 Server detects your file.\u00a0First, the file is checked for errors and an overview of the upload\u00a0is displayed. The overview tells you how many rows have been counted for each worksheet, and highlights any errors that may be encountered. The overview for an error-free spreadsheet looks a bit like this:<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/workbookoverview.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"border-image alignnone wp-image-3917 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/workbookoverview-520x600.png\" alt=\"workbookoverview\" width=\"520\" height=\"600\" \/><\/a><\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">You must explicitly allow the import to proceed. You may continue to import a file with errors, but the system will disregard the errors and\u00a0only import the correctly filled in sheets.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">There are 2 import options you can choose from:<\/p>\n<ul class=\"intro-text\">\n<li><strong>Create Only<\/strong>. Objects will only be ADDED to the database if they do not exist. No existing objects will be updated.<\/li>\n<li><strong>Create and Update<\/strong>. Existing objects will be UPDATED with data from the import file, and new objects will be added if they do not exist.<\/li>\n<\/ul>\n<p class=\"intro-text\">4. For the scenario where you are importing from scratch, select the \"Create Only\" option, and then click <strong>Import<\/strong>.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"border-image alignnone wp-image-3911 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly.png\" alt=\"createonly\" width=\"688\" height=\"207\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly.png 688w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly-150x45.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly-36x11.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/createonly-48x14.png 48w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/a><\/p>\n<p class=\"intro-text\">5. When the import has finished, a success message appears in the top right corner.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess.png\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3912\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess.png\" alt=\"importsuccess\" width=\"310\" height=\"60\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess.png 310w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess-150x29.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess-24x5.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess-36x7.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsuccess-48x9.png 48w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/a><\/p>\n<p class=\"intro-text\">6. Scroll to the bottom of the screen to see the <strong>Import Summary<\/strong>.<\/p>\n<p class=\"intro-text\" style=\"padding-left: 30px;\">This will show you the number of rows imported per worksheet.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsummary.png\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" class=\"border-image alignnone wp-image-3920 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/06\/importsummary-343x600.png\" alt=\"importsummary\" width=\"343\" height=\"600\" \/><\/a><\/p>\n<p class=\"intro-text\">7. At this point, you can download the updated spreadsheet. The downloaded\u00a0spreadsheet will be exactly the same as the file you imported, except that the GUIDs will be updated. It's a good idea to\u00a0download the file if you intend to re-use your spreadsheet to update the database. This file will retain any formulas you used to calculate fields.<\/p>\n<div class=\"best-prac\"><i class=\"fa fa-trophy fa-2x fa-pull-left\"><\/i><span class=\"best-prac-text\">BEST PRACTICE<\/span><\/p>\n<p class=\"best-prac-desc\">You should download the file if you intend to re-use your spreadsheet to update the database. The downloaded file\u00a0will be exactly the same as the file you imported, except that the GUIDs will be updated. It\u00a0will retain any formulas you used to calculate fields.<\/p>\n<\/div>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\">Otherwise, you can just simply close the session (click \"Close session\").\u00a0<\/p>\n<h2 class=\"page-subheading\">What if I get errors?<\/h2>\n<p class=\"intro-text\">Errors and warnings are commonly encountered during processing and import, usually associated with the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/tips-on-filling-in-the-import-spreadsheet\/\">spreadsheet being filled in incorrectly<\/a>.<\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/server-import-errors\/\">Server Import Errors<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you first install P2 Server, you will most likely need to import data into a blank database. The best way to do this is to use P2 Server Management to import a specially formatted Excel\u00ae spreadsheet. The spreadsheet has been formatted so that the Data Dictionary has the required information to accurately model your data for use in other applications such as P2 Explorer.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/importexport\/importing-from-scratch\/importing-configuration-from-scratch-4-3\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":18712,"parent":3888,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[229,87,228,474,189],"class_list":["post-23013","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-blank-database","tag-export","tag-fresh-install","tag-importexport","tag-management-studio","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/23013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=23013"}],"version-history":[{"count":0,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/23013\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/18712"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=23013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=23013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=23013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}