cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Adding stream entries

Janicen
16-Pearl

Adding stream entries

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

ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

2 REPLIES 2

  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

 

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

 

Announcements


Top Tags