An EastEnders storyline featuring a baby being removed from a teenage mother by social services has been branded "disgraceful" by the body that represents social workers.
The head of the British Association of Social Workers (BASW) accused the BBC of being "too lazy and arrogant to get it right" over the story.
The plotline, which saw teenage mother Lola Pearce's baby Lexi taken from her, prompted a reaction on Twitter.
But the BBC said it had not intended to portray social workers in a negative light, and there was no suggestion the worker's actions arose from "anything other than a genuine desire to protect Lexi".
Bridget Robb, acting chief executive of BASW, said: "Social workers don't want to hear patronising excuses from the BBC about the use of dramatic licence. A badly written and poorly acted portrayal of a car mechanic does not have the same effect on the public as a poor portrayal of a child protection expert.
"Social workers have a difficult enough job as it is. Unlike the writers and actors on EastEnders, they have to step through those front doors that no one else wants to step through, and they do it on a daily basis, to protect children, not to target families."
But an EastEnders spokeswoman said they had worked with a social worker on the storyline, which led to 556 complaints over the last two and a half weeks.
The BBC said in a statement: "It is not our intention to portray social workers in a negative light. Whilst the audience has seen how much Lola loves Lexi, and seen her behaving responsibly in caring for her baby, her social worker has not.
"Each time the social worker visited, she regularly saw worrying behaviour that concerned her...we believe the audience will have understood why she had to act quickly to remove Lexi when Lola was arrested for assault."