Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: AX 2012 R3: Error while submitting purchase requisition workflow

$
0
0
Hi We have encountered a similar issue when sending Emails via the Alert system, that we have solved and this resolution may help you with your issue. The Error Reported to the user was Error EventJobCUD-run\EventJobCUD-executeTask The number of arguments provided is different from the number of arguments accepted by the method. Error EventJobCUD-run\EventJobCUD-executeTask An error occurred while processing event rules for user 'XXXX'. Error EventJobCUD-run\EventJobCUD-executeTask An error occurred while processing event rules. Initial Analysis Tracing through the code we found a section of code where the dispHTMLdocument was submitted to a COM object and when processed by call method of an extended COMDispFunction Class it 'mutated' to a JscripTypeinfo object. Section of the code in Standard AX code src = new COMVariant(); //BP Deviation Documented document = new COM(#HTMLDocumentClassName); if (document) { SysEmailTable::insertHTML2Document(document, html); Order Received GOOD FORMAT (it was not indented) NAME: htmlText VALUE: There is no documentation as to what the 'JscripTypeinfo' object is, what methods it has or why the external assembly mutates/changes the object type. We surmise it might be some form of opaque error message. Recommendation Trace through the code to find out where the object is being 'mutated/changed', find out what document you are sending out and look at the format of that document. If you cant see a problem them create a new document/template from scratch, copy one that works? I hope this is some assistance, it took us some time to uncover this odd issue and resolve it. Best regards

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>