Run check links on PM transaction tables first for a GP fix. (Microsoft Dynamics GP > Maintenance > Check Links)
I have seen this happen when the posting process hangs or gets interrupted for whatever reason (could be a user session hangs, then they kill the GP process to try and reset.)