So I have an open script that runs several functions when a solution is first started by a user. First it checks if one is using a mobile device as that would be a field employee and wouldn't need to run the rest of the script. I'm having issues with a couple of the calculations it runs though. There are two values that need calculated for all records in the solution. Incidents and Violations. The scripts are run in loops to cycle through records with exit on last on to exit the loop and proceed to the next. Right now only the first loop seems to run. Whether it is violations or Incidents only that value is updated in the respective records. I know the script isn't exiting after the first loop as the email script below both of them still runs properly but no matter what the second loop script will not run.