+ Start a Discussion
Sachin10Sachin10 

Error:Custom console component contains an invalid location.

Hi Team,
We are getting the following error while deploying
Custom console component contains an invalid location.

Any pointers/suggestions are welcome

Many Thanks :)
Best Answer chosen by Sachin10
Sachin10Sachin10
@Vinita,
Thanks for your reply.
The issue was resolved by myself.
The issue was due to difference in CAPS for the location value

All Answers

Vinita_SFDCVinita_SFDC
Hello,

This doesn't seem to be a system generated error. Can you please elaborate, what are you deploying and how are you deploying?
Sachin10Sachin10
@Vinita Thanks for the reply

you are right...We are using Jenkins to build and deploy it.
That is where we are getting this error:
F:\Build\SFDC\JJ\build.xml:265: FAILURES:Error: layouts/Asset-Asset Layout.layout(7,24):Custom console component contains an invalid location.


SnapShot of XML for the Asset Layout:

<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
    <customButtons>Update</customButtons>
    <customButtons>test</customButtons>
    <customConsoleComponents>
        <subtabComponents>
            <component>
                <height>50</height>
                <location>top</location>
                <visualforcePage>TestPage</visualforcePage>
            </component>
        </subtabComponents>
    </customConsoleComponents>
The component tag is line 7 and the end of the component is 24.

Please let me know if you require any further details regarding the same.
Many Thanks :)
Vinita_SFDCVinita_SFDC
Hello,

I would suggest you to reach out to Jenkin's support for this issue as this is not from from salesforce.
Sachin10Sachin10
@Vinita,
Thanks for your reply.
The issue was resolved by myself.
The issue was due to difference in CAPS for the location value
This was selected as the best answer
Soumya BeheraSoumya Behera
I have also faced the same problem when i have tried to do a test deploy through Jenkins . By make the letter lower (location tag)it has worked for me. Thank you so much for the post .