Consultor Eletrônico



Kbase P150768: Dataset being assigned to PBS must match in definition
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/08/2009
Status: Unverified

SYMPTOM(s):

Errors attaching a dataset to a proBindingSource defined with a different number of tables

System.Exception: Invalid DataSet Handle specified for BindingSource Handle property. DataSet must contain same number of tables specified at design time.

FACT(s) (Environment):

Windows
OpenEdge 10.2x

CAUSE:

This error is expected. The number and definition of table(s) defined in a proBindingSource at design time must match exactly the table(s) in a proDataset assigned to its handle property at runtime.

FIX:

Use the dataset WRITE-XMLSCHEMA method to generate a xsd file which can then be imported by the proBindingSource designer to ensure the schema is identical in both places.