When creating a script for a package and having the option 'format pl/sql objects' checked the 'formatted on....' comment is placed incorrectly. This causes error if the script is subsequently run in sql*plus e.g.
WORKAROUND 1
In the script options tab of the 'Create Script', you can uncheck 'format pl/sql objects'
WORKAROUND 2
If you still want the code to be formatted then you can keep this option checked and switch off the tagline in the formatting options i.e.
View | Formatting Options | Header | Disable tagline.
STATUS
Waiting for fix in a future release of Toad for Oracle