Validate in charts that ids exist and appear only once.