# pyStreamName error issue

**URL:** <https://forums.pega.com/t/pystreamname-error-issue/6436>\
**Category:** General\
**Tags:** 8-7, data-integration\
**Created:** [March 19, 2024, 8:24am UTC](https://forums.pega.com/t/pystreamname-error-issue/6436 "2024-03-19T08:24:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KoheiN16948700](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@KoheiN16948700](https://forums.pega.com/u/KoheiN16948700)\
**Post date:** [March 19, 2024, 8:24am UTC](https://forums.pega.com/t/pystreamname-error-issue/6436/1 "2024-03-19T08:24:41Z")

</div>

Declare\_pyDisplay.pyDisplay(pyPortal.pyPortalPages(1).pyHarnessName).pyUIActive(1).pyStreamName

in above condition this value pyPortal.pyPortalPages(1).pyHarnessName is returning empty and passing like this

Declare\_pyDisplay.pyDisplay().pyUIActive(1).pyStreamName and getting scalar error.

Please let me know any fix is there for above issue.

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [April 3, 2024, 4:51pm UTC](https://forums.pega.com/t/pystreamname-error-issue/6436/2 "2024-04-03T16:51:30Z")

</div>

@KoheiN16948700 The scalar error occurs when the system tries to access a property of a page that does not exist. In your case, it seems like the page pyPortal.pyPortalPages(1) does not have a property pyHarnessName, or the page itself does not exist. You should check if the page and property exist before trying to access them. If they do not exist, you need to ensure they are properly initialized and set before this expression is evaluated.

please log a support issue via the [MSP](http://msp.pega.com)and provide the INC id here.
