Null Error

Null Error

I wrote the following very simple code to add a form and it is giving me a null error. Does anyone know why?


form  Opportunity
{    
Displayname = "opportunity"
    success message  =  "Data Added Successfully!"
    field alignment = left
  Column 
  { 
  name
 (
displayname = "Name"
  type = text
width 200px
)
address
 ( 
displayname = "address"
type = text
width 250px
)
 amountowd
 (
displayname = "amount owned"
  type = currency
  width 200px
 )
 

    actions
    {
        on add
        {
            submit
            (
                type  =  submit
                displayname  =  "Submit"
            )
            reset
            (
                type  =  reset
                displayname  =  "Reset"
            )
        }
        on edit
        {
            update
            (
                type  =  submit
                displayname  =  "Update"
            )
            cancel
            (
                type  =  cancel
                displayname  =  "Cancel"
            )
}
        }
    }
    }