Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

DIXF Intercompany transaction with Opening Balance Entity

Posted on by 1,858

Hi,

I have a Excel file to import through Opening Balance Entity. I only have few vendor and many Customer transactions and I don't have offset accounts in my transactions.

Some customers are of different company, so I edited the method GenereateLedgerDimension in DMFLedgerBalanceEntityClass.

changeCompany(entity.company)
{
if(entity.AccountType != enum2str(LedgerJournalACType::Ledger)) { target.LedgerDimension = DMFDimensionHelper::generateDimensionDynamicDefaultAccount(entity.LedgerDimension,DMFEntityBase::string2Enum(entity.AccountType,enumNum(LedgerJournalACType)), enumNum(LedgerJournalACType), DMFEntityBase::string2Enum(entity.AccountType,enumNum(LedgerJournalACType))); } else { target.LedgerDimension = DMFDimensionHelper::generateDynamicDimension(entity.LedgerDimension, entity.Company, entity.ExecutionId, entity.DefinitionGroup, dmfEntityName); }
}

This code now runs if I start Batch with 1 Task.

If I start Batch with more than 1 task, the intecompany customer transactions doesn't gets imported?

Any idea why it works for single task batch but doesn't for multi task batch?

*This post is locked for comments

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: DIXF Intercompany transaction with Opening Balance Entity

    Perfect! It is working!

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: DIXF Intercompany transaction with Opening Balance Entity

    Wow! Thanks! I did not run the CIL. This definitely seems to be the issue. Because on checking further, If I run it without checking "Run as batch Job" it runs ok. But if I run it as "Run as batch Job" irrespective of 1 task or many task, It doesn't runs.

    I'll run the Incremental CIL, check again and update.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: DIXF Intercompany transaction with Opening Balance Entity

    Did you build CIL after implementing this change? It is required for batch execution.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans