Maximum recursion depth exceeded. Report, Perspective pop-up. Dynamic Data Key

I added a new text shape component to one of my reports. I am trying to use a dynamic data key to control the visibility of this component.

But, I get the following error returned.

 W [p.a.script                    ] [17:12:34]: Error running function "runAction(self, event)". component=root/Button, view=Pages/barcodetest@C
INFO   | jvm 1    | 2019/12/03 11:12:34 | com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last):
INFO   | jvm 1    | 2019/12/03 11:12:34 |   File "<function:runAction>", line 5, in runAction
INFO   | jvm 1    | 2019/12/03 11:12:34 | RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)

Script on test button currently:

params = {"count": 1300, "wip":'19D03330A001', "part": '038', "show":'true'}		
bytesArray ="Report", project="SCADA", parameters=params,fileType="pdf")'wiptag.pdf', bytesArray)

I have tried passing the string of ‘true’ and ‘false’
also tried 1 and 0
the datatype of the prop is bool.
I’ve tried using a long, string and bool parameter data type as well. Always get the same error.

So I thought maybe it was a pop-up problem. So I put the button on a test page that isn’t a pop-up and the same result.

What am I doing wrong?