Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello,
I have a stream with many data values in it, and the key value of the datashape is a field called "ID". ID is a string, as is the field "id".
As it turns out, neither the ID nor the id field will work as the parameter for GetStreamEntry or DeleteStreamEntry.
Example, here is a stream entry (showing both the ID and id fields):
And yet, when I execute "GetStreamEntry" with either of these as the ID, nothing is returned:
Does anyone have any ideas? This is driving me crazy!
Hello,
According the images, nothing is returned because the value specified for "streamEntryId" was a Data entry from a DataShape. The value specified should be a Stream Entry.
When the service "GetStreamEntries" is executed, only the Stream entries are output. See the field "id" for streamEntryID.
I have tested using Stream ID and DeleteStreamEntry and GetStreamEntry are working perfectly.
knagata, thanks for your reply, but I'm not sure what you mean when you say "was a Data entry from a DataShape". The value specified for streamEntryID is in fact the actual StreamID. You said "see the field id for streamEntryID" - that is exactly why I posted the screenshot showing the field "id". The id of the stream entry is 45862616. The other field is called "ID" and I was just showing you that neither id nor ID was working.
Just for sanity, and excuse the question if it's silly, have you made sure there aren't any spaces at the beginning and end of the ID? Saw this many times with data I copy from composer and use in service.