Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update() Failed - Invalid Operation Error
Message
De
07/07/2006 14:41:49
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01134480
Message ID:
01134549
Vues:
14
>When attempting to execute the Update command on an SQLAdapter object, I get the following error:
>
>
>     'Variable Values at Time of Execution:
>     'Me.Parent.Parent = DataSet Object
>     'Me.TableName     = "tblUsers"
>     'Me.Parent.Parent.Tables.Contains("tblUsers") = True
>     objAdapter.Update(Me.Parent.Parent, Me.TableName)
>
>
>
>System.InvalidOperationException: Update unable to find TableMapping['tblUsers'] or DataTable 'tblUsers'.
>
>
>I am at a complete loss as to why I am getting this error. I would not be surprised if it's something simple that I overlooked, but darned if I can't seem to track this down. Any help would be appreciated...

Ben,

You have probably forgotten to set the table mappings for the DataAdapter to 'tblUsers'.

Before the update:
objAdapter.TableMappings.Add("Table1", "tblUsers")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform