Known Issue: Behavioral change in browsers for handling Cookies causes too many redirects error
KB003669
PRODUCT
Issue
When an attachment control is used on a view to upload a document, and the control is configured to run the execute method of a SQL Stored Procedure ServiceObject; and the input property is mapped with a file parameter an error occurs at runtime when the file is attached. The error is displayed as the control is expecting a SmartObject property with the type file and not bound to a file parameter type.
Error Code
SmartObject property file is a required property for selected method Execute. Value must be set
Resolution
The steps below show you how to resolve this issue by changing the mapping from a file parameter type to a SmartObject property type.
- Open K2 Designer, browse to the ServiceObject in the ServiceObject explorer. Edit the Execute method of the ServiceObject
- Edit the input property for the file and change the mapping to a SmartObject Property and click Create.
- Give the property a name, click OK and Finish to save the changes.
- Select the View with the Attachment Control, Check out and edit the View.
- Navigate to the Rules of the View (you will notice the rule action has been badged as it used the old property), select that Rule.
- Click Configure on the Action that uses the File parameter.
- Map the File Attachment from the Context Browser to the new property you created.
- Click Finish, OK and Finish to save changes.
Test the view by uploading a file to the control