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)

PO confirmation: "Actions with this action are not valid"

(0) ShareShare
ReportReport
Posted on by

Hello,

AX 2012 R3 CU8 - on PO confirmation I get an error as " Actions with this action are not valid" when ‘Use print management destinations’ is ticked and is set to Email.

2017_2D00_03_2D00_07_5F00_9_2D00_47_2D00_17.jpg2017_2D00_03_2D00_02_5F00_14_2D00_23_2D00_45.jpg

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,908 Most Valuable Professional on at

    It seems that your system is configured to send confirmations electronically but something is wrong with the outbound port. Take a look there.

  • Community Member Profile Picture
    on at

    2017_2D00_03_2D00_07_5F00_10_2D00_00_2D00_26.jpgMartin,

    do we need to setup any outbound port for it to work. As in AX , i see out bound ports are blank.

  • Martin Dráb Profile Picture
    237,908 Most Valuable Professional on at

    Put a breakpoint to the method throwing the error (AifSendService::getEligibleEndpoint()) and check what's going on there.

    I assume that your system isn't correctly initialized and you don't have any record for PurchPurchReqService.read in AifAction. When AX can't find the action, it complains that it isn't a valid action. You may want to verify this before anything else.

    But I merely guessing - I can't debug your system and even your code is not the same as in my application (as I can see from line numbers).

  • Community Member Profile Picture
    on at

    Martin,

    i get the error before it hits the method (AifSendService::getEligibleEndpoint())

    I debug putting the breakpoint in class purchformletter. 

    yes, I understand you cannot debug in my system as it has customizations done.

    2017_2D00_03_2D00_07_5F00_11_2D00_27_2D00_45.jpg

  • Martin Dráb Profile Picture
    237,908 Most Valuable Professional on at

    No, that's not true. Look at the call stack in your picture - it says that the exception was thrown at Dynamics.Ax.Application.AifSendService.getEligibleEndpoints, at line 16.

    The problem is that you're trying to use an X++ debugger for code that runs in CIL, not X++. You have to use Visual Studio for CIL debugging.

  • rabud Profile Picture
    30 on at

    Martin, 

    when i change the action type in aifaction table from serviceoperation to receivedocumentlist email goes out . but twice it sends the email.

    what are these actiontype and how are these set.

    thanks in advance

  • rabud Profile Picture
    30 on at

    Martin,

    also looks like action type in aifaction table for PurchPurchReqService.read other options other than serviceoperation , email functionality works. but problem is email is going twice now.

    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