I am trying to create a script to activate on pre-writes of the sales order detail in 4.40 PU5. Randomly, it will cause a crash on the server (this is MAS 200). But, if we do not have a job number (from job cost), then it works flawlessly every time. I have tried turning cost costs off and on as required fields and that has no bearing. There's just something with the integration to job cost that causes the scripting to crash and I can't seem to figure this out.