#YAML unable to build playout

1 messages · Page 1 of 1 (latest)

undone prawn
#

I'm running into this error when trying to expand my single show example from last night:

Unable to build playout 73: Unexpected error building playout for channel YAML Test: The instance of entity type 'OtherVideo' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

#

v25.3.1-7bd0de99-win-x64

brittle cargo
#

are you able to dm me your db? that might be the easiest way to repro

undone prawn
#

Haha yeah let me zip it up… it’s a bit large

brittle cargo
#

thanks it repros using that

undone prawn
#

Will update in a bit

undone prawn
#

aight, running into a similar issue as before. I've checked the YAML, and while I can't guarantee every search will actually yield episode/show matches, that's next, I feel like the YAML itself is valid, but i'm getting:

8/4/2025 2:48:51 PM     Warning     Failed to validate YAML schedule definition: ["JSON is valid against no schemas from 'oneOf'. Path 'content[7]', line 1, position 841."]```
#

the db from before should work with it

brittle cargo
#

let me show you what i do - it's two steps but it works ok

#

step 1 - put your yaml in the thing to convert to json

#

step 3 - put your converted json in the right side of the schema validator

#

step 4 - profit

#

the error also points you to the 8th item in the content list (starts with zero)

content[7]

#

Failed to validate YAML schedule definition: ["JSON is valid against no schemas from 'oneOf'. Path 'content[7]', line 1, position 841."]

undone prawn
#

Shibby

undone prawn
#

got that all fixed, now I'm adjusting the content searches/etc to make sure it actually matches the naming... I have this YAML that says it validates against the schema on that schema validator site, but I'm getting this:

Failed to validate YAML schedule definition: ["JSON is valid against no schemas from 'oneOf'. Path 'content[31]', line 1, position 3905."]

I suspect it's where I changed a search to a show with a tvdb ID (Avatar the last airbender)

#

can you mix searches and shows in the content block?

brittle cargo
#

yeah it should be no problem to mix, will take a look here when i can. the json conversion isn't exactly the same as that site, unfortunately. will let you know what i find

#

try quoting the guid value

undone prawn
#
    key: "AVATAR"
    guids:
      - source: "tvdb"
        value: "74852"
    order: "chronological"```
brittle cargo
#

I think it's converting to int not string

#

I can try to fix schema if that works

undone prawn
#

isn't it already quoted there?

#

could prob chang it to imdb

brittle cargo
#

oh yeah weird

#

ill def have to update the schema, it converted to an int in json

undone prawn
#

gotcha, yeah I changed to imdb and it worked

brittle cargo
#

What that's crazy

#

Oh with tt

undone prawn
#

yeah

#

figured that would force the issue

brittle cargo
#

ok, i think i have it fixed to accept both

brittle cargo
#

okay, added a built in yaml validation tool #features-and-changes message

#

lol

undone prawn
#

lol nice