Dan,
I did some MySQL tracing as well. I see where the layout is updated, and where the publish is scheduled:
Layout Update
46254 Query UPDATE layout
SET status
= 3, modifiedDT
= ‘2019-09-13 15:12:12’ WHERE layoutId IN (
SELECT region
.layoutId
FROM lkplaylistplaylist
INNER JOIN playlist
ON playlist
.playlistId = lkplaylistplaylist
.parentId
INNER JOIN region
ON region
.regionId = playlist
.regionId
WHERE lkplaylistplaylist
.childId = ‘124’
Layout Scheduled
46297 Query START TRANSACTION
46297 Query UPDATE layout
SET publishedDate = ‘2019-09-13 15:15:00’ WHERE layoutId = ‘42’
46297 Query COMMIT
46297 Quit
But I see nowhere after that where any updates are performed for the layout:
Only Two Updates for Layout
However, if I manually publish, I see this (truncated):
Truncated Portion of Manual Publish
46507 Query UPDATE layout
SET status
= 3, modifiedDT
= ‘2019-09-13 15:28:57’ WHERE layoutId = ‘42’
46507 Query DELETE FROM lkcampaignlayout
WHERE layoutId = ‘42’
46507 Query DELETE FROM layout
WHERE layoutid = ‘42’
46510 Query INSERT INTO auditlog
(logDate, userId, entity, message, entityId, objectAfter)
VALUES (‘1568402937’, ‘1’, ‘Layout’, ‘Layout Deleted’, ‘42’, ‘{"layoutId":42}’)
46510 Query INSERT INTO auditlog
(logDate, userId, entity, message, entityId, objectAfter)
VALUES (‘1568402937’, ‘1’, ‘Layout’, ‘Deleted draft for 43’, ‘42’, ‘{"parentId":" > 43"}’)
46507 Query UPDATE layout
SET layout = ‘Xibo Staff Test’,
description = NULL,
duration = ‘5’,
modifiedDT = ‘2019-09-13 15:28:57’,
retired = ‘0’,
width = ‘3840’,
height = ‘2160’,
backgroundImageId = NULL,
backgroundColor = ‘#000000’,
backgroundzIndex = ‘0’,
status
= ‘3’,
publishedStatusId = ‘1’,
userId
= ‘1’,
schemaVersion
= ‘3’,
statusMessage
= NULL,
enableStat = ‘0’
WHERE layoutID = ‘43’
46510 Query INSERT INTO auditlog
(logDate, userId, entity, message, entityId, objectAfter)
VALUES (‘1568402937’, ‘1’, ‘Layout’, ‘Updated Draft’, ‘43’, ‘{"publishedStatusId":"2 > 1","status":"1 > 3"}’)
46507 Query INSERT INTO layouthistory
(campaignId, layoutId, publishedDate)
VALUES (‘9’, ‘43’, ‘2019-09-13 15:28:57’)
It does not seem like something is triggering properly when the draft is scheduled. I hope these additional details help you in researching the problem.
Thanks,
Paul