2

On our SB, I modified a static resource zip file and tried to upload it back with the changes tenter image description hereo find that the whole site is broken. None of the vf pages are able to recognise this resource named 'EngageAssets'. Then I put back my original zip file which dint help either. As a last resort, I deployed the zip file from a connected org and that did not work. When I look at the references to this static resource, I find nothing whereas, in the connected org(from where I deployed), I find many references. I read some articles about problems with zipping files from Mac (am using Mac)and I downloaded winzip for mac and zipped and uploaded but that dint help me either. What puzzles me is that the deployment of this static resource from a connected org did not work.

I raised SF case but I would appreciate if someone can help me with this urgently.

  • From a mac, simply highlight the files/folders you want to archive and then right click, select Compress "xyz". Never had a problem doing that. – Eric Mar 22 '17 at 2:08
  • I tried that Eric. I also tried zipping it up using rar and winzip for mac as someone had suggested it, but no luck, cannot believe that uploading simple static resource can be an issue :( – Shalini SF Mar 22 '17 at 2:36
  • Is the reference URL hardcoded for static resources? – Raul Mar 22 '17 at 2:42
  • Line of code referencing your SR and an image of the Static resource setup. Also check dev console for errors – Eric Mar 22 '17 at 2:43
  • 1
    I would suggest downloading the file from Salesforce and unzipping it into a folder so that you can see the structure. You very likely managed to create another top-level folder when creating the new zip file and the path to your resource would as a result look like /somefolder/assets/images/fancybox_loading.gif – Mark Pond Mar 22 '17 at 3:32
2

I would suggest downloading the file from Salesforce and unzipping it into a folder so that you can see the structure.

You very likely managed to create another top-level folder when creating the new zip file and the path to your resource would as a result look like /somefolder/assets/images/fancybox_loading.gif

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.