Use Where clause to filter null value, Add "DeviceInternal" error code.