LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error inserting data with DB connectivity toolkit

Hello everyone

 

I´m recording some data in a ORACLE DB. I´m using the attached vi. It works correctly but, sometimes, the server reboots.

 

After this happens i don´t get any error doing the insert query, but no data is saved in the DB, so i think that must be a reference opened that doesn´t let me save data.

 

Any idea?

 

Thanks

Image and video hosting by TinyPic
<script type="text/javascript" async src="//cdn.youracclaim.com/assets/utilities/embed.js"></script>
0 Kudos
Message 1 of 3
(2,657 Views)

If you are doing an INSERT / UPDATE, there is no need to fetch the recordset.  Here is how I would set it up.  Basically the while loop will try to connect 10 times if an error occurs.  After 10 retries, the error message is displayed.  You need to handle the errors, not just wire them thru each VI. 

Oracle Registro_BD.png

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 3
(2,620 Views)

Ok, thanks, I´m going to try this

 

 

Image and video hosting by TinyPic
<script type="text/javascript" async src="//cdn.youracclaim.com/assets/utilities/embed.js"></script>
0 Kudos
Message 3 of 3
(2,613 Views)