# report.executeAndDistribute: Error Serializing Parameters

**URL:** <https://forum.inductiveautomation.com/t/report-executeanddistribute-error-serializing-parameters/14487>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [June 9, 2017, 5:54pm UTC](https://forum.inductiveautomation.com/t/report-executeanddistribute-error-serializing-parameters/14487 "2017-06-09T17:54:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caitlinf](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@caitlinf](https://forum.inductiveautomation.com/u/caitlinf)\
**Post date:** [June 9, 2017, 5:54pm UTC](https://forum.inductiveautomation.com/t/report-executeanddistribute-error-serializing-parameters/14487/1 "2017-06-09T17:54:36Z")

</div>

Hi there,  
I am using the following code to attempt to print a report (using its default parameters) and I keep getting this error. I do not know what’s causing it. I can’t find any examples for the “print” action for the execute and distribute scripting function in the manual, so I’m not 100% sure whether I’m doing it correctly.

```
            packList = event.source.parent.getComponent("power_table").data.getValueAt(row, "PackList")
	datestr = str(event.source.parent.getComponent("power_table").data.getValueAt(row, "Ship Date"))
	
	printer = event.source.parent.getComponent('printer_dropdown')
	settings = {"primaryPrinterName":printer,"copies":1 }
	_parameters = {"PackListNo":packList, "Date":datestr}
	
	system.report.executeAndDistribute(path = 'PackList',
	project = 'Our_Project_Name_',
	action = 'print',
	actionSettings = settings)

```

I’ve verified that the printer name is correct, the project name is correct, and I’ve tried passing the date as both a date object and a string with no effect.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2617b78098b7865e7e189a1b5356f65ee55e398d.JPG)

---

<div class="post-metadata">

**Author:** ![caitlinf](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@caitlinf](https://forum.inductiveautomation.com/u/caitlinf)\
**Post date:** [June 9, 2017, 7:08pm UTC](https://forum.inductiveautomation.com/t/report-executeanddistribute-error-serializing-parameters/14487/2 "2017-06-09T19:08:03Z")

</div>

Well of course I found the error only after making a post, but it was because I was not specifying the “.selectedLabel” for the printer dropdown component, I was passing in the whole component instead!
