StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Error in Insert (Save)
Error in Insert (Save)
Post Reply
Like
0
Error in Insert (Save)
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Angela Sampaio
Angela Sampaio
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 16,
Visits: 61
Hi,
I have a BO of products that contains a field pro_nrow; this field is the Primary Key and the "Auto Incrementing" is enabled (Seed 1, Increment 1).
When I try save a product, appears a error message
Unable to enter an explicit value for the identity column of the table 'tabproduto' when IDENTITY_INSERT is set to OFF.
When I insert directly into a database gives certain.
I looked debug.html the file and noticed that he is going empty ('') for the pro_nrow.
Is attached the image of debug.html
Thank you.
Attachments
erro_produto. 12 14.jpg
(
129 views,
57.00 KB
)
Reply
Like
0
Greg McGuffey
Greg McGuffey
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Is the BO setup correctly? It should be setup (in the CRUD settings area) with PrimaryKeyIsAutoIncremented=True, PrimaryKeyIsUpdatable=False and the field that is the PK should be shown as the PK in the BO Mapper (which will set that field as the PK when you build the BO).
Reply
Like
0
Angela Sampaio
Angela Sampaio
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 16,
Visits: 61
Yes, the BO is setup correctly...
I don't know what more can be causing this problem...
Reply
Like
0
Angela Sampaio
Angela Sampaio
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 16,
Visits: 61
Hi Greg,
I find the problem ...
In the "ProdutoBO.cs" file the properties were set correctly, but in the form of product the BO "sysProdutoBO1" the property PrimaryKeyIsAutoIncremented was as false.
Now is correctly.
Thanks!
Reply
Like
0
Greg McGuffey
Greg McGuffey
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Glad you found it!
Reply
Like
0
Trent Taylor
Trent Taylor
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
Good to hear you found your problem.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search