Code Fix: Missing reference errors occur when packaging forms that transfer data between a subform and the parent form
KB001842
PRODUCTIssue Description
After applying K2 4.7 February 2017 Cumulative Update FP2, a form designed to transfer data from a subform or subview to a parent form, and the transfer rule is configured with parameters or a control, will display missing reference errors when the forms are packaged.
Error Message
The following error messages are displayed:
- “List Placement Types' View is referencing the 'Parameter with Name: pPageTemplateID' property on the 'Edit Supported Asset Type' View that could not be found.”
- “List Placement Types' View is referencing the 'Control with Guid: d2fd4cb8-548c-f270-0402-565bf699f70c and Name: hdnPlacementTypeID' property on the 'Edit Supported Asset Type' View that could not be found.”
Repro Steps
- Create a SubForm named SubForm1.
- Drag a button onto the canvas.
- Add a parameter named Param1.
- Click Finish.
- Create a SubForm named SubForm2.
- Drag a button onto the canvas (Button1).
- Add parameter named Param2.
- Click Finish.
- Create a Form named MainForm.
- Drag two buttons onto the canvas (Button2 and Button3).
- Add a rule: When Button1 is clicked then open SubForm1 as a subform.
- Add a rule: When Button2 is clicked then open SubForm2 as a subform.
- Add a rule: On SubForm1 - (When Button1 is Clicked) subform, when Button is Clicked, then transfer data to SubForm1 - (When Button1 is Clicked) subform. Configure the action and type a value for Param1 mapping.
- Add rule: On SubForm2 - (When Button2 is Clicked) subform, when Button is Clicked, then transfer data to SubForm2 - (When Button2 is Clicked) subform. Configure the action and type a value for the Param2 mapping.
- Click Finish on the Rules designer.
- Click Finish.
- Check- in all three forms.
- Open K2 Package and Deployment MMC.
- Package the three forms created above.
- Notice the missing reference errors.
Resolution
- Ensure you have K2 4.7 installed.
- Install the K2 4.7 February 2017 Cumulative Update.
- Get the K2 4.7 February 2017 Cumulative Update FP5 from Regional Support.
- Install the K2 4.7 February 2017 Cumulative Update FP5 to apply the fix.
- Clear the Browser cache.