Transaction Error
upasanisandip
Member Posts: 405
Hi everyone,
Does any know about this error.
You cannot make any changes in the database until a transaction has been started.
Thanks,
Sandip.
Does any know about this error.
You cannot make any changes in the database until a transaction has been started.
Thanks,
Sandip.
0
Comments
-
Where does this error occur?No future at CPI0
-
i have written one function to insert record in one new table created by me in the following event
Form-onNextRecord()
InsertRecordIntoInvoiceSrno;
InsertRecordIntoInvoiceSrno()
InvoiceItemSrNo1.INIT;
InvoiceItemSrNo1."Vendor Code":="Buy-from Vendor No.";
InvoiceItemSrNo1."Item Code":="No.";
InvoiceItemSrNo1.INSERT;0 -
upasanisandip wrote:i have written one function to insert record in one new table created by me in the following event
Form-onNextRecord()
InsertRecordIntoInvoiceSrno;
InsertRecordIntoInvoiceSrno()
InvoiceItemSrNo1.INIT;
InvoiceItemSrNo1."Vendor Code":="Buy-from Vendor No.";
InvoiceItemSrNo1."Item Code":="No.";
InvoiceItemSrNo1.INSERT;
In purchase line subform i am writing this function.0 -
You cannot modify DB in OnNextRecord. This trigger is just for reading the DB...0
-
It's not really a good idea to program any data manipulation in the form. If you have no choice but to have a form event modify data, you should program the thing as a function in the table and call the function from the form.0
-
Yes ... it cost me a day of development time. No one I know had heard of such an error. I called a code unit that manipulated data on the OnInitDataport trigger of a dataport. After a day of frustration, I moved the code to the OnPreDataport trigger and the problem disappeared.Don't blame me. It's the hardware.
j0 -
The same applies to triggers in Forms. You will get this error if you put a "MODIFY" in trigger OnNewRecord on forms.
PS: There is an older thread discussing the same topic here:
http://www.mibuso.com/forum/viewtopic.php?t=9570&highlight=cannot+make+changes+database+transaction+startedNAVN00b0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

