I suggest you use a separate ofbiz instance, with the same code but different Database, with Demo data to perform the operation. if it works in the the demo but not in the instance you have imported data, then research your data to see what is different.