Skip to main content
16-Pearl
September 1, 2022
Solved

Adding stream entries

  • September 1, 2022
  • 2 replies
  • 1668 views

Hi,

I am trying to add rows with new values to a stream.

By doing the following: 

add stream entries 2.pngadd stream entries.png

 

But I keep getting the error above. Can someone please help me understand what the error means and do you know how I can fix this?

 

Many thanks 🙂

Best answer by nmutter

the issue is you defined the service to have an return value but you do not specify it. You can just change the return type to "NOTHING"

nmutter_0-1662066436080.png

 

2 replies

17-Peridot
September 1, 2022
  1. create "streamvalues" infotable
  2. add data into "streamvalues" infotable using ".AddRow()"
  3. call ".AddStreamEntry()" snippet
  4. if service Output is INFOTABLE or ANY then mention at end of service "result = streamvalues" 

Refer https://www.ptc.com/en/support/article/CS232922

 

nmutter16-PearlAnswer
16-Pearl
September 1, 2022

the issue is you defined the service to have an return value but you do not specify it. You can just change the return type to "NOTHING"

nmutter_0-1662066436080.png