Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.


Function: error
  Make an error. This is useful in conjunction with a case function,
  where you want to provide a specific message when it fails.


    error('The value was incorrect!') -- Error('The value was incorrect!')

      `incident_type` == 1 OR `incident_type` == 2,
      error('Expected incident_type to be 1 or 2, found that it was ' || `incident_type`)
    ) -- this will ensure incident_type is 1 or 2, and if it's not, will generate an error explaining why

text -> a