web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Copy database from one site to another

(0) ShareShare
ReportReport
Posted on by 10

Hello All,

I have copied a company from one site1 to another site2 and both site currency master has currency USD with different index, due to this the after copying the company the currency shows different symbol since the index of that is matching to CHF currency in site2.  Top one on this is currency master and CHF is used by one company in site2  and its index is 1011 and on my 2nd  list USD is currency has index 1011 which is used by the company I copied to site2.  Site2 has USD already with index of 1008.  Have anyone came through this kind of scenario please let me know how to fix the same.  

pastedimage1654792160929v1.png

Categories:
I have the same question (0)
  • babubaskaran@outlook.com Profile Picture
    12 on at
    RE: Copy database from one site to another

    Thank you very much Beat I will do the same.  Good to be back in Community hope everything is fine with you.

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: Copy database from one site to another

    Babu,

    I have used that script from Mohammad in the past too when merging 2 different GP instances..

    don't forget to run a Check-lInks on MC tables after you finished to update the functional currency index ID.. just in case. Test also all your reporting to make sure there isn't any custom report that would fail to report proper currency symbol.

  • babubaskaran@outlook.com Profile Picture
    12 on at
    RE: Copy database from one site to another

    Thanks Derek for your detailed reply.  I found the following post from Mohammad which changes all tables CURRNIDX field with currency master value.  There were 191 tables but not all of them had value on it and I changed them

    DECLARE @Statement VARCHAR(8000)

    DECLARE @TABLENAME VARCHAR(500)

    DECLARE CURR Cursor FOR

    SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'CURRNIDX' AND COLUMN_DEFAULT IS NOT NULL

    OPEN CURR

    FETCH NEXT FROM CURR INTO @TABLENAME

    WHILE @@FETCH_STATUS = 0

    BEGIN

    SET @Statement = 'SELECT * INTO ' + @TABLENAME + '_BAK FROM ' + @TABLENAME

    EXEC (@Statement)

    SET @Statement = 'UPDATE ' + @TABLENAME + ' SET CURRNIDX = ''1008'' WHERE CURRNIDX = ''1011'''

    EXEC (@Statement)

    FETCH NEXT FROM CURR INTO @TABLENAME

    END

    CLOSE CURR

    DEALLOCATE CURR

    select currnidx, * from POP30110

    After running the above script I updated the MC40000 table FUNCRIDX field.  All my windows has $ now instead of CHF, hopefully this will work and wont have any issues in future.

    community.dynamics.com/.../update-currency-index-field-across-all-database

  • Suggested answer
    Derek Albaugh Profile Picture
    on at
    RE: Copy database from one site to another

    That's one of the things I tell customers is a requirement to verify, before moving a company database over from one Dynamics GP environment to another:

    The functional currency being used by the company database(s) being migrated over, must be setup the same as a currency in the DYNAMICS/system database that you're moving the company database under:

        >Against the DYNAMICS/system database, you can look at this table:

                        Select ISOCURRC, * from MC40200

        >Against the company database(s) you’re looking to migrate, look at this table:

                       Select * from MC40000

         The FUNLCURR value(s) from the MC40000 table of the archived company database must exist in the MC40200 table of the DYNAMICS/system database you're moving it to, as well as the FUNCRIDX, RPTGCURR, RPTCRIDX values from the MC40000 table must match that for the same currency in the CURRNIDX and CURNCYID column values of the MC40200 system table.

    There really isn't a supported option or process for fixing this after the fact, especially when the company database already has transactions in it.

    You can try and manually make the changes in SQL, changing the currency index to match what the system database in the new environment shows, but there are a large amount of those tables and we can't verify whether you'll run into issues by doing that.

    Is there a way you can leave the pre-existing transactions as is and use the new currency and index in future transactions, without errors or issues? If so, you'd probably want to go that route.

    Others in the Community may have some other options for you........

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,333

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 846 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 681 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans