Such error occur when the combination of Gen. Bus. Posting Group and Gen. Prod.Posting Group is not defined in the Gen.Posting Setup.
There may be a possiblity that you have changed the Gen.Bus.Posting group of customer after creating its Sale Order and it’s setup not exists, if this is correct, then you have to define the combination group in the Gen. Posting Setup.