Jump to content
Server Maintenance This Week. ×

Bit and bad!


This topic is 3772 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm posting this because I consider it an important enough warning. Sometime in 2011, a sub script that had worked for a long time stopped working. Well, it didn't fail, but began to stop recording important data. Somehow two script steps began working (and appeared in the editor) in reverse. What should have been SetVariable(all properly done) then GoToLayout (where the variable is used to SetField) got reversed so the SetField was failing without an error message. I found the problem just today. I have no idea how the steps got reversed. I must have done it of course because the data was empty from mid 2011 but complete before that. So why the warning? This subscript was involved in recording income data paid to non-resident employees and was summed at the end of the year on tax forms. In Canada, these are called T4A NR forms. In all, as a result of this one-line reversal, I under declared around $50,000.00 of fees paid out in 2011. I can only imagined how much excess tax I paid. The lesson? Be very careful I suppose, but also use instinct to sniff out when a number is "way off". Penny mistakes don't happen often in databases. When a figure is so far out of whack something's wrong. My likely true mistake? Arrogance. I mailed out the forms to employee and government alike without careful scrutiny.

  • Like 1
Link to comment
Share on other sites

Hi:

 

it is fairly easy to inadvertently change the order of script steps with an unnoticed mouse movement (just like when folders "disappear" inside another folder).

However, the Script Editor always asks if you want to save the changes.

My only guess is that during a script modification (where the save was confirmed), the order was  inadvertently changed.

 

Sorry to hear about the tax paid, I guess Canada is no different from most other governments; they like to receive extra but balk even at minute underpayments.

Nice country, I went to McGill in the 70's.

Link to comment
Share on other sites

Note that is also easy to change script step order from the keyboard with control-up or control-down.

You can also use shift-select and the arrow keys to select multiple lines; then control-up or control-down to move the selected lines.

Link to comment
Share on other sites

This topic is 3772 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.