{"id":19927,"date":"2020-06-06T07:19:59","date_gmt":"2020-06-06T07:19:59","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=19927"},"modified":"2023-11-03T08:44:48","modified_gmt":"2023-11-03T08:44:48","slug":"how-to-solve-error-incorrect-version-no-amigkey-mig-release-error-while-executing-the-pre-migration-script","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/06\/06\/how-to-solve-error-incorrect-version-no-amigkey-mig-release-error-while-executing-the-pre-migration-script\/","title":{"rendered":"How to solve error \u201cIncorrect version No (AMIGKEY\/MIG_RELEASE)\u201d Error while executing the Pre-Migration Script"},"content":{"rendered":"\n<p>In some industries the company wants to migrate the data from lower version to higher version in Sage X3. Every company wants to upgrade the system functionally or data on the higher version. For that we run some per-migration script. At that time, we will get <strong>Error: \u2018Incorrect version No (AMIGKEY\/MIG_RELEASE)\u2019<\/strong>. With the help of some SQL queries and script we can solve this error.<\/p>\n\n\n\n<p>For Pre-Migration utility follow the below step:<\/p>\n\n\n\n<p><strong>Navigate To: Usage &gt;&gt; Migration &gt;&gt; Sequencing\nmonitor<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Enter plan and Select the folder for which folder you want to execute the Pre-Migration script. And click on create button as shown in below figure.<\/li><\/ol>\n\n\n\n\n\n<p>While executing the script you will get <em><strong>Error:&#8217;Incorrect version No (AMIGKEY\/MIG_RELEASE)&#8217;<\/strong><\/em> as shown in below figure.<\/p>\n\n\n\n\n\n<p>In the X3-folder in the table AMIGKEY a row with the information about the X3 version is missing.<\/p>\n\n\n\n<p>You have to add it first via Script Editor. Then you have to add a value with the missing info about the version<\/p>\n\n\n\n<p>This information is required when executing the pre-scripts for migration. If this information is missing, the error message mentioned above is displayed when executing the script<strong> UUMGPREX3.<\/strong><\/p>\n\n\n\n<p>You have to add it first via Script Editor. Then you have to add a value with the missing info about the version.<\/p>\n\n\n\n<p>Now you have to run these following queries in database:<\/p>\n\n\n\n<p><strong>select * from X3.ADOVAL where PARAM_0=&#8217;RELEASE&#8217;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;&#8230;&#8230;&#8230;&#8230;.Query 1<br> select * from X3.AMIGKEY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;&#8230;&#8230;&#8230;&#8230;. Query 2<\/strong><\/p>\n\n\n\n<p>Refer the below screenshot for the same:<\/p>\n\n\n\n\n\n<p><strong>Step 1 &#8211; Create a row for the info with\nIDENT_0 = MIG_RELEASE<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Call Script Editor in the folder to be migrated new name e.g. &#8220;ZMIG\u201d<\/li><li>Insert the script below &#8211; Run the compilation<strong><br> <br> <\/strong><\/li><\/ul>\n\n\n\n<p><strong>$ZMIG<br> Local integer MYERR<br> Call MIGSTKVERSION(&#8216;Folder_Name&#8217;, &#8216;0&#8217;,MYERR) From TRTMIG<br> End<\/strong><\/p>\n\n\n\n<p>Execute the following script with the corresponding folder name e.g. SEED and also run the script in that particular folder i.e. SEED<\/p>\n\n\n\n\n\n<p><strong>Step 2 &#8211; Adding the version info in the\nDatabase<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The field TORECNBR_0 in table AMIGKEY has no value or 0 as a value, However, the version value for PU9 is 60, PU11 is 80,PU12 is 90.115 etc.<\/li><li>The version number must be contained in the row that contains the value MIG_RELEASE in the column IDENT_0.<\/li><li>This info is displayed in the Management Console \u2013 folders &#8211; Release column<\/li><\/ul>\n\n\n\n<p><strong>&nbsp;&nbsp;\nRun the Update Query:<\/strong><\/p>\n\n\n\n<p><strong>update X3.AMIGKEY set TOTRECNBR_0=&#8217;60&#8217; where IDENT_0=&#8217;MIG_RELEASE&#8217;<\/strong><\/p>\n\n\n\n\n\n<p>&nbsp;Now you can re-launched the script and error will be get resolved.<\/p>\n\n\n\n<p><strong>About Us<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> &#8211; a globally\nrecognized Premier Sage Gold Development Partner is a one-stop solution\nprovider for Sage ERP and Sage CRM needs. Being recognized and rewarded for\nmulti-man years of experience, we bring complete end-to-end assistance for your\ntechnical consultations, product customizations, data migration, system\nintegrations, third-party add-on development and implementation expertise.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>&nbsp;caters to a wide range\nof Sage X3 (Sage Enterprise Management) offerings &#8211; a Sage Business Cloud\nSolution. Our&nbsp;unique GUMU\u2122 integrations include <a href=\"https:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 for Sage CRM<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a> and&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a>&nbsp;along with\nImplementation and Technical Support worldwide for <a href=\"https:\/\/www.greytrix.com\/africa\/product\/consulting\/implementation-planning\">Sage X3<\/a> (Sage Enterprise Management). Currently\nwe are <a href=\"https:\/\/www.greytrix.com\/africa\">Sage X3\nImplementation Partner<\/a> in East Africa, Middles East, Australia,\nAsia.&nbsp;We also offer best-in-class&nbsp;<a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>,&nbsp;integrated applications\nsuch as <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/pos-system\">POS<\/a> | <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/warehouse-management-system\">WMS<\/a> | <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/payment-gateway\">Payment Gateway<\/a> | <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/shipping-system\">Shipping System<\/a> | <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-integration-services\/business-intelligence\">Business Intelligence<\/a> | <a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/ecommerce-magento-integration\">eCommerce<\/a> and have developed\nadd-ons such as <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-add-ons\/catch-weight\">Catch \u2013 Weight <\/a>&nbsp;and <a href=\"https:\/\/www.greytrix.com\/product\/sage-enterprise-management-add-ons\/letter-of-credit\">Letter of Credit<\/a> for Sage X3 to Sage\nbusiness partners, end users and Sage PSG worldwide.<\/p>\n\n\n\n<p>Greytrix is a recognized <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2017\/07\/26\/greytrix-on-boards-sage-global-rockstar-isv-program-with-gumu-for-sage-crm-sage-x3-solution\/\">Sage Rockstar ISV Partner<\/a> for GUMU\u2122 Sage X3 &#8211; Sage\nCRM integration also listed on <a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noopener\">Sage Marketplace<\/a>; GUMU\u2122 integration for\nSage X3 &#8211; Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>. <\/p>\n\n\n\n<p>For more information on Sage X3 Integration and\nServices, please contact us at&nbsp;<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some industries the company wants to migrate the data from lower version to higher version in Sage X3. Every company wants to upgrade the system functionally or data on the higher version. For that we run some per-migration script. At that time, we will get Error: \u2018Incorrect version No (AMIGKEY\/MIG_RELEASE)\u2019. With the help of\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/06\/06\/how-to-solve-error-incorrect-version-no-amigkey-mig-release-error-while-executing-the-pre-migration-script\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6,12],"tags":[2767,1283,1907],"class_list":["post-19927","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-installation","category-sage-x3-upgrade","tag-data-migration","tag-migration","tag-sage-x3-migration"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=19927"}],"version-history":[{"count":10,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19927\/revisions"}],"predecessor-version":[{"id":27701,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/19927\/revisions\/27701"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=19927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=19927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=19927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}