Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Intercompany Problem

Posted on by 280

Hello, want to book an invoice from a intercompany order. But during the booking process the check in the

PurchInvoiceJournalCreate class ends up with an message "invoice in Company xxx with parmid = can not be found".

So the check can't find any custInvoiceJour. But how can I solve that problem ?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Intercompany Problem

    Verified and working fine

  • Swathi Sampath Profile Picture
    Swathi Sampath 45 on at
    RE: Intercompany Problem

    Copy Invoice number from Sales order and provide this as the Invoice number on Purchase Order invoice posting. This solved the error for me.

  • Harisgillani Profile Picture
    Harisgillani 291 on at
    RE: Intercompany Problem

    Hi Hope you all doing well.

    I know this discussion showing old. Hope you all got solution regarding this error as almost 1.5 year elapsed. However, when I realize to test this scenario I got same error as mention by "HCantarutti" but got no proper solution so I try my hard and counter my errors and solved. Yes Qamar khan is so close to solution.

    The error mention above representing product receipt and invoice number of PO  should be matched with packing list and invoice number of SO.

    There is also some parameter which could be set according to requirement that will be shown on vendor and customer master foam General tab>click intercompany on setup button group and set parameters sale order policy and purchase order policy.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: [AX 2012] Intercompany Problem

    Did you find any solution ?

  • Muhammad Yousaf Profile Picture
    Muhammad Yousaf 1,337 on at
    RE: [AX 2012] Intercompany Problem

    were you able to solve all this

  • Suggested answer
    QamarKhan Profile Picture
    QamarKhan 315 on at
    RE: [AX 2012] Intercompany Problem

    Functionally you can post the inter-company PO invoice from the Sales Order invoice. For this you have to click on the Sales order invoice journal and look for "Intercompany" button, from there select intercompany invoice posting. If no bug involved then the reason may be of using the different invoice number than the one generated for sales order in the selling company.

  • Anton Tjiptadi Profile Picture
    Anton Tjiptadi 2,013 on at
    RE: [AX 2012] Intercompany Problem

    Hi,

    I bummed to this error my self and after trace, Ax will check sales order in company 2 but in sales line it should have Project Id. you can find it in class PurchInvoiceJournalCreate.

    changecompany(purchTableLocal.InterCompanyCompanyId)

               {

                   select count(RecId)

                       from salesTableLocal

                       where salesTableLocal.SalesId == purchTableLocal.InterCompanySalesId

                       && salesTableLocal.ProjId != "";

    My question is why?

    For my case, yes the PO in company 1 is Project, but in company 2, why it need to have the same information ? and if yes, why it doesn't copied?

    Thanks,

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,902 Super User 2024 Season 2 on at
    RE: [AX 2012] Intercompany Problem

    Hi,

    I would suggest to use the debugger to find out why the customer invoice is not created. Probably caused by closed periods or something similar in the other company.

    You need to have technical skills to do this debugging.

  • HCantarutti Profile Picture
    HCantarutti 280 on at
    RE: [AX 2012] Intercompany Problem

    Hello,

    in the purchase order I can follow the link to the original order or the intercompany  sales order.

    The intercompany sales order itself has a reference to the purchase order too.

    The companies are also correct.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,902 Super User 2024 Season 2 on at
    RE: [AX 2012] Intercompany Problem

    The purchase order header in  company 1 and the sales order header in company 2 should have reference fields linking to each other. Can you check if these fields are correct and referencing to the correct companies and orders?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans