Cause
If the "Records (+/-) cost centers according to the category" (File>File and accounting properties>Options) box is ticked, you don't need to add it in the cost center as the program already takes it into account.
Solution
Do not use the "-" minus sign in cost centers.