changed errorid to bigint