AddStreamEntries Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
AddStreamEntries Problem
Hi Developers!
I have two streams, A stream and B stream, and their data shape are the same.
I've tried to add a part of stream data from A stream to B stream by using service addstreamentries.
But it kept saying Wrapped java.lang.NullPointerException Cause: null
Can someone help me? Appreciated!
Lee
- Labels:
-
Troubleshooting
- Tags:
- javascript
- streams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello, can you please provide the JavaScript syntax you are using to attempt this copy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
var params = {
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */
};
// result: INFOTABLE dataShape: "undefined"
var a = me.GetStreamEntriesWithData(params);
var params = {
values: a /* INFOTABLE */
};
// no return
Things["BStream"].AddStreamEntries(params);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Lee Wei,
The output format for GetStreamEntriesWithData service and the input format for AddStreamEntries service is different.
Please refer to following Blog for your answer to your query: How to copy entries from one Stream to other Stream
I hope it helps.
