Main Content

Resolve TCP/IP Server Warning: Unable to Read All Data


These remedies apply when you receive some data and you get this warning message:

'tcpserver' unable to read all requested data

Possible Solutions

Try these remedies to resolve the following causes when you use the TCP/IP server interface for reading binary data using the read function.

The number of values to read was set to a higher value than the number of values available to be read.Confirm that you set the correct number of values to read with the read function. Check the amount of data available with the NumBytesAvailable property of the tcpserver object. For information about setting the number of values to read, see read.
Client did not send all the requested data.Check your client connection. For more information about troubleshooting configuration and connection, see Troubleshooting TCP/IP Server Interface.
There was a data format mismatch.Verify that the client data type matches the specified server read data type. Specify the server data type with read. For information about supported data types, see read.

See Also

Related Topics