Error 88 on Sales Order Entry Lines

We are experiencing an error 88 on Sales Order Lines.  The error occurs only on large orders with numerous lines, especially when adding inventory items to the order on the fly.  The line prewrite script is failing and referencing different UDT objects declared by the Set command.  The failure normally occurs on MoveFirst of MoveNext commands for the UDT objects.  The prewrite script is lengthy and sets numerous new objects for other table reading, prior to writing the SO line record.  If an error occurs, all data on the lengthy order is lost.  How can we better manage the object resources to avoid the crashes? 

Parents Reply Children
  • 0 in reply to SilverFox

    Yes, but not always.  Don't do that for objects created from a ChildHandle, or from a property (like creating oLines from a header object).

    You'll see examples doing this:

    if not(IsObject(oUDT123)) then ...

    ...when creating objects, to avoid trying to create an object that already exists, but I think it's cleaner to close things out purposefully.

    Do whatever works.