Polish soldiers were captured during heavy fighting, in which First Polish Army tried to break through German defensive fortifications, known as the Pomeranian Wall. The hands of the 32 prisoners of war were tied with barbed wire, then all Poles were forced into a barn, which was set on fire. All burned alive.
It seems to me that this would be quite difficult and time-consuming to perform during heavy fighting. Reading the translated version of the Polish article – it looks like either the Barn was set on fire with the SS retreat (a waste of resources, considering some soldiers in the barn were found with head trauma, indicating they were shot and that the SS most likely thought they were dead) or it caught fire during the fighting (more likely). Either way – Latvian involvement in this is not conclusive at all, since the article states that the Dutch attached to the 15th divsion performed the executions.