HandlerFunction does not call ModalPageHandler?!

Hey guys,

I discovered a new error in my test codeunit.

For me it is not possible that the HandlerFunction calls the ModalPageHandler…

I also used the Debugger in Visual Studio Code, but it did not help me either.

I have seen that the reference under ModalPageHandler is zero, maybe this has something to do with my problem…

Do you see my mistake/-s?

What happens when you run it? Where does it fail and what is the error? And all the censoring of your code doesn’t help.

Hi Erik, here is the complete Code of this Handler Function:

When I run it in the test tool in BC I get that error message:

“Open record Unhandled UI: ModalPage 571 in a new windows”