Inserting New Record from a Stateless Form

Inserting New Record from a Stateless Form

I have a stateless form with a button designed to add multiple records to another form based on values populated on the stateless form. When I click the button I receive the Error "Error occurred while executing on click script." The script appears to be correct and I can not determine why I am getting the error.

Here is the script:

for each steprecords in Steps  [Process == "T&D - Backlog"] sort by  Step
{
    insert into Processing_Details
    [
        Added_User = zoho.loginuser
        Authors = input.Authors
        Call_No = input.Call_No
        Cart_Batch_No = input.Cart_Batch_No
        Cart_No = input.Cart_No
        Complete = input.Complete
        Document_Content = input.Document_Content
        End_Date = input.End_Date
        Equipment_Used = input.Equipment_Used
        Issue_Date = input.Issue_Date
        Local_Archive_Location = input.Local_Archive_Location
        Process = input.Process
        Processed_By = input.Processed_By
        Processing_Location = input.Processing_Location
        Processing_Notes = input.Processing_Notes
        Remote_Archive_URL = input.Remote_Archive_URL
        Repository_URL = input.Repository_URL
        Scan_Order_No = input.Scan_Order_No
        Select_Author_Date = input.Select_Author_Date
        Start_Date = input.Start_Date
        Step = steprecords.Step
        Title = input.Title
        Unscanned_Large_Format_Content = input.Unscanned_Large_Format_Content
    ]
}
reload;

Any help would be appriciated!