Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when Saving new Row
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Error when Saving new Row
Miscellaneous
Thread ID:
01166508
Message ID:
01166508
Views:
47
I am getting an error when I am adding a new row, it's works fine when updating. Here is the error
Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.

Source Error: 


Line 33:     bool mpMasterPage_FormSave()
Line 34:     {
Line 35:         OakLeaf.MM.Main.Business.mmSaveDataResult oresult = (OakLeaf.MM.Main.Business.mmSaveDataResult)this.Save(this.ABO);
Line 36:         if (oresult == OakLeaf.MM.Main.Business.mmSaveDataResult.RulesPassed)
Line 37:         return true;
 
this.ABO is Just my Business Object reference in my form. This is of type AbusinessObject.

Can anyone please help me.

TIA
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Next
Reply
Map
View

Click here to load this message in the networking platform