You need to sign in to do that
Don't have an account?

Knowledge Article System.QueryException: List has no rows for assignment to SObject
I'm getting the following error in a knowledge article controller that i'm working on:
Article__kav article1 = new Article__kav(); article1 = [select URLName, id, Title,Partners__c,Cisco_Account__c, Article_Text__c,(select DataCategoryGroupName, DataCategoryName From DataCategorySelections) from Article__kav where publishstatus='Online' and Language = 'en_US' limit 1]; system.debug(article1+'aaaaa+');Any ideas on how I could edit this?
list<Article__kav> article1 = new list<Article__kav>();
article1=[select URLName, id, Title,Partners__c,Cisco_Account__c, Article_Text__c,(select DataCategoryGroupName, DataCategoryName From DataCategorySelections) from Article__kav where publishstatus='Online' and Language = 'en_US' limit 1];
3
system.debug(article1+'aaaaa+');
All Answers
list<Article__kav> article1 = new list<Article__kav>();
article1=[select URLName, id, Title,Partners__c,Cisco_Account__c, Article_Text__c,(select DataCategoryGroupName, DataCategoryName From DataCategorySelections) from Article__kav where publishstatus='Online' and Language = 'en_US' limit 1];
3
system.debug(article1+'aaaaa+');
let me know if you have any questions.
thanks,
Ramesh