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)

New IsPurchConfirmationRequestJournal parameter on PSAPurchaseOrder report

(0) ShareShare
ReportReport
Posted on by 4,074

We went from AX 2012 R2 to R2 CU7 and had to make a change to our Purchase Order Confirmation report.  While editing this report (PSAPurchaseOrder), it was necessary to refresh my data sources (PurchPuchaseOrderLine & PurchPurchaseOrderDS).  In doing this, several new fields & parameters were pulled in.  All of them made sense and could be resolved except for one... the IsPurchConfirmationRequestJournal parameter.  

This was added to the reports Data Contract class (PurchPurchaseOrderContract.parmIsPurchConfirmationRequestJournal()) and a method was added to the RDP class (PurchPurchaseOrderDP) called "isPurchConfirmationRequestJournal" that just returns the value of the parameter found in the Data Contract class.  A lot of logic is tied to whether or not this new Boolean parameter is set however after refreshing the data sources, deploying the report, then trying to run it I get an error saying the parameter isn't filled in.  Even after deleting my CUS layer customizations, the report does NOT have a SYP layer modification.  It's only sitting on the SYS layer.  So, even going into the base layer report, this parameter isn't included until I refresh the data source... and once again deploying it throws an error.  

To get around this for now, I merely added the default value of "False" to the parameter, but I wanted to post the question here to see if anyone knows more about this (like the correct way to fill this parameter, or if it's not used for the PSAPurchaseOrder report and I can just leave it always false).

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Andy

    Have a look at method modifyContract of the class PurchConfirmationRequestController .

    This parameter is set always to True.

    purchPurchaseOrderContract.parmIsPurchConfirmationRequestJournal(true);

    Regards

  • Suggested answer
    Community Member Profile Picture
    on at

    For me it seems to be upgrade issue,

    I suggest if you can check the PSAPurchaseOrderController whether this call is having SYP layer or not.

    Please verify and update

  • Suggested answer
    David Massey Profile Picture
    on at

    These changes were added during AX 2012 CU6, be sure you don't have layer issues.

  • Andy Adamak Profile Picture
    4,074 on at

    Thanks for the replies.

    Denis, I see what you're talking about... We haven't modified that class or related classes, so that code should be executing.

    Nitesh, the PSAPurchaseOrderController does have a SYS and SYP layer.  The only difference when compared is the SYP layer changed to using a PSAPurchaseOrderController instead of the PuchPurchaseOrderController for the controller variable on the main method. All looks like it should be (no CUS layer).

    David, that makes sense since we are in CU7.  I cannot find any layer issues with any objects that this report would rely on, and X++ compiles no errors, so does CIL.  

    Any other ideas?  The only thing I can think of is maybe the report (PSAPurchaseOrder) was supposed to have been updated, but didn't or failed for whatever reason?  Can anyone verify if the PSAPurchaseOrder report is sitting on the SYP layer in CU6 or CU7?  For me it's still on the SYS, which tells me it hasn't been updated to accommodate this new parameter as I mentioned in the original post.

  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi Andy

    I have reproduced your scenario on a Microsoft virtuale machine with CU7.

    So, i have refresh the datasources and after that the paramter IsPurchConfirmationRequestJournal is pull in

    I have deploy the Report and run the Purchase Order Confirmation without issue.

    At this point, could be an issue related CIL.

    Try to run a Full CIL.

    Regards

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