Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorrect Trigger Failed
Message
 
 
To
08/08/2007 15:01:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01246862
Message ID:
01246878
Views:
17
>>What information do you get with aerror() ? Can you show us some code of inserting a record?
>
>
>laError[1,1] = 1429
>laError[1,2] = "OLE IDispatch exception code 0 from Microsoft OLE DB Provider for Visual FoxPro: Trigger failed in Jurosdiv..."
>laError[1,3] = "Trigger failed in Jurosdiv."
>laError[1,4] = "Microsoft OLE DB Provider for Visual FoxPro"
>laError[1,5] = ""
>laError[1,6] = 0
>laError[1,7] = 16389
>
>
>
>
>tcSql = "insert into jurosdiv (jud_cod, jud_aplic, jud_dtfim, jud_dtini, jud_dtncc, jud_padcod, jud_perc, jud_selic, jud_tipo, jud_vlr, jud_selec, jud_jperc, jud_selpag, jud_dijcod, jud_vlrncc, jud_vparc, jud_perpar, jud_perncc) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
>
>This.oCmd.CommandText = tcSql
>loRs = This.oCmd.Execute() && display the error
>
>this.oCmd.Parameters have the collection of correct parameters
>
>
>JurosDiv table are relatad to another table. ADO thinks that the correspondent record dont't have in the parent table, but he have.
>
>I repeat that if I insert from VFP this error don't occours.

What is the trigger code?

I suspect that VFP OleDB can not run the trigger code for some reason. You may try to put some strtofile in different places in the trigger code and see, if you can get some output (e.g. try to log through the trigger code).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform