Why isn't my code working?

Why isn't my code working?

I set up the following function:

  1. void SaveExistAgency(map mapAgency)
    {
        insert into tblAgency
        [
            Added_User = zoho.loginuser
            intAgencyID = (input.mapAgency.get("intAgencyID")).toLong()
            strAddress = (input.mapAgency.get("strAddress")).toString()
            strAgencyName = (input.mapAgency.get("strAgencyName")).toString()
            strCity = (input.mapAgency.get("strCity")).toString()
            strCountry = (input.mapAgency.get("strCountry")).toString()
            strRegion = (input.mapAgency.get("strRegion")).toString()
        ]
    }
Then I tried to run the function, passing in the following:

{intAgencyID: 90210, strAgencyName: Leo's House, strRegion: Wellington, strAddress: 123 Fake street, strCity: Wellington, strCountry: New Zealand}

I keep getting an error message saying:
Error Occurred.  We are sorry for the inconvenience.  Please try again after some time or refresh the page and try again.

Is this code correct?  Is it my issue or Zoho's issue?

Thanks

Leo Saumure