No ratings

Known Issue: SmartObject property file is a required property for selected method Execute


Known Issue: Behavioral change in browsers for  handling Cookies causes too many redirects error



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



The steps below show you how to resolve this issue by changing the mapping from a file parameter type to a SmartObject property type.

  1. Open K2 Designer, browse to the ServiceObject in the ServiceObject explorer. Edit the Execute method of the ServiceObject Keelan_24-1629203841150.pngKeelan_25-1629203854940.png
  2. Edit the input property for the file and change the mapping to a SmartObject       Property and click Create.Keelan_28-1629203978454.pngKeelan_29-1629204384868.png
  3. Give the property a name, click OK and Finish to save the changes.Keelan_30-1629204436109.png
  4. Select the View with the Attachment Control, Check out and edit  the View.
  5. 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.Keelan_31-1629204489407.pngKeelan_32-1629204509161.png
  6. Click Configure on the Action that uses the File parameter.Keelan_33-1629204604850.png
  7. Map the File Attachment from the Context Browser to the new property you created.Keelan_34-1629204651881.png
  8. Click Finish, OK and Finish to save changes.

    Test the view by uploading a file to the control

Labels: (1)
Version history
Last update:
‎08-17-2021 07:12 AM
Updated by: