Mega Code Archive

 
Categories / Delphi / ADO Database
 

Error missing data provider or data packet

Question: Why does the error "Missing Data Provider or Data Packet" occur? Answer: The error occurs when the ClientDataSet can't resolve to a Provider reference on the application server or if the Provider doesn't return records. Check that the TClientDataSet ProviderName is filled in. Background info: The error message originates in DBConsts.pas as a constant SNoDataProvider which in turn shows up in DBClient.pas (the unit that supports TClientDataSet). The error is triggered in two situations: 1) When the TClientDataSet.Provider can't obtain a reference to a provider through the RemoteServer component. 2) When the Provider doesn't return records to the TClientDataSet (during TClientDataSet.OpenCursor).