This is normally due to an SAP database Corruption.
This can happen in rare cases if the structure of the OUDO, OUDT and/or CUFD Tables are corrupt.
Try and create an SAP generated GUI for the UDO using the B1 Client Wizard. If that also fails contact SAP Support to get it fixed.