Hi all, my name is Antony.
When I open the 'Production control -> All production order' menu on AX365, the error 'Specified cast is not valid' appears.

The error also appears when I click estimate/release/start/RAF/end production order, when the dialog form appears as shown below.

I tried to find the source of the error by debugging -> attach to process w3wp.exe.

Then in Exception Settings -> System.InvalidCastException I checked the checkbox.

Then when I try to produce the error in Onebox, the error doesn't appear on the Call Stack tab.

The error only appears on the Output error tab, so it doesn't explain where the error is coming from.

Do you have any suggestions friend, what is the right way to find the source of the error?
Any advice would be very helpful to me.
Thank you and Regards, Antony.