function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hey SandboxHey Sandbox 

Id value is not valid for the Knowledge__kav standard controller

I've created a simple Visualfore page and a Apex class to process particular record of Knowledge__kavstandard object.

Visualforce Page:
<apex:page standardController="Knowledge__kav" extensions="KnowledgeController"  title="Knowledge__kav Object">

</apex:page>


Apex Class:
public with sharing class KnowledgeController {
    public String knowledgeID {get; set;}
    public KnowledgeController(ApexPages.StandardController stdController) {
        try {
            knowledgeID = ApexPages.currentPage().getParameters().get('id');
            System.debug('knowledgeID ===== '+knowledgeID);
           
            } catch(Exception e) {
            System.debug('ERROR :: ' + e.getMessage());
        }        
    }
}
For that, I'm passing simple URL parameter as ID (Knowledge__kav record ID) like /apex/KnowledgeAsPDF?id=ka02a0000004JeTAAU

But I'm getting the below error message ​on visualforce page.
Id value <Knowledge__kav record ID> is not valid for the Knowledge__kav standard controller

Page Preview:

VF Page Preview with Error message
Knowledge__kav SOQl Query:

SOQL Query with specific ID result

Please help me to solve this issue.
NagendraNagendra (Salesforce Developers) 
Hi,

The error is because of invalid ID. We can have Knowledge as a standard controller. Check the ID value from article management and try passing it in the URL. Let me know if this doesn't work still

Thanks,
Nagendra
fgwarb_1fgwarb_1
ERRORS                  
────────────────────────
Knowledge does not exist


@nagendra,

Knowledge is not valid for a standard controller

Hattie Du CaneHattie Du Cane
What on earth? Caleb thought to himself.

Lane brought out what Caleb quickly realized was a fully functional dragon body that had been designed around a sawed-off hospital bed on its four, remaining wheels. A hole had been cut in the center of the bed which was wear the costume looked like a dragon saddle which is wear Lane would step in and control the bed by pushing it in front of him. Fake Daenerys legs hung off the sides.

"I had to destroy a moderately priced sex doll for these legs...don't judge me." Lane said, and they both cracked up at that.

"That's gotta be one of the weirder sentences someone has ever said to me." And they laughed harder hardcore gay porn (https://hardcoregaytubeporn.com/en/)

"Holy fuck dude, this is one of the most impressive costumes I've ever seen." Caleb was honestly shocked that Lane had even had the time to put this together.

"I can't take all the credit—my Mom works on the Rose Parade floats and she's killer at this stuff. I told her a couple months ago I wanted a costume to end all costumes for the Halloween bash and I knew the theme and it kinda just spiraled from there."

"Okay but like, how does it work?" Caleb countered, admiring the detail in the scales and head and teeth.

"Well, I stand in this whole which basically zips up around my waist and also up the neck. The other person, that's you, lays facedown on the hospital bed with your legs controlling the tail and your head controlling the dragon head. Your hands you can use to flap the wings on the side or work smoke lever."

Caleb realized that would mean he'd be in a costume all night and he was kind of bummed about that fact, but Lane was the president, and this would almost ensure an automatic entry into the frat. Pledge life wouldn't last forever. There would be plenty of parties. The fast track felt very in sight.

"Look, I know it's a sacrifice and you have an amazing costume...I promise we will find you a sexy girl later on in the night and you can use my bedroom for whatever kinky shit you're into, okay? I need to nail this and blow everyone away in the costume contest. That trust-fund-asshole Jared is wearing a working Ripley robot suit from Alien, so it's game fucking on." He wasn't necessarily giving Caleb a frat president order, which he could very easily do if he wanted to, but Caleb wanted to get in very badly. It was only one party. Fuck it right? Maybe he'd follow through and wingman him into some very tight college pussy later that night. And it would be nice to have one of the only solo beds to do so.

"Okay Mr. President. Let's fucking crush this costume then live gay porn (https://thelivegayporn.com/)

"AWESOME! Dude, I will so OWE you for this."

It was around 10 o'clock by the time they were fully suited up in the costume in a comfortable position.

Lane had said it was going to be super hot inside the dragon material, though it had been installed with one of those professional fans used by costumed Disney characters all over the world. He suggested if Caleb was okay with it, that he should just wear his boxers. The problem was, Caleb wasn't wearing any boxers. He had purposefully gone commando underneath the gladiator skirt because he was feeling particularly daring that night. He told him he'd take the robe part off, but leave just the leather skirt. He didn't explain why.

"Suit yourself." Lane said, unphased.

Caleb felt a little weird to be this exposed in front of another guy, but he figured it was probably just his ingrained heterosexuality putting up its typical guards. He clearly wasn't using him for anything other than this costume.

Lane Thompson was a pussy dynamo, after all.

The other awkward element of the costume was the obviously embarrassing positioning that it required. The person laying down on the gurney had to wrap their legs around the standing person and then back into the singular tail of the dragon, which kept their legs somewhat closed together. Lane's own legs would represent the powerful back legs of Drogon (the dragon of choice of course), while the front legs concealed the front wheels. Caleb was responsible for the tail, wings, and head.

The pièce de résistance was a hidden button that allowed preloaded smoke cannisters in the nostrils to blow aromatic puffs of smoke into the air while two bulbs burned an orange glow. Lane's mom knew her shit, apparently. At least Caleb could have fun with that throughout the night.

Caleb did find it incredibly comfortable just being able to chill like this and Lane cracked enough jokes to make him feel relaxed in this obviously silly situation.

Right before getting in for the final time to make their triumphant entrance downstairs to the increasingly busy party, Lane had texted one of the other pledges to bring up a couple Fuckeroo's—the name of a house-made cocktail that was ostensibly a triple Long Island Ice Tea. It was basically the type of shit you weren't even allowed to order at a TGI Friday's for legal purposes. Since Caleb wouldn't be drinking again until their first combined bathroom break of the night, Lane bid him Cheers, and down the hatch it went. Caleb almost coughed it up after downing such an intense amount of alcohol all at once—but what was a 19-year-old liver for, anyway, but if not for shenanigans such as this? There would be plenty more of this during the impending hazing, he was sure of it.

They shared a strong hit off of Lane's nearby pen and then suited up for good masturbating gay videos (https://hardcoregaytubeporn.com/en/category/4294967357/Masturbating/popular/1/).

Caleb lay down on his chest, shirtless, on the comfy hospital bed and wiggled his body into the unzipped upper portions of the dragon. He wrapped his legs around either side of Lane's waist and was surprised when Lane actually grabbed for a hidden belt which went over Caleb's lower back to keep him firmly in place. This helped strap them together so that walking would be easier. Lane grabbed Caleb's sides to pull him back so that he was firmly attached to him, as the dragon tail required Caleb's legs to be almost fully hanging off of the back of the bed for it to fully work.
Kishorekumar DasariKishorekumar Dasari
Visualforce Page:
<apex:page Controller="KnowledgeController" title="Knowledge__kav Object">
</apex:page>

Trying this VF page with custom controller, it worked for me.
Chandramohan Yetukuri 1Chandramohan Yetukuri 1
Hi @Kishaorekumar Dasari,
How did you get the current record id from the custom controller.