A data management error has been blamed for keeping a teenager in custody five weeks longer than he should have. Queensland’s department of Communities have admitted to the mistake but are yet to issue an apology.