Hi, I've tried debugging the code but it won't hit the breakpoint both in AX and Visual Studio. This is the only output I get whenever I receive the error:
A first chance exception of type 'Microsoft.Dynamics.Ax.Services.XppBridgeException' occurred in Ax32Serv.exe
A first chance exception of type 'System.ServiceModel.FaultException`1' occurred in Microsoft.Dynamics.AX.Services.QueryService.dll
A first chance exception of type 'System.ServiceModel.FaultException`1' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.FaultException`1' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.FaultException`1' occurred in System.ServiceModel.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.Internals.dll
A first chance exception of type 'System.IO.IOException' occurred in System.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.Internals.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.Internals.dll