AX is getting restarted.

Hi Experts,

I have created a custom form where it manipulates purchline. I have created a button which will trigger the manipulation. The code is working fine. However, when I call the executeQuery() method to refresh the datasource, at the super() method in the executeQuery method, AX is getting restarted. I am calling executeQuery method from other parts of the form, it is fine in all the cases, But, the issue is coming only with the above button.

Any suggestions would be greatly appreciated.

Thanks in advance.