Stack trace in runPrintMgmt line 15

Seems my blog on the PSAPWPTxt error is getting more hits to my blog than all the others combined. Here’s a similar error I just encountered.

I hear it was a bug introduced in CU3. Like we didn’t have enough PO printing errors.

When the users tried to confirm/print a purchase order in CU3, they got “Error executing code: Wrong type in field number. Stack Trace (C)\Classes\PSAPurchaseOrderController\runPrintMgmt – line 15 ….”

The fix is to change
if (this.parmArgs().record().TableId == tableNum(PurchTable))

To
if (this.parmArgs().dataset() == tableNum(PurchTable))

Like such

This is an error with both the PSA and non-PSA versions.

If I find the blog where I found this fix, I’ll add the link.

Hope this helps!

Happy DAXing!

Advertisements

About janeteblake

Dynamics AX developer
This entry was posted in AX2012, Bug, Dynamics AX. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s