Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Sending a File thru ftp, and updating the record for it.

$
0
0

On a powerbuilder 12.5 classic application

I'm sending a file, to an ftp site

but... on that site they are immediately renaming the file.

 

I have database transactions, that are used to make up this file.

so...  if the file was sent, I would update the transactions on the database to Sent.

But.. I believe I had an instance where the database transactions failed..... even though the file was sent

and the user, "failed" to see the error.

 

so, I ended up sending 2 file... which caused a lot of problems

 

the database is oracle

If there's some kind of database issue...  will it fail, when I try to do the dw.update()?

or... will it error out on the

commit statement?

 

I'll need to change my process.... and change the database transactions (to sent) first

just not commit them, until the I'm sure that the file is sent

 

If it fails on the update...  I'll need to do the update, before actually sending the file

Then... I should be able to rollback the transactions, if the file send fails

otherwise... I can commit

 

 

Does this make sense??


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>