Border patrol officers were at W.H. Adamson High School this week to promote careers in the law enforcement agency, not to investigate families, Dallas school officials say.

Representatives from the U.S. Customs and Border Protection participated in a campus job fair on Wednesday along with about three dozen other organizations.

But some students were upset by their presence and began texting parents and community members concerned that authorities were at Adamson to investigate immigration status.

“It was never our intent to cause anxiety or additional concern among our community,” Adamson Principal Diana Nuñez said in a letter to families. “In hindsight, we realize this may have been insensitive to some and apologize to our students, staff and family for any unnecessary distress their presence may have caused.”

Nuñez went on to explain that the job of educators is not to be immigration authorities but to promote a safe space for learning.

“For future career fairs, we will tighten our selection process and to better reflect the needs of our students both ethnically and equitably,” she wrote.

District spokeswoman Robyn Harris said the border officers left as soon as concerns arose saying they understood some might be upset by their presence.

Organizations are invited to career fairs through various outreach efforts but ultimately it is up to school administrators to decide which groups participate on a campus.

Harris said district officials are aware that many families are concerned about stepped-up efforts to deport immigrants who many not have proper documentation. So district officials will encourage reviews of potential organizations for other upcoming fairs to determine what is appropriate for each event, she said.

In 2017, DISD approved a resolution declaring each campus as “welcoming and protective” for all students -- regardless of immigration status -- to the fullest extent of the law.

After various immigration raids in the area, DISD began developing plans last year to ensure that children are taken care of in case parents were detained.

Schools aren’t allowed to ask families about immigration status under federal law. Of the 1,600 students Adamson enrolled last school year, 95 percent were Latino and about 40 percent were limited-English speakers.