Roku Direct Publisher

Roku Direct Publisher - the easiest way to create a great TV experience. Learn more about how to create a Roku channel and share your experiences with others.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mmahoney
Visitor

Feed Status Duplicate ID error

Hello,
I am getting an error in direct publisher saying that there is duplicate IDs in the feed. The issue is, I cannot find what ID they're referring to or what it means.

Please look at the picture in this link as the board would not let me insert
http://www.wcat-tv.org/wp-content/uploa ... -error.png

Thank you,
Mike
0 Kudos
7 REPLIES 7
Baradanikto
Roku Guru

Re: Feed Status Duplicate ID error

Please post your feed file. I can validate it using software I have written.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
mmahoney
Visitor

Re: Feed Status Duplicate ID error

http://www.wcat-tv.org/wp-json/tv/roku/
0 Kudos
mmahoney
Visitor

Re: Feed Status Duplicate ID error

"Baradanikto" wrote:
Please post your feed file. I can validate it using software I have written.

www.wcat-tv.org/wp-json/tv/roku/
0 Kudos
Baradanikto
Roku Guru

Re: Feed Status Duplicate ID error

I'm not sure how you created your feed file, but, there are some problems with it.  The software found the following:


Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[0].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 6995.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[0].seasons[0].episodes[1].content.trickPLayFiles.url', line 1, position 7873.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[1].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 9084.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[1].seasons[0].episodes[1].content.trickPLayFiles.url', line 1, position 9962.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[2].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 11368.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[3].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 12586.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[3].seasons[1].episodes[0].content.trickPLayFiles.url', line 1, position 13454.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[4].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 14827.


I think they may be caused by a stray bracket "{}[]" of some kind.  I can't tell because your file seems to be one long string.  It's difficult to read.  Additionally, a quick scan did show that you do have duplicate ids: for example '3014'.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
mmahoney
Visitor

Re: Feed Status Duplicate ID error

"Baradanikto" wrote:
I'm not sure how you created your feed file, but, there are some problems with it.  The software found the following:


Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[0].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 6995.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[0].seasons[0].episodes[1].content.trickPLayFiles.url', line 1, position 7873.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[1].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 9084.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[1].seasons[0].episodes[1].content.trickPLayFiles.url', line 1, position 9962.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[2].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 11368.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[3].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 12586.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[3].seasons[1].episodes[0].content.trickPLayFiles.url', line 1, position 13454.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'RokuJsonFeedManager.TrickPlayFilesObject[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'series[4].seasons[0].episodes[0].content.trickPLayFiles.url', line 1, position 14827.


I think they may be caused by a stray bracket "{}[]" of some kind.  I can't tell because your file seems to be one long string.  It's difficult to read.  Additionally, a quick scan did show that you do have duplicate ids: for example '3014'.

Thank you for the quick response, I will attempt to investigate further and reply back to you with an update. 
Thank you again
0 Kudos
Pataganja
Newbie

Re: Feed Status Duplicate ID error

My developer is getting this same error and said it’s cause of duplicates in Vimeo but they’re all different videos. Did you find a solution to this?

0 Kudos
37mediagroup
Roku Guru

Re: Feed Status Duplicate ID error

As Aaron Spelling said, this sounds highly unlikely to be Vimeo's problem.  Chances are, your developer is copying & pasting the shows or movies, and just 'replacing' the name, url, thumbnail etc. And on occasion forgetting to change the ID (from something like 0017 to 0018 etc)

0 Kudos