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 :
Microsoft Dynamics AX (Archived)

Intercompany Problem

(0) ShareShare
ReportReport
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

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: [AX 2012] Intercompany Problem

    In which company did you post what invoice? Purchase or sales invoice? Can you also test it using system administrator rights to see if it is related to security?

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

    Hello Andrè,

    the original sales order is on Company 1 and the intercompany is in Company 2.

    So there is a Purchase order (company 1) where I post the invoice from.

    Before  the check which failed  the System changes to Company 2.

    I'm already System Administrator on that machine.

  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 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?

  • HCantarutti Profile Picture
    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
    300,716 Super User 2025 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.

  • Anton Tjiptadi Profile Picture
    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,

  • Suggested answer
    QamarKhan Profile Picture
    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.

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

    were you able to solve all this

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

    Did you find any solution ?

  • Harisgillani Profile Picture
    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.

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
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans