I am deploying with sfdx a custom app that has a reference to a Content Asset (Logo) - even though the Logo is in the same package I keep getting the following error: The image asset used for Logo isn't shared with the organization.

I've tried to separately load the logo into the org (Successfully) and then load the custom app - and I still get the same issue (even though the logo is referring to a correct Asset)

Here is the Custom App meta-data section:

<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">

And here is the Asset in the target org enter image description here

Has anyone seen this error before? I can't seem to find any reference for it (or how to get around it).


I managed to resolve this error by adding an relationships element the ContentAsset Metadata:


    @@ -3,6 +3,11 @@
+    <relationships>
+        <organization>
+            <access>VIEWER</access>
+        </organization>
+    </relationships>

full file:

    <?xml version="1.0" encoding="UTF-8"?>
    <ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
| improve this answer | |
  • Thanks - I came to the same conclusion and this definitely worked. Although why the asset didn't have viewer access rights for the entire org to begin with is another matter! – Tammer Salem Dec 19 '19 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.