Symptoms
Adding attachment in custom views and forms throws an error.
Diagnoses
While adding an attachment in a custom form throws an exception. An attachment view is placed to capture the attachments on custom form, while saving the added attachment from toolbar throws an error although it’s ID is mapped in the rule.
Resolution
The best way for the form to work would be to pass in a parameter (Sharepoint list item ID) to allow the form to load correctly.
No errors should occur if this is applied correctly.