Hi Anca! In xcap_xml table the doc_type is a varchar, but in notify.c you query this colum as DB_INT: query_cols[n_query_cols] = "doc_type"; query_vals[n_query_cols].type = DB_INT; query_vals[n_query_cols].nul = 0; query_vals[n_query_cols].val.int_val= PRES_RULES; Doesn't this cause any conflicts? regards klaus