Hi all, I'm currently working on developping test codeunits for my company to test out our processes. I'm having an issue while testing the Copy documents function available on the page Sales Credit Memo, as when I'm invoking the Copy document action, I consistently get the error /An error occured an the transaction is stopped. Contact your administrator or your partner to get help/ when reaching the RunModal of the report. I have a RequestPageHandler set up to catch this report (here we use a report of ours), and the RequestPageHandler is listed in my HandlerFunctions. I've used RequestPageHandler before and had no issues. When using the Copy document action on the page as a user I have no issue.
I'm encountering the same error message when developing test codeunits.
For me the error occurs when calling Codeunit.Run(). This specific OnRun trigger works fine when called during normal execution, but throws an error every time when it's run from a test codeunit.
Have you solved your error? If so, what did you do to fix it?
BR
Was this reply helpful?YesNo
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.