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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Exporting GeneralJournalEntry / GeneralJournalAccountEntry for trial balance to another environment

(0) ShareShare
ReportReport
Posted on by 1,673

Hi


I need to export Trial Balance information from one environment 'A' to another 'B'. ie. ALL data from GeneralJournalEntry and GeneralJournalAccountEntry from one environment to another. Since it's not wise to export these tables themselves from 'A' and import them into 'B', I thought it better to take the take the information from the GeneralJournal tables from 'A', export it as CSVs and then import the CSV into 'B' as new Journal's and post them there.


1) Is this the best way to do it

2) If this is the best way to do it, is there a method/way to retrieve LedgerTransType and LedgerJournalACType information from the PostingType found in the GeneralJournal tables.

I understand these tables partially, but not well enough to know that I'm not making a mistake here or that there isn't a better way. Any help would be much appreciated!

Thank you very much

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Kindly have a look at next thread.

    community.dynamics.com/.../191178

    It is possible to export balances/Trail Balance of one server and import it on second server, using General Journal, but definitely you will miss SubLedger entries. Don’t expect any details of Original documents such as vendor invoices, customer payments, sale orders etc. because by doing above practice you will be directly hitting GL accounts.

  • BrandonSA Profile Picture
    1,673 on at

    Thanks Sohaib

    In that thread you were very helpful in answering my question! Unfortunately, I need the sub-ledger entries though. The problem I'm struggling with now is how to use the Posting type of the GeneralJournal table to determine the correct LedgerTransType and LedgerJournalACType information so that I can re-post the record. And I want to avoid one massive switch statement that works out all the combinations. Any suggestions.

    Thanks!

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Unfortunately, I need the sub-ledger entries though.

    If you need sub-ledger entries then, only possible way is to post transactions in proper way. E.g. take vendor invoices from one system and recreate/import on other system, post those. Similarly take all PO(s), SO(s), Payment(s), etc.

    Regarding your 2nd part of question, I am unable to get what do you meant by struggling with LedgerJournalACType. Seems you are trying to do something with code. If you can explain bit more, might be we can answer.

  • Community Member Profile Picture
    on at

    Hi Sohaib

    did you get a chance to try using DIXF?.  Using DIXF is should be possible since it doesn't affect any relational data.

    Also, if you are able to understand the table dependencies you can even try with creating a custom definition group to export the data and import it to other environment.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    by the way, if you need everything from one server to other, why you don't think of a shortest solution such as Restore Database

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    @Manish

    we are NOT talking about ways to import data. I do understand different ways to import data. we are talking about something given in question header.

  • BrandonSA Profile Picture
    1,673 on at

    Sorry, my requirements aren't so clear.

    All of this for the sake of keeping environments synchronized. I'm not sure why they don't run one AOS with different companies or why they don't have another solution or anything like that. But what I need to do is that when a transaction is created in 'A' (like creating a PO, Stock movement, Journal posting), it needs to push through to 'B' so that their trial balance still works. I need to take all transactions in 'A', in the GeneralJournal tables, and push them through to 'B', to it's GeneralJournalTables. This needs to be a solution that works everyday as they create transactions in 'A'. It's not a once off data migration exercise.

    So I'm trying to use the data in the GeneralJournal tables in 'A', to create a CSV, which I push through to 'B', and then in 'B', reconstruct the journal data with AxLedgerJournalTable / AxLedgerJournalTrans, and then to post it there. My question is how do I set LedgerTransType and LedgerJournalACType on AxLedgerJournalTrans based on the posting type of the GeneralJournal data that comes in.

    Of course, I probably making a really bad assumption that anything that exists in the GeneralJournal tables can be recreated using AxLedgerJournalTable. Please let me know if I'm way off course here...

    Thanks for your help!

    @Manish. The problem with DIXF is that when Journals are posted, there are so many side affects. I want to post records freshly so that I catch all of those side affects in the target environment.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Let’s go one by one for possibilities

    1. Database Replication (SQL Replication )

      This does not works perfectly with dynamics AX, it can bring issues. I have into this at past at one client.

    2. Using import mechanism such as DIXF

      This way can take a lot of effort. It’s not that we want to transfer only GeneralJournalEntry records. You also want to import sub ledger entries. That means you should start importing from sub-ledger to journal entries. Also prior to that you should import latest master data such as new customers, vendors etc. In short using DIXF or TDTT can be much time taking.

       

    3. Using real-time integration, by x++ or AIF

      This can be very costly as it may need a developer for many days, which should develop solution.

    4. Using Database Restore

      This can be least time taking but can always you need to restore back original metadata tables after restoring database(transactional)

       

  • Community Member Profile Picture
    on at

    Sohaib,

    How about using Test Data Transfer tool by Including only the required tables? This will take some time to identify the tables required.

  • BrandonSA Profile Picture
    1,673 on at

    Hi Sohaib

    You said "Unfortunately, I need the sub-ledger entries though.

    If you need sub-ledger entries then, only possible way is to post transactions in proper way. E.g. take vendor invoices from one system and recreate/import on other system, post those. Similarly take all PO(s), SO(s), Payment(s), etc."

    If i wanted to recreated every transaction that gets written to the GeneralJournal tables, then in how many different places would I have to capture transactions to re-post them properly?

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans