• Enda
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hey,

Has anyone seen the following error when trying to deploy a Knowledge Article page layout:

Cannot specify: detailHeading for Layout of a Knowledge Article Type

My page layout looks like this:
 
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
    <layoutSections>
        <customLabel>false</customLabel>
        <detailHeading>false</detailHeading>
        <editHeading>false</editHeading>
        <label>Information</label>
        <layoutColumns>
            <layoutItems>
                <field>Publish_to_Website__c</field>
            </layoutItems>
            <layoutItems>
                <field>Attach_Article_to_S3__c</field>
            </layoutItems>
            <layoutItems>
                <field>S3_Article_Link__c</field>
            </layoutItems>
            <layoutItems>
                <field>Information__c</field>
            </layoutItems>
        </layoutColumns>
        <style>OneColumn</style>
    </layoutSections>
</Layout>


I've tried removing the detailHeading tag altogether as well as changing the value between true and false but to no avail. 
I also tried with a package.xml version of 29.0, 30.0 and 31.0 and they all had the same behaviour.
Any suggestions would be hugely appreciated.


Cheers,
Enda.
  • November 19, 2014
  • Like
  • 0
Hey,

Has anyone seen the following error when trying to deploy a Knowledge Article page layout:

Cannot specify: detailHeading for Layout of a Knowledge Article Type

My page layout looks like this:
 
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
    <layoutSections>
        <customLabel>false</customLabel>
        <detailHeading>false</detailHeading>
        <editHeading>false</editHeading>
        <label>Information</label>
        <layoutColumns>
            <layoutItems>
                <field>Publish_to_Website__c</field>
            </layoutItems>
            <layoutItems>
                <field>Attach_Article_to_S3__c</field>
            </layoutItems>
            <layoutItems>
                <field>S3_Article_Link__c</field>
            </layoutItems>
            <layoutItems>
                <field>Information__c</field>
            </layoutItems>
        </layoutColumns>
        <style>OneColumn</style>
    </layoutSections>
</Layout>


I've tried removing the detailHeading tag altogether as well as changing the value between true and false but to no avail. 
I also tried with a package.xml version of 29.0, 30.0 and 31.0 and they all had the same behaviour.
Any suggestions would be hugely appreciated.


Cheers,
Enda.
  • November 19, 2014
  • Like
  • 0

Hi All,

 

I am new to Apex and salesforce api. Could some one help me to find the solutions for the below specified

 

1.) Is there any inbuild validator class to validate xml with its xsd using apex code?

 

2.) Can we write direct java classes in the force.com platform and how to call them in apex class?

 

Thank You,

Kumar.