Item is not updating

Hello
I have using small powershell script for updating item. In this script I do not want to add version and updating a title field. Whenever I run this script, first time it updates the title field, second time it  make it title field empty. Please
let me know what I am mising. I tested in different doc lib as well, but same result.
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{Add-PSSnapin Microsoft.SharePoint.PowerShell}
$WebURL = "http://vm-avi:15000"
$listName = "Shared Documents"
$web = Get-SPWeb -identity $WebURL
$list = $web.Lists[$listName]
$items = $list.items
#loop through SharePoint list
foreach($item in $items)
if($item["Title"] -eq "Avian")
$list.enableversioning=$false
$list.Update()
$item["Title"] = "Avian1"
#Update the item
$item.Update()
$list.enableversioning=$true
$list.Update()
$web.Dispose()

To update a list item without creating a new version, call .SystemUpdate instead of .Update.  Call .SystemUpdate($false) to not create a new version.
Something like:
if($item["Title"] -eq "Avian")
$item["Title"] = "Avian1"
#Update the item
$item.SystemUpdate($false)
See:
http://msdn.microsoft.com/EN-US/library/office/ms481195(v=office.15).aspx
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner

Similar Messages

  • Items qty not updated  in VL02

    Hi,
            I've searched in forum.I've got solution.I've 26 line items and want to update all the records.It updates only 24 items remaining 2 items are not updated.Because the screen size is for 12 items.Please assist me.
    n = 1.
    LOOP AT it1 WHERE vbeln = it-vbeln.
    CONCATENATE 'LIPSD-G_LFIMG(' n ')' INTO a.
    PERFORM bdc_field USING a it1-G_LFIMG.
    n = n + 1.
    IF n gt 12 .
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=P+'.
    n = 1.
    PERFORM bdc_dynpro USING 'SAPMV50A' '0220'.
    ENDIF.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMV50A' '0220'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH'.
    Thanks
    Bala

    Hi BP,
              If i give P++,it directly goes to the last page.It was not update the middle records like13,14th items.
    Thanks
    Bala.

  • Asset Line items are not updating in table ANEP

    Hi friends,
    I found that asset line items are not getting updated in ANEP table,.
    This is my precedure for posting of depreciation.
    I'll create Asset through AS01, then i'll use the T.Code: F-90.. then i'll run the depreciation program thru t.Code: AFAB.
    In but i am unable to capture the values of Planned and Depreciated or Posted values in ANEP.. Is there is any other table for this...
    Where is the mistake in my process..
    thanks in advance..
    Naveen

    HI Naveen
    The FI-AA documents are stored in tables ANEK (document header), ANEP (document line items) and ANEA (proportional values). You can use FI-AA standard report RABEWG_ALV01 to list all transactions to an asset in one fiscal year, and report RAABGA_ALV01 to list only retirement postings.
    ANEA should be the solution you are looking for.
    Hope it helps!
    Cheers
    Z

  • Line Item Text not updated in SPL

    Hi All,
    Can anyone help me in this regard.
    When we change the Line Item Text in FI document the same has not been updated in SPL. Can anyone know the required configuration to be done in order to populate the changed items in SPL.
    Any help is highly appreciated.
    Thanks,
    Srini

    HI,
    a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
    But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
    Best regards, Christian

  • Automatic Product Selection item value not updated in S067

    Hello,
    We have a requirement for Automatic product selection based on ATP with pricing at item level. This is working fine.
    But the value of the subitem is not updated in open delivery value S067 after saving the delivery.
    The item category is marked as credit active. update group is 15.
    If i do main item pricing then the value is getting updated successfully.
    I check several notes but nothing helped.
    Pls. help.
    Regards,
    Praveen

    assigned it in sales order at item level in Billing tab
    Assign the same at header level billing tab in sale order.
    thanks
    G. Lakshmipathi

  • Desktop item info not updating

    I searched but could not find a previous issue about this:
    The item info underneath my mounted drives on my desktop does not update.
    For example my boot HD says 161.7 MB free underneath, while if I command-i, it says the correct free space as 2.7gb.
    I read in a similar issue that the .DS_store is slow to update, and I assume this maybe the problem?
    Is there a way (such as apple script) to force this to update frequently?

    Hello Sam:
    FWIW, mine are exactly the same, although I do not check frequently.
    Barry

  • Item master not updating DTW error

    Hi Expert
    well i am updating my item master, i just want to change two field, one field is "SET G/L accounts" and other one is item group, right now it is "By Item Level" for items and i want to convert this into "By Item Group" for this purpose i am using DTW but DTW throwing one error(which is related to conversion of SET G/L account),to solve that error what i did , i just change that field manually, but the number of items is too large so what i did i just run the query to update all items but still dtw is throwing same error for the item which i update by query, so what should i do now ?? i have to change all items manually ??
    please reply ASAP

    Hi,
    You should never try run query to update anything. That is too dangerous. You are risking losing SAP support!
    It sound like your db is new. In that case, better to restore to the old backup to do everything right from the beginning. Hope it is still not too late.
    Thanks,
    Gordon

  • Items are not updating properly in DP90

    Hi,
      As per my requirement , i have to add the items from sales order created by DIP profile. It is updating only one item instead of three when i ran the transaction DP90 with Sales order number and Posting date to. I have passed the required data to ET_DLIA and ET_DLIV1 tables while using the exit 'EXIT_SAPLAD15_005'.
    Can any body suggest me if i miss any required input data to above mentioned tables.
    Regards,
    SK.

    879035 wrote:
    Hi,
    I was unable to select any item (nothing is getting displayed in Ordered Item field when the LOV is clicked) in Sales Order Lines.
    The Sales Order header information i was able to enter & generate the Order Number.
    R12.1.3 is the version i am using.
    Thanks,
    Chandra.Have you done all the required setup in OM??
    Like system parameters...Imp one would be Item Validation Organization
    Make sure item is also available in the price list which you are using in order
    Mahendra

  • Why is my "recent items" list not updating properly?

    When I go under the Apple menu to "Recent Items," I find that sometimes it does not actually show the most recent documents I have been working on.  I just closed a Microsoft Word document that I've been editing and saving for the past two hours, and it doesn't appear in the list, yet a bunch of other items are documents I had open earlier today (and have since closed).  Excel spreadsheets randomly fail to appear sometimes, then appear other times.  What gives?

    The solution - turn cookies back on in Safari.
    I'm guessing here, but it seems likely that iTunes uses the same rendering engine as Safari, and perhaps it is also dependant on Safari's use or non-use of cookies.
    What I know for sure is this - once I turned cookies back on in Safari, my list of Purchased items was populated, instead of being blank. So, hope this helps others.
    (I didn't have to reload my library, or any of the other things that others have suggested.)

  • ITEM INTREST  NOT UPDATATING THE G/L ACCOUNTS?

    hi
    I HAVE BEEN TRYING TO POST THE INTREST ON ARREARS THROUGH T CODE F.24 I COULD ABLE TO VIEW THE INTREST BUT IT IS NOT BEING UPDATED IN GL ACCOUNTS AND SUNDRY DEBTORS INDIVIDUAL BALANCES. CAN SOMEBODY HELP ME?
    i did all configuration steps,
    IN OBV1                                           G/L ACCOUNT
    1000 CUSTOMER POSTING                  RECN A/C
    0001 INTREST RECIVED                        INCOME A/C
    ITS URGENT,I WILL ASSIGN POINTS TO RIGHT SOLUTION
    REGARDS
    RAMANA RAO

    Hi Ramana Rao
    I have a similar issue and would like to know what changes you made to OBV1 to allow the posting to the customer account ?
    I have the same set up of account symbols (1000 & 0001) but when I do not specify a GL Account for Acct symbol 1000 I receive an error in the interest calculation program...
    It was my understanding that the 1000 should post to the customer and not require a specific account.
    Help would be appreciated !
    Cheers
    Chris

  • CRM line item status not updated when delivery is deleted in ECC

    Hi All,
    When order is created in CRM it gets replicated to ECC.When delivery is created in ECC, the System Status in CRM  at the line item level is changed to completed and also Delivery completed status is created in CRm..
    Now when we delete the delivery, the Delivery completed status is deleted in CRM but the Completed status is not changed to In Process.It remains as Completed.This used to work fine before we applied support packs last weekend.We are currently at support pack level 10 for CRM.
    Please advice
    Thanks and Regards

    In CRM4 standard, changes to orders in R/3 or ECC do not replicate back to CRM
    Check out this SAPnote
    https://service.sap.com/sap/support/notes/710874

  • Menu item icon not updating

    Hi,
    I have an action into which I set an Icon:
    action.putValue(Action.SMALL_ICON, icon1);
    now I set this action into my menu item and show the item in a menu. The item displays correctly and the icon is visible.
    later in the program i do:
    action.putValue(Action.SMALL_ICON, icon2);
    then I open the menu but the menu item still shows icon1 until I roll over it with the cursor when it finally changes to icon2.
    Any ideas on how to make this update immediate?
    BTW at the point of changing the icon, I don't have access to the menu item or the frame etc, just the action.
    Thanks a lot,
    Jim

    Anyone got any more ideas?Maybe you have a programming problem, but we can't see your code so we don't know for sure.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Commitment item does not update during PO change

    hello All,
    when we change PO " GL account " the old commitment item remains without changes.
    your help is appreciated,
    I.Gad

    Hi,
    Please, consult note 658163 - Acct assignmnt change: Determinatn of new FM acct assignmnt
    Regards,
    Eli

  • Recent Item list not updating CS4

    Haven't found any other reports about this on the forum, but the Welcome Screen on my copy of ID CS4 6.0 isn't updating to show the most recent documents, but seems to be displaying a static list.
    The files listed under Open Recent in the file menu are correctly displayed.
    Before I submit a bug report, I'd be interested to know if this is an anomaly only on my system and if anyone has a workaround.
    CS4 Master Collection fully updated. Win XP SP3 in 2Gb RAM.

    On the application menu recent list I have a file I in the #1 position that I haven't opened since the day I installed the program. THAT's annoying.

  • BAPI_ACC_DOCUMENT_POST line item text SGTXT not updating

    Hi,
    We have copied following LSMW for opening balance upload from ECC 5  to ECC 6.
    When we upload through LSMW (BAPI_ACC_DOCUMENT_POST ) which is used for uploading opening balances of G/L accounts field Long Text (Tech Name: ITEM_TEXT) not updating.
    Form Vendor and Customer Opening balances LSMWs  Long Text (Tech Name: ITEM_TEXT) field of G/L line item is not updating. According to my observation data field  SGTXT of BSEG table. not getting updated through this LSMW. I have tried same transaction through  T Code F-02 and it is updating field SGTXT of BSEG  table. As per confirmation from business same LSMWs  are working fine in ECC 5.
    Jigar

    hi experts,
    no body faced this situation?
    Any suggestions ?
    kindly give me any inputs
    thanks & regards,
    Raghul
    Edited by: Raghul Gandhi on Aug 11, 2009 11:32 AM
    Edited by: Raghul Gandhi on Aug 11, 2009 12:56 PM

Maybe you are looking for