new function can be used to derive codes from strings
2092 - added trust purposes to conversion
better logging
diag now locates gldetail linked to deleted object rows