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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error when posting Product receipt

(0) ShareShare
ReportReport
Posted on by 717
exceptionMessage

Exception has been thrown by the target of an invocation.

exceptionSource
exceptionType

System.Reflection.TargetInvocationException

HI All.

I get below error, when trying to post Product Receipt for PO after 10.0.4 upgrade. Please help me out!!.

stackTrace System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Dynamics.AX.Application.PurchPackingSlipJournalPost.`run() in xppSource://Source/Foundation\AxClass_PurchPackingSlipJournalPost.xpp:line 1887 at Dynamics.AX.Application.PurchPackingSlipJournalPost.run() at Dynamics.AX.Application.FormletterService.`postJournal(Common _parmTable) in xppSource://Source/Foundation\AxClass_FormletterService.xpp:line 713 at Dynamics.AX.Application.FormletterService.postJournal(Common _parmTable) at Dynamics.AX.Application.FormletterService.`createAndPostJournal() in xppSource://Source/Foundation\AxClass_FormletterService.xpp:line 1724 at Dynamics.AX.Application.FormletterService.createAndPostJournal() at Dynamics.AX.Application.FormletterService.`processJournal(Printout _printout) in xppSource://Source/Foundation\AxClass_FormletterService.xpp:line 1700 at Dynamics.AX.Application.FormletterService.processJournal(Printout _printout) at Dynamics.AX.Application.FormletterService.`processFormLetterParmTable(Printout _printout) in xppSource://Source/Foundation\AxClass_FormletterService.xpp:line 1492 at Dynamics.AX.Application.FormletterService.processFormLetterParmTable(Printout _printout) at Dynamics.AX.Application.FormletterService.`runSingleThread(Printout _printout) in xppSource://Source/Foundation\AxClass_FormletterService.xpp:line 1524 --- End of inner exception stack trace ---

*This post is locked for comments

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Pradeep,

    What AX version do you operate?

    Can you share the exact version?

    Can you also let us know what modifications have been made to the product receipt posting?

    Many thanks and best regards,

    Ludwig

  • MYGz Profile Picture
    2,355 on at
  • Suggested answer
    SouravDam Profile Picture
    11,730 on at

    Hi Pradeep Prakash ,

    Appreciate if you kindly let us know if any system modification has been made at product receipt posting as mentioned by Ludwig Reinhard in his comment.

    Also, is there any other customization you have made in system?

    You can fix this by removing the tick mark from Tools > Options > Development > General > Execute business operations in CIL.

    0447.JPG

    However, I will recommend not to do this. My understanding in this regard is; removing tick mark from this check box will bypass all modified codes that you have made in system and then system will follow the standard code to validate everything. It will then help you to post the document without error. Which means; no new / modified code will be valid is system anymore.

    Better; you can check with the developer and ask him / her if compilation has been done after writing new code in system or not. If not. please do a full compilation in system.

    Hopefully this way you can pass through it and no need to remove the check mark from above area "Execute business operations in CIL".

    Kindly check and update in this forum.

    Best regards,
    Sourav Dam

    Please take time to click 'Yes' against the answers that help you guide in right direction to help other community members.

  • André Arnaud de Calavon Profile Picture
    304,553 Super User 2026 Season 1 on at

    Hi Pradeep,

    You mentioned "after 10.0.4 upgrade". I do think you are using Microsoft Dynamics 365. As you have posted the question in the Dynamics AX forum, you get answers based on AX2012. Can you confirm that you are using Dynamics 365 for Finance and Operations? Then we can move the question to the correct forum for you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans