I think I fixed this. I put a commit records step in the script trigger script, even though this is not is the other scripts. Any way it worked.
If you have multiple portals on the same layout, make sure that the correct portal has the focus before you do a go to portal row. This step cannot specify which portal, so it either affects the first portal in your tab order or the portal that currently has the focus.
If you use the name box in the Inspector's position tab to give each portal a name, you can use go to object just before go to portal row to give the correct portal the focus.