Related Catalog Item showing error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:09 AM
Hello,
I have added Related catalog item widget to my sc_cat_item page. The widget is not displaying on the right side and producing some errors.
Could anyone please suggest what might be causing this issue?
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 01:41 PM
Hi,
it seems the options schema may contain some invalid info or it is missing at all.
It is weird that your widget shows error on line 44 since the code asking for table is already on line 34.
Have you modified the widget? Anyway try to follow these steps.
You can check what is defined in your options schema:
1. CTRL + Right click on any widget and select 'Instance in page editor'
2. In the top section in the tree select your widget instance (second from right)
3. Scroll down to Additional options, JSON format. On my PDI I have the following and it works perfectly. If you are missing anything try to back up the original and use this.
{
"source_table": {
"value": "sc_2_sc",
"displayValue": "sc_2_sc"
},
"source_column": {
"value": "sc_cat_item",
"displayValue": "sc_cat_item"
},
"target_column": {
"value": "related_sc_cat_item",
"displayValue": "related_sc_cat_item"
},
"title": {
"value": "Related Items",
"displayValue": "Related Items"
},
"max_number": {
"value": 5,
"displayValue": "5"
},
"source_id": {
"value": "",
"displayValue": ""
},
"use_full_width": {
"value": "false",
"displayValue": "false"
}
}