+ Start a Discussion
D J RobertsD J Roberts 

sfdx force:source:push failure LogoVersion can't be specified without Logo.

Trying to push an Application to a scratch org and I keep getting an error related to the logo missing. 


I have added the documents tag to the manifest and pulled in the logos from a sandbox. Then after specifying the logo image file in the metadata I get this error when trying to push... 

In field: logo - no ContentAsset named mylocation/myfilename.png found

Any help would be most appreciated... 
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Roberts,

Greetings to you!

Image is stored in ContentAsset, which you need to bring along with your deployment. Simply include this in package.xml:
<types>
    <members>myfilename</members>
    <name>ContentAsset</name>
</types>

Please refer to the below link which might help you further.

https://salesforce.stackexchange.com/questions/151384/how-to-extract-the-application-brand-logo-image-over-an-api/233176

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
D J RobertsD J Roberts
Thanks for the response Khan. I've noticed that the source org seems to be storing these files in Documents. My ContentAssets are empty (see screenshots below).

I've pulled down the document xml but not sure how to get the logos uploaded to the source org (org that the package.xml is connecting to for the "Retrieve Manifest from Source Org" command). so they are stored in ContentAsset...

Let me know if you have a solution for ContentAsset, in the mean time I"ll take to google to determine the possible solution for getting the data in ContentAsset. 

Here is the xml for the document pull: 
 
<types>
<members>fullNameOfDocumentRecord.png</members>
<members>fullNameOfDocumentRecord.png</members>
<members>fullNameOfDocumentRecord.png</members>
<members>fullNameOfDocumentRecord.png</members>
<members>fullNameOfDocumentRecord.png</members>
<name>Document</name> 
</types> 


ContentAsset = 0Document = 40

 
D J RobertsD J Roberts
Khan, thanks for your help. This article is something that I was looking for regarding the ContentAsset. 
https://help.salesforce.com/articleView?id=admin_files_asset_files_create.htm&type=5

But it still is not clear. You have to navigate to Libraries from the App Launcher....

App Launcher > Search for Files > Libraries > Asset Library > Create Asset File 

From there you can upload the file you want to upload. If someone has already pulled down the document object they can upload those files to the content asset, and then do 
 
<types>
<members>fullNameFromWorkBenchMetaData</members>
<name>ContentAsset</name>

</types>


*****OR WILD CARD IT AND GRAB EVERYTHING********

<types>
<members>*</members>
<name>ContentAsset</name>
</types>

*******This will bring in all ContentAssets you need**********


 
D J RobertsD J Roberts
Do you no what the metadata needs to look like in order to get the resource into the scratch org? 

I'm now getting invalid cross ref Id....