No row for Telerik.Sitefinity.Pages.Model.ControlProperty ('sf_control_properties') GenericOID@134fce60 ControlProperty id=0a4a889f-4a05-466f-ae11-5350c2298aab
Hi there,
We're working with a Sitefinity site and intermittently we're getting the exception: No row for Telerik.Sitefinity.Pages.Model.ControlProperty ('sf_control_properties') GenericOID@134fce60 ControlProperty id=0a4a889f-4a05-466f-ae11-5350c2298aab.
Any idea why this is happening?
Regards,
Jacques
Hello,
I suppose the problem is with a leftover page draft. So the draft couldn`t find its master and it returned the error.
To fix at your end (please do a quick test at a backup project).
1.Crete .aspx page in solution
2. In the Page_LoadMethod paste this.
var pageManager = PageManager.GetManager();
var draftPages = pageManager.GetDrafts<PageDraft>().Where(p => p.TemplateId ==
new
Guid(
"A93A986C-B85B-4026-BCCF-20AB9C812E07"
) && p.IsTempDraft ==
false
);
var dummy = draftPages.FirstOrDefault();
foreach
(var draftPage
in
draftPages)
var id =
new
Guid(
"1196ea8f-f80b-42eb-99c9-f54c0d7b7b0d"
);
if
(draftPage.Id != id)
pageManager.Delete(draftPage);
pageManager.SaveChanges();
new
Guid(
"A93A986C-B85B-4026-BCCF-20AB9C812E07"
)I took random template_id from page_data table
var id =
new
Guid(
"0a4a889f-4a05-466f-ae11-5350c2298aab"
); this is the guidID from the error thrown when getting the problem (in your screenshot the error is 986d....). It is the same as in your error so you can just run the code directly without changing it.