Sage 100

 View Only
  • 1.  Company code and/or company keys already exist when re-migrating data

    Posted 11-05-2019 18:37
      |   view attached
    In case anyone else may benefit from my experience:

    I just completed an upgrade for a client moving from v2017 to 2019/PR2.19.4.  They have 60 company codes.  After the installation and initial migration, which took place late in July, the client added 2 new companies in both versions, and have been in production in v2017 during the long testing phase.

    Last weekend, I performed the final migration.  When I selected companies to migrate (no system files) and selected all companies, I got this message:  "Company code and/or company keys already exist when re-migrating data".   I removed the 2 newly added companies from 2019 and re-migrated them (along with the other 58 companies in this installation).  No error messages, no conversion errors.  No problem, right?  Wrong.  During my onsite visit yesterday, they reported that in the 2 companies, there is no Payroll data.  I decide to re-migrate those 2 companies.  Get the message again.  Sage KB 66732 addresses the message and offers 2 options:

    1.     DFDM and remove the records for the 2 companies from SY_MigratedCompanies.M4T, then re-migrate them.  Tried that, but there are no records for those companies in the file. 

    2.     Copy the MAS_XXX folders from the source system to the target system (I did not try this option because I believe I have heard multiple times from Sage and 90Minders that you can't just copy company data into the new version and re-convert, so I didn't even try).

    I opened a case with Sage.  Without expressing my opinion about my Sage experience (which would be a rant), Sage informed me that I needed to re-migrate all the data WITH system files for all companies again.  In fact, the "payroll expert" that I was not able to talk with directly, as she was in the background with the analyst I was speaking with insisted that I must always re-migrate system files.  Did I mention that there are 60 companies in this installation?

    Thankfully, what I did instead was reach out to Jim Woodhead, who recommended removing the companies in question in 2019, re-creating them, and copying the MAS_XXX folders from 2017 to 2019 and convert.  Voila!  Big shout out to Jim for saving the client from, to put it mildly, a negative experience that would potentially have them be fearful of future upgrades.

    What is still a mystery to me is that the file referenced in the KB, SY_MIGRATEDCOMPANY.M4T, has a modification date from the original migration, not the most recent one, and therefore did not contain the records for the 2 companies that were not originally migrated.  I did not pursue this question very far because I needed to get the client up and running and the analyst I was working with clearly had no idea.

    In any case, the big lesson for me was that I could copy folders from the old version and convert without re-migrating. 

    Thanks to anyone who read this message in entirety for doing so.  I felt the need to post this to the community so that I can let my experience with Sage go and move on.

    ------------------------------
    Barbara Goldstein
    Sr. Consultant
    DSD Business Systems
    San Jose CA
    800.627.9032 x221
    ------------------------------

    Attachment(s)

    pdf
    KB 66732..pdf   83 KB 1 version


  • 2.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-05-2019 19:42
    Thank you Barbara! All the way to the end ;)

    ------------------------------
    Michelle Taylor
    ERP Consulting Manager, CS3 Technology
    918-388-9772
    ------------------------------



  • 3.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-05-2019 20:25

    And now, no doubt, you'll receive one of those Sage Surveys that says "How did we do?"  I'm always so torn on those, and I've found it better politically to ignore those surveys and not answer.  (Ignoring them should be an answer in itself!)  But it is SO tempting to answer them truthfully and let them know exactly how they did (or did not) do.  As my father used to say "You're just breeding a scab on your nose."  Oh...but so tempting still!

     

    And thank you for letting us know what you did to fix it!

     

     

    Sue Bennett | President

    P. 503 620 3484 | F. 503 620 2765

    12559 SW 69th Ave | Portland, OR  97223

    sue@benpor.com   www.benpor.com
    Bennett/Porter Blogs | facebook | twitter

    image001.png@01D58B13.891A0140

     

     

     

     



    ------Original Message------

    In case anyone else may benefit from my experience:

    I just completed an upgrade for a client moving from v2017 to 2019/PR2.19.4.  They have 60 company codes.  After the installation and initial migration, which took place late in July, the client added 2 new companies in both versions, and have been in production in v2017 during the long testing phase.

    Last weekend, I performed the final migration.  When I selected companies to migrate (no system files) and selected all companies, I got this message:  "Company code and/or company keys already exist when re-migrating data".   I removed the 2 newly added companies from 2019 and re-migrated them (along with the other 58 companies in this installation).  No error messages, no conversion errors.  No problem, right?  Wrong.  During my onsite visit yesterday, they reported that in the 2 companies, there is no Payroll data.  I decide to re-migrate those 2 companies.  Get the message again.  Sage KB 66732 addresses the message and offers 2 options:

    1.     DFDM and remove the records for the 2 companies from SY_MigratedCompanies.M4T, then re-migrate them.  Tried that, but there are no records for those companies in the file. 

    2.     Copy the MAS_XXX folders from the source system to the target system (I did not try this option because I believe I have heard multiple times from Sage and 90Minders that you can't just copy company data into the new version and re-convert, so I didn't even try).

    I opened a case with Sage.  Without expressing my opinion about my Sage experience (which would be a rant), Sage informed me that I needed to re-migrate all the data WITH system files for all companies again.  In fact, the "payroll expert" that I was not able to talk with directly, as she was in the background with the analyst I was speaking with insisted that I must always re-migrate system files.  Did I mention that there are 60 companies in this installation?

    Thankfully, what I did instead was reach out to Jim Woodhead, who recommended removing the companies in question in 2019, re-creating them, and copying the MAS_XXX folders from 2017 to 2019 and convert.  Voila!  Big shout out to Jim for saving the client from, to put it mildly, a negative experience that would potentially have them be fearful of future upgrades.

    What is still a mystery to me is that the file referenced in the KB, SY_MIGRATEDCOMPANY.M4T, has a modification date from the original migration, not the most recent one, and therefore did not contain the records for the 2 companies that were not originally migrated.  I did not pursue this question very far because I needed to get the client up and running and the analyst I was working with clearly had no idea.

    In any case, the big lesson for me was that I could copy folders from the old version and convert without re-migrating. 

    Thanks to anyone who read this message in entirety for doing so.  I felt the need to post this to the community so that I can let my experience with Sage go and move on.

    ------------------------------
    Barbara Goldstein
    Sr. Consultant
    DSD Business Systems
    San Jose CA
    800.627.9032 x221
    ------------------------------


  • 4.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-05-2019 22:05
    Edited by Wayne Schulz 11-05-2019 22:05
    Having just done a 2017 to 2.19 PR upgrade I feel like there could be a book written on how to shortcut the re-conversion.

    I can't recall a recent upgrade where I re-migrated. I almost always copy MAS_XXX and just hit convert data. There are probably some gotcha's to this but the only system files I worry about are the paperless office control files and we have two utilities ( merge and move ) that take care of any issue VERY quickly.

    The problem in payroll is you can't convert all -- so if you have many payroll companies you'll be forced to go one by one to convert ( insert sound of head banging home office desk on Sunday at 11 pm )....

    Save time by...

    1. Make backup copies BEFORE re-conversion from each PR company

    Respective MAS_XXX
    PR_DeductionCode 
    PR_EarningsCode 
    PR_CompanyTaxGroup 
    PR_CompanyTaxGroupRates
    PR_Department

    There are several mapping files that are created during the Payroll conversion wizard. 
    Save these somewhere the first conversion. I'm not sure at what point they get erased by Sage.
    These tables are located in the MAS90/Home/Textout directory and are named 
    XXXDepartmentPreConversion.txt, 
    XXXFilingStatusPreConversion.txt, 
    XXXTaxGroupPreConversion.txt, 
    XXXTaxProfilePreConversion.txt (where XXX = company code being converted).  
    These tables are used to save off the mappings in case the conversion wizard is cancelled out of during the conversion, and the user restarts the conversion it will have the mappings last entered.  These tables could be used for subsequent companies (if applicable), but they would need to be saved off prior to completion of the conversion wizard.  
    This would alleviate having to re-map similar subsequent companies, especially for things that are likely to be the same such as tax codes, filing status', and tax profiles.  
    The XXX portion of the table name would need to renamed with the next company being converted.

    After re-converting data - copy back to respective company folder:

    PR_DeductionCode 
    PR_EarningsCode 
    PR_CompanyTaxGroup 
    PR_CompanyTaxGroupRates
    PR_Department

    If you don't copy these back you'll need to set up tax profiles all over again for Earning Code / Deduction Code ( Insert sound of head hitting home office desk at 2 am )


    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 5.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-05-2019 22:48
    You may want to add 1 more .m4t file:  ​PR_CompanyTaxGroupOther.m4t in the MAS_XXX.  This holds the 'additional' Tab information (in the case of MN or MI, the State Unemployment Workforce Tax GL Account and Rate).  Figured that one out this last weekend.
    N

    ------------------------------
    Nancy Hanson
    Blytheco LLC
    Eagan MN
    ------------------------------



  • 6.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-06-2019 11:41
    I am surprised this works.

    Do you not get the "Encryption key is invalid" problem when dropping in company data (MAS_xxx) folders? 




    ------------------------------
    Eric Lunceford
    First Mate Business Solutions
    Oklahoma City, OK
    877-880-8960
    https://www.firstmatellc.com/
    ------------------------------



  • 7.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-06-2019 11:50
    @Eric Lunceford, I did not have that problem and I'm surprised by that.  That's why I thought it was required to re-migrate.​

    ------------------------------
    Barbara Goldstein
    Sr. Consultant
    DSD Business Systems
    San Jose CA
    800.627.9032 x221
    ------------------------------



  • 8.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-06-2019 12:04
    I think the Encryption key will be an issue in Payroll 2.x to Payroll 2.x migrations/upgrades. I have not seen it on legacy - framework payroll conversions

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 9.  RE: Company code and/or company keys already exist when re-migrating data

    Posted 11-06-2019 13:38
    Encryption keys will be a big pain in the future.  I was doing a v2019 PU 2 go live last month when the GL did not balance to the Sage 50 numbers.  My first inclination was to restore the GL from a v2018 backup, convert to 2019 and reimport.  Did NOT work due to encryption keys.  Tech support was not helpful.  Ended starting over from the very beginning with empty GL tables.

    ------------------------------
    Jeff Schwenk
    FORMER 90M Board Member
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------