CSS file in document library not updating

I have a sharepoint 2010 team site. There i created a document library named Style Library to store CSS files.
I uploaded a file name site.css in the document library. This worked fine.
Later on i updated my css file and uploaded to the same library but new style did not impacted.
I tried to library version settings and site publishing feature but nothing helped. 
The workaround i found is to change the file name and uploaded which worked fine.
Another thing i noticed is: When i downloaded thee css file from library using "download a copy" link it had my new styles but when i clicked the file name and downloaded it did not have my new changes.
Could someone suggest something, i don't want to change file name again and again. 

Hi Mohit,
This is due to cache problem. Please go through following post where it was explained nicely and a solution was suggested for this problem using Query Strings:
http://www.sharepointnutsandbolts.com/2011/11/avoiding-bugs-from-cached-javascript.html
Please don't forget to 'mark answer/propose answer' or 'vote as helpful' as appropriate.

Similar Messages

  • How to update managed metadata column for all file in document library using powershell

    Hi,
    How to update managed metadata column for all file in document library using powershell?
    Any help on it.
    Thanks & REgards
    Poomani Sankaran

    Hi TanPart,
    I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation  Document Library.But i am getting below error in powershell.
    Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
    Could you tell me which is the issues in it?
    See the code below.
    $web = Get-SPWeb http://ntmoss2010:9090/Site
    $list = $web.Lists["DocLib"]
    $query = New-Object Microsoft.SharePoint.SPQuery
    $query.ViewAttributes = "Scope='Recursive'";
    $query.RowLimit = 2000
    $caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
            '<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
    $query.Query = $caml
    do
        $listItems = $list.GetItems($query)
        $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
        foreach($item in $listItems)
            #Cast to SPListItem to avoid ambiguous overload error
            $spItem = [Microsoft.SharePoint.SPListItem]$item;
            Write-Host $spItem.Title       
    while ($spQuery.ListItemCollectionPosition -ne $null)
    Thanks & Regards
    Poomani Sankaran

  • Unable to add aspx file to document library using REST and JSOM in SharePoint Hosted App

    Hi,
    I am unable to add an aspx file to document library.  I was actually trying to create a WIKI page and upload to Pages library but that wasn't working so I tried simple document library.  It keeps failing with Access Denied error.  I have checked
    the blocked types and aspx is not included.  I can upload it directly from the browser so that shouldn't be the case.  I have read that it can be achieved with CSOM but I need this to work with a SharePoint Hosted App.  Here is my JSOM:
    factory = new SP.ProxyWebRequestExecutorFactory(appweburl);
        context.set_webRequestExecutorFactory(factory);
        appContextSite = new SP.AppContextSite(context, hostweburl);
        oWeb = appContextSite.get_web();
        oList = oWeb.get_lists().getByTitle('Documents');
        fileCreateInfo = new SP.FileCreationInformation();
        fileCreateInfo.set_url("mywiki.aspx");
        fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
        fileContent = "<%@ Page Inherits=\"Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c\" %> <%@ Reference VirtualPath=\"~TemplatePageUrl\"
    %> <%@ Reference VirtualPath=\"~masterurl/custom.master\" %>";
        for (var i = 0; i < fileContent.length; i++) {
            fileCreateInfo.get_content().append(fileContent.charCodeAt(i));
        newFile = oList.get_rootFolder().get_files().add(fileCreateInfo);
        context.load(newFile);
        context.executeQueryAsync(function () {
            alert('yo');
        }, function (sender, args) {
            alert(args.get_message() + '\n' + args.get_stackTrace());
    If I change the file extension to "txt", it works.  Same with REST implementation, it works with "txt" but fails with "aspx".  Maybe what I am trying to do will not work using JSOM or REST.  Any suggestions?  Your
    help is always appreciated.
    Regards,
    kashif

    Your code works fine in both my on-premises and SharePoint Online. I have given the app full control, so I suspect this is a permissions issue. I would check your permissions on your appmanifest. Must be something to do with publishing permissions. Try
    giving full control and work the permissions down.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How external users can upload files in document library hosted in onpremise SharePoint?

    Hi all,
    We have setup a document library(DL) in SharePoint site hosed on-premise with no direct access from public zone/internet being an intranet solution. We have some external users who need to upload some files that needs to go in this document
    library. These files are quite confidential in nature so security is a prime requirement. Following are the couple of options I have in mind:
    1. External users upload their file in their designated folder to secure FTP using their own credential set. And also there is a background process (kind of directory watcher) that keep looking at the all the folders
    and moves the files to document library
    2. We host a single page application which has One time password (OTP) kind of feature. External user comes to the secure site to specify Vendor team name and mobile number. OTP is generated and user is asked to specify the password along with file
    they would like to upload. This page also maps the vendor name with respective folder in DL and moves the files to SharePoint there on the fly.
    Pls. share your opinion about these approaches. Also welcome your thoughts if there is any other better option.
    Thanks.

    Hi,
    I agree with the Margriet, the first option is simple and safe, the users could not access the document library directly.
    For security, it is an importance for users not access the document library directly, it will reduce the risk of the documents in the library.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Unable to proceed in change document are not updating in CDHD, CDPOS tables

    Hi all,
    This is a question related to Change document.
    I created one custom Change document object ‘ZBUDGETS’.
    As I am trying to place a trigger on FMIT (Total Funds Management) table I created a Change document object ‘ZBUDGETS’.
    I included some of the authorized fields from FMIT table on which we placed the trigger.
    And of course all those fields are change document enabled in the data element level. I generation of the update program was completed. And I got the function module zbudgets_write_document along with some include programs and structure.
    Everything is fine, But i am unable to get this change document generated information to these tables are CDHDR and CDPOS.
    the problem is when I make any expenditure like PO Posting, it will be logging in the FMIT table and the respective fields also updating. With this the Change document object should trigger and it should send the record in CDHDR and CDPOS tables. This is not happening. If the records are getting updated in the CDHDR and CDPOS tables I can use those include programs and function modules in my program to retrieve the changes in FMIT table.
    Since I am unable to proceed further since the documents are not updating in CDHDR and CDPOS tables.
    Prabhakar

    CDHDR and CDPOS will not be populated with entries only by creating the change document object.Change documents will be written to CDHDR and CDPOS tables only if the function zbudgets_write_document is called in the transaction which updates FMIT.
    You need to find an use exit in the transaction updating FMIT and call the function zbudgets_write_document in that exit.
    Refer the below link http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa01b6493111d182b70000e829fbfe/content.htm
    -Kiran
    *Please reward useful answers

  • Drag and drop the file from document library to desktop in sharepoint 2013

    can we drag and drp the file from document library to desktop in sharepoint 2013
    Blitz

    We are using third party tool called PageLight for
    SharePoint Outlook Integration which provides drag and drop functionality of emails from Outlook to SharePoint.  Other features includes
    Save Outlook emails to SharePoint and also moving files/folders from file share.
    Thanks
    Alfred

  • Download files from document library in zip file using javascript

    Hi,
    I am developing SharePoint Hosted App which needs to download all the files in the document libraries of SharePoint site in a zip folder where in that zip file each document library should be a folder, in that folder the files of that document library will
    be shown. Currently I am display all the document library in a table with check boxes as shown in the below figure. Now when user selects the check boxes and click on download button, the selected document libraries along with the files should be downloaded
    in a zip folder. This should be achieved through javascript. Can anyone share me the code to solve this problem.
    Thanks & Regards,
    Kishore
    Kishore

    You can use
    zip.js, but the best way - implement your solution on the server-side.
    [custom.development]

  • File to Rfc scenario,not updated in rfc

    Hi,
    File to RFC scenario,not updated in RFC?
    i checked communication channels ,smq1,smq2,sm58,cache refresh.but issue was not solved.
    Please advise where need to check?
    Thanks
    Amita

    Hi Amita,
    First check whether the configuration between PI and ECC has been set up properly.
    Are you using a stand RFC or custom RFC?
    Import the RFC metadata from ECC to PI and use that structure in your service interface and configure the remaining objects that we normally do.
    Now, try to process the file and check in the communication channel, whether file Adapter is able to pick up and send the message to PI system.
    If the message is successfully processed through PI system then check the messages in Queues. Also, check the RFC communication channel in the adapter engine.
    Follow the process, you might get some clue regarding the issue.

  • Measuring point/document is not updating

    Dear all,
    I am  new in PM. I have one issue over here.Measuring point/document is not updating automatically after production order confirmation via co11n . I tried with following steps
    1) Created the equipment as (P)Production resources/tools -->created measuring point as a counter ---> maintain the usage value formula SAPF02 in the PRT tab . Unit of measurement for the characteristics and base unit of measure of material are same
    2) Then i have assigned this equipment as a PRT in the routing of material .
    3) Production order confirmation via co11n  Each unit
    Which steps i am missing. if u give me steps by steps procedure to me for counter based maintenance, its helpful for me.
    STILL not answered and no reply.
    I am waiting for reply.
    Thanks
    tarun
    Edited by: tarun on Oct 5, 2010 5:06 PM

    Hello,
    Have look this thread [Re: Auto Update of measuring point/document;
    Regards,
    Rakesh

  • Is it possible Encrypt files in document library after uploading OOB

    Is it possible Encrypt files in document library after uploading using  OOB?
    if so please share how the above can be achieved.
    V Jean

    hi
    there is no easy OTB mechanism for that. The most closer OTB functionality is Rights Management Services (see
    e.g. Plan Information Rights Management), which seems like can be used for configuring policy for data encryption, like mentioned in the following forum thread:
    How to Encrypt SharePoint data. Also you may use the following methods to make file upload safer:
    1. use https instead of http
    2. use Sharepoint rights system in order to restrict access to the uploaded documents to only allowed persons (e.g. you may use unique permissions on the doclib level or on file level)
    3. if encryption is crucial and you don't want to enable it to all doclibs via RMS, you may use custom solution via event receivers: during file upload it may encypt it by using some standard encryption algorithm (see
    Which built-in .NET cryptography algorithm is the most secure).
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • SC Item in Transfer process active - follow on document status not updated

    Hi Gurus,
        Follow on document is not updated in SRM after PO creation. Ours is classic scenario (SRM 5.5, ECC6.0) and passed thru the following steps - SC (FFT) created, document approved, sent to SoCo, purchaser assigned vendor and created PO, PO created in ECC.
    In SRM SoCo screen displays message 'PO created 45xxxxxxxxxx'  successfully. Checked the BE PO 45xxxxxxx that was created successfully.
    Ran BBP_GET_STATUS_2 and CLEAN_REQREQ_UP jobs. jobs finished successfully. But status is not updated in SRM. RZ20/SLG1 does not have any errors.
    BBP_PD shows following statuses:
         I105   Awaiting Approval         X
         I1021 Created
         I1038  Complete
         I1106  SC ordered
         I1129  Approved
         I1111 Item in Transfer process 
                        The last status I1111 is still active.
    Any advise are welcome. Not sure if I am missing any OSS Notes.
    Regards
    Viktor Paul

    Hi,
    1. Check in table BBP_DOCUMENT_TAB if the entry exists use CLEAN_REQREQ_UP program.
    2. If entry in the table not exists then check in transaction BBP_PD if the follow on document ( PO ) Number reserved for
    the SC .. then use FM  BBP_PD_SC_RESUBMIT.
    3. none of these use normal process  execute BBP_REQREQ_TRANSFER And then use CLEAN_REQREQ_UP
    Thanks,
    prasad.s

  • Revenue recongnized documents are not updated with trading partners

    Hi SAP  Gurus
    Revenue recongnized documents are not updated with trading partners
    Can any body help on this as it is priority issue
    Regards,
    suchithra

    You might try looking/posting here.
    Microsoft Support – Office for Mac
    Microsoft Support – Office for Mac (2)

  • Document year not updated at the time of part I Posting

    Dear Guys.,
                        At the time of part I posting  the document yaer not updated properly. this is not upodated in some times or some cases only . but it is updating correctly other times...
    but i dont know the reason why this document year was not updated.
    the field name and table tane is J_1iexchdr- DOCYR.
    Excise Transaction type is GRPO.
    because of this problem we can not able to do the invoice verification..
    REgards
    P.Anandhakumar.
    Edited by: Anandhakumar Palanisamy on Sep 3, 2009 8:47 AM

    Timing
    I am not sure what is going on behind the scenes with this web site in the past few days. One day I could not post in your thread at all. Another day
    I was receiving Inbox email notifications that were never posted in the Adobe Premiere Elements Forum or were posted several hours after I saw them
    in my Inbox email notifications. I was waiting for the problem to disappear on its own. If not, we can post in the Adobe Comments Forum to find out what
    might be going on.
    https://forums.adobe.com/community/general/forum_comments
    Yours has not been the only thread where I have had these problems.
    ATR

  • Checked out Files in Document Library Will Not Check in

    We recently moves our SharePoint Installation to a new domain, and now any documents that were checked out at the time cannot be checked in or deleted.
    When anyone(the original person that hecked out the file, or an administrator) tries to check the file in or discard checkout it says the file is already checked in. 
    If anyone tries to delete or modify the file it says that it is checked out or locked for editing.
    We changed both domain and authentication types, so technically, none of the old users even exist anymore.
    Thanks

    As a test, can you try logging into one of the libraries with these files as an admin and seeing if you can take ownership of it via the document library settings.  From here try checking it in again and advising what happens.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Unable to open html file in document library without saving first

    I've uploaded a bunch of HTML files from a DVD to a document library on our Sharepoint 2013 Enterprise server. When I try to open one of the html files it wants to save the file instead of opening it. If I choose to open the document library in Explorer
    I'm able to open the html files w/o issue.
    What's causing this? I know there is an option to set the file handing to permissive, but I'd rather not do that.

    Carl,
    See this link - http://sharepoint.stackexchange.com/questions/39020/how-do-i-prevent-sharepoint-from-asking-to-download-html-files-to-my-local-machi
    The allowed mime types are defined in theSPWebApplication.AllowedInlineDownloadedMimeTypes
    Property
    Here is small PowerShell utility function I use:
    function Add-SPAllowedInlineDownloadedMimeType{
    [CmdLetBinding()]
    param(
    [Parameter(Mandatory=$true, Position=0, ValueFromPipeLine=$true)]
    [Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind]$WebApplication,
    [Parameter(Mandatory=$true, Position=1)]
    [string]$MimeType
    process{
    $actualWebApp = $WebApplication.Read()
    if ($actualWebApp.AllowedInlineDownloadedMimeTypes -notcontains $mimetype)
    Write-Host "Adding MIME Type..."
    $actualWebApp.AllowedInlineDownloadedMimeTypes.Add($mimetype)
    $actualWebApp.Update()
    Write-Host "Done."
    } Else {
    Write-Host -ForegroundColor Green "MIME type is already added."
    And it can be used like this:
    Add-SPAllowedInlineDownloadedMimeType -WebApplication http://mywebapp -MimeType "text/html"
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Maybe you are looking for

  • Finding the url for Portal Admin console

    Hi all, I got a portal .ear file from my team member to deploy on an env with Weblogic portal 10.3.2. The Application is deployed fine and is in Active state. Now I need to find the exact url for the portal Admin console. I am not able to find which

  • Weblogic.Deployer troubles (bea92)

    in short, doesnt work java -cp .;weblogic.jar weblogic.Deployer -adminurl t3://10.131.20.41:7001 -user weblogic -password weblogic -deploy c:\app.ear weblogic.Deployer invoked with options: -adminurl t3://10.131.20.41:7001 -user weblogic -deploy c:\a

  • Temp tablespace - why so big?

    Temp tablespace (size 6gb) is twice the size of my data and index tablespace combined. I am running into space issues and am wondering is it possible to resize this tablespace and/or take some other action to prevent the temp tablespace getting so re

  • Bad Packets ModBusTCP

    I'm having an issue with packets being gargled in modbus TCP. Here is a screenshot of the packet in wireshark And here is the packet in labview. The two are very different. Also on the packet, he header is allocated 7 bytes of space (2 for Transactio

  • Does anyone know how to connect to wireless internet using a Hitron CVE-30360 cable modem. My Macbook doesn't even see the network?

    I just received my cable modem from Hitron and I am unable to connect to it. My phone and other computers and see it as a wireless network but my Macbook doesn't even show it a network that I can connect to. It is totally invisible to my Macbook. Can