Read the error - place the entire block of code creating the line loads with LineLoad.Create() inside a transaction. My code has comments to indicate where the transaction could go
Roger that. Understood. Will update now and test. Thank you again for the help!