Roku Direct Publisher

The easiest way to create a great TV experience.
cancel
Showing results for 
Search instead for 
Did you mean: 
mmahoney
Level 7

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
5 Replies
Baradanikto
Level 9

Re: Feed Status Duplicate ID error

Please post your feed file. I can validate it using software I have written.
Windows desktop software for creating and managing MRSS, JSON, and FireTV feeds @ https://rrirower.wixsite.com/software. No Programming, JSON or MRSS knowledge required.
0 Kudos
mmahoney
Level 7

Re: Feed Status Duplicate ID error

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

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
Level 9

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'.
Windows desktop software for creating and managing MRSS, JSON, and FireTV feeds @ https://rrirower.wixsite.com/software. No Programming, JSON or MRSS knowledge required.
0 Kudos
mmahoney
Level 7

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