InfoPath Forms Services business logic cannot be serialized - Event 5734 (SharePoint Server 2010)

 

Applies to: SharePoint Server 2010 Enterprise

Alert Name:   InfoPath Forms Services business logic cannot be serialized

Event ID:   5734

Summary:   In InfoPath Forms Services in Microsoft SharePoint Server 2010, the FormState property bag provides a way to maintain business logic state across multiple server postbacks. For example, in a particular method in business logic, local variables can be persisted in the FormState property bag for multiple postbacks. All objects stored in the property bag must be capable of being serialized.

Symptoms:   One or more of the following symptoms might appear:

  • An error occurs when executing custom code in the form.

  • This event appears in the event log: Event ID: 5734 Description: Cannot persist business logic type <ObjectType> because it is not serializable. (User: <UserName>, Form Name: <FormName>, Request: <https://servername/_layouts/Postback.Formserver.aspx>, Form ID: <FormID>)

Cause:   Business logic in a form template attempted to store a non-serializable type in the FormState property bag.