Retain Items and item history on feature re-deployment

Using SharePoint feature/solution I have created a list instance with 4 fields and is currently in production.
I got a request to add another 3 fields to existing list instance so making it 7 fields now.
While deploying the updated package the data and its version history is vanished too.
Is there any other way to retain data/version history and also add 3 new columns to the list schema?
One way is to do it with Powershell but just wondering if there is anything provided by SharePoint deployment of features?

Hi,
Solution re-deployment will extract the old list instance, create a new list instance, therefore, the data with version history will lose.
A workaround is that you can export the existing list items with version history to somewhere, re-deployment, then import these items back.
Two links about accessing list items using PowerShell for your reference:
http://blogs.msdn.com/b/rcormier/archive/2012/11/16/how-to-copy-sharepoint-documents-between-site-collections-using-powershell.aspx
http://get-spscripts.com/2011/10/copy-sharepoint-lists-and-document.html
What I would recommend is that, if you just want to update a list instance(not list definition), add fields using PowerShell would be an easier and cleaner way. In
this way, it could be finished with just a few lines of script without extract and deploy the solution in your environment, what’s more, there is no need to worry about the data loss in the process.
About how to add fields using PowerShell:
http://adicodes.com/add-fields-to-list-with-powershell-in-sharepoint-2010/
Thanks
Patrick Liang
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]
Patrick Liang
TechNet Community Support

Similar Messages

  • How to export catalog retaining flags and edit history

    I need frequently to export photos with edits from my laptop and import those into my main computer catalog (Mac OS with LR5).  I thought the Export catalog command permitted this but on my last import from such an exported catalog I find no flags or edit history has been retained (although star ratings and the final edit state are retained).  I thought that was the point of the export catalog function (otherwise, I could simply copy the folders with the .xmp files and import those). Am I missing some setting?  Thanks.

    When you Export a number of images to CD/DVD Lightroom will automatically let you now how many discs are needed.
    Your particular case seems to be, how to get the catalog on the discs aswell.
    Try this.
    Export all files to DVD via the usual export dialog. Now that you have a number of discs create a new catalog.
    Catalog the discs and then burn that catlog to cd.
    The result is a master cd with catalog and previews (very quick for one to flip through) and a selection of DVDs to which the catalog refers.

  • Service line item History for Contracts with item cat - D and Acc Assg P

    Hello Gurus,
    We have a situation where we create contract with item category D (Service) and account assignment category P (Projects). And for the line items of the PO we have difference services (without a service master) and each service line item has the price and quantity and other required fields. Now it is required to change the price or the quantity or both for this service line time and again (business requirement).
    The task is to to track the price changes and the quantity changes that have happened to the serive line item from the original and we require the report to diplay the original price and the present price on the service line.
    The question is: Is there a standard report in SAP to handle this? Or which are the tables where a service line items history is stored so that it can lead to a development.
    Regards - SS

    Hi Pankaj,
    We are using a Percentage based case (Prorata case)
    For Eg : For Eg for 65% (65KAI )material Price 1000 Rs
    If the Purity percentage varies payment will be done as per the same. For eg : for 70% (70KAI ) Price 1200 Rs. (approx)
    In this case unit of measurement is KAI (kilo active ingredient) .
    Actually we are dealing with dealer price where duties are entered Inclusive of the total price and entered at the time of making GR. and the payment is made as per the same;
    we have one po for 5000 MT. where we received material at first time Qty being 1993 MT.The duties manuallyentered are as follows :BED :24,167.00
    AED : 7,076.00
    ECS : 483.00
    SECES : 242.00
    These duties are flowing correctly in MIRO
    and the MIRO has been Posted and payment is also made.
    But while the balance quantity 2982 kg we received next time and those duties are as flowing as follws:
    BED : 36160
    AED : 10587
    ECS : 723
    SECS : 362
    But here at the MIRO the following duties are flowing instead of above
    BED : 36,526.08
    AED : 10,694.18
    ECS : 730.32
    SECS : 365.66
    What might be the error at this stage.
    waiting for solution at the earliest .
    Regards,
    Girish.C.M.
    09377077122

  • Retain item in Inbox and confirm end of processing

    HI All,
    I am trying to implement retaining item in inbox if user selects to cancel. I was told confirm end of processing is best otpion, when I try to change the task using pftc it still shows the confirm end of processing and background processing as greyed out.
    First question will be if it is foreground processing and honest answer is I dont know, however I assume that since we open invoices and access it from inbox, it is foreground processing item.
    Can you please advise ?
    thanks,
    RS

    Hi Reena,
    to find out if it's a foreground(Dialog) task or not, go to the task (PFTC) and see below the Method. If it says "Object method with Dialog", then its a foreground or dialog task. that means, a user intervention is required to execute this method. Another way, is go the method & BO in SWO1 and dblclick on the method. IF the Dialog check box is checked, then its a dialog task.
    And, in the invoices, if you  are using FIPP or BUS2081.CHANGE method, then,its a dialog task.
    Hope this helps
    venu

  • Conditionally select items in a feature (for a SP2010 and 2013 compatible solution)

    Hello,
    in the Task of migrating our  Solutions to SharePoint 2013, i´m just curious if i can conditionally put items in a Feature.
    What i already did in the solution: Defined configurations for debug/release for SP2010/SP2013 and modified the Project files in the solution directly (different target Frameworks and different references to SharePoint dll´s).
    My first solution i started with only contains some helper code to set taxomony Connections for fields and the rest is just column and Content type definitions. It compiles well with VS 2012 on SP2010 and SP2013 and the created WSP´s could be installed on
    the System. However i can´t activate the Feature on SP 2013, because one of the column names in our solution already exists in SP 2013. So I decided to add a new elements.xml with a redefined column name.
    So I have LzColumns\Elements.xml and LzColumns2013\Elements.xml.
    Depending on the configuration, I want to include only one of the element.xml´s in the feature. I tried to edit the project file and added a Configuration attribute to some of the Items there but with no success.
    Which possibilities do I have? Separate Features (with equal ID) ? Split into two projects (but this copies code).
    Greetings, Jörg

    I would do a bit different way. Instead of using CAML (or xml) based columns definition, I would do it programmatically. I would create a 'class library' project (you can call it MyCompany.SPLibrary, for exmaple) where I would reference SharePoint 2010 DLLs
    and add class/methods to create columns, content type etc programmatically.
    Then I would create two solutions one for SharePoint 2010 WSP and another for SharePoint 2013 WSP and refer the library project MyCompany.SPLibrary to both projects. FYI, due to 'assembly redirection' SharePoint 2010-based MyCompany.SPLibray will still work
    in SharePoint 2013.
    Till now all will be ok for SharePoint 2010 development.
    Now for 2013 developers (so SharePoint 2013 dev environment), SharePoint 2010 based library project will not compile as 'sharepoint 2010 dlls' doesn't exist. To fix this issue, in the SharePoint 2010 project, instead of referring the SharePoint DLLs from
    GAC, copy the DLLs first into local directory and then refer the DLLs from local directory.  So when the same 2010-based library project will be opened from SharePoint 2013 development environment, SharePoint-2010 dlls will be available in local folder
    and the project will compile ok.
    We used similar approach for one of the SharePoint product we developed which needed to support multiple version of SharePoint Version. The reality is you can't make it 100% automatic, you still need to duplicate some code/xmls.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Urgent what is the programs to delete work item history and work item

    hi gurus this is very urgent ,
    what is the programs to delete work item history and work item ?

    Hi Deppak.
    There is a program ,to delete an workitem and history
    RSWWHIDE---Program to delete the history.
    RSWWWIDE--- Program to delete an workitem.

  • Error when Displaying Item History CCM 2.0

    When I upload an updated Supplier Catalogue where I changed the Delivery Time and then I look the item History in the Master Catalogue I cannot see the Delivery Time old value but when I look in the Procurement Catalog it is displayed.
    Does anybody knows what can I do to show the Old Value in the Master Catalogue?
    THANKS IN ADVANCED!
    Message was edited by: Patricia Mussons

    Thanks once again Chris,
    We though that the changes were always displayed
    in the History option, idependently you publish the catalogue or not.
    We though that we had a problem because we could see the Old Value in the Procurement Catalgue (the one that we published) but not in the Master Catalogue (we don't published it).
    But now it's clear that we don't have a problem, as the Old Value is just displayed when the Catalogue is published.
    THANKS!!!!

  • Md63- How to clear the Item history

    Hi Folks,
    In MD63 I have got the item history which dates back to 10 years and user wants to get rid off this long history.
    Could any body susggest how to clear this history.
    Thanks,
    Sunil

    Use MD76 tcode to delete the history. enter the key date and plant material or just key date and plant and req type etc.

  • Item History Query

    Hello,
    Would appreciate if anyone could help me along with a query to get total Item History numbers Invoiced by past months. Something like:
    Item,Month1,Month2,Month3,Month4,Total
    ABC,100,200,100,200,600
    Thank you in advance....
    Ben

    Ben,
    You may remove the where clause if you running this query for whole set of items.
    You may want to add the year in the where clause for each and every month to avoid getting sum total from mutiple years as shown in the last SELECT statement for TOTAL
    <b>SELECT T0.ITEMCODE,
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 1 AND ITEMCODE = T0.ITEMCODE) AS 'JAN',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 2 AND ITEMCODE = T0.ITEMCODE) AS 'FEB',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 3 AND ITEMCODE = T0.ITEMCODE) AS 'MAR',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 4 AND ITEMCODE = T0.ITEMCODE) AS 'APR',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 5 AND ITEMCODE = T0.ITEMCODE) AS 'MAY',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 6 AND ITEMCODE = T0.ITEMCODE) AS 'JUN',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 7 AND ITEMCODE = T0.ITEMCODE) AS 'JUL',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 8 AND ITEMCODE = T0.ITEMCODE) AS 'AUG',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 9 AND ITEMCODE = T0.ITEMCODE) AS 'SEP',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 10 AND ITEMCODE = T0.ITEMCODE) AS 'OCT',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 11 AND ITEMCODE = T0.ITEMCODE) AS 'NOV',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE MONTH(DOCDATE) = 12 AND ITEMCODE = T0.ITEMCODE) AS 'DEC',
    (SELECT SUM(QUANTITY) FROM INV1 WHERE <u><b>YEAR(DOCDATE) = YEAR(GETDATE()) </u></b>AND ITEMCODE = T0.ITEMCODE) AS 'TOTAL'
    FROM INV1 T0
    <i>WHERE T0.ITEMCODE = 'xyz'</i>
    GROUP BY T0.ITEMCODE</b>
    Best Wishes
    Suda

  • Deleting Forms and Search History is Dictating my freedom

    Is this a trick? I used to be able to freely delete my forms and search history. Now the checkbox on the delete everything dialog box is disabled, and unchecked! When I ask to delete everything, I mean everything, please. I should be able to make the decision myself, not have it made for me by Google, the government, or some script kiddie. Please give our freedom back, and make the delete forms and search history accessible.
    Furthermore, please, please, delete everything and shred it, if that is what the user wants (Unlike Microsoft with Pending Deletes, and Google with its Autocratic Internet takeover policies. And what is with all the google and chrome junk in the about:config anyway?)
    I used to love Firefox because it seemed like a Freedom Fighter, but now I have deleted it from all Windows systems and all but one Linux system, because it seems like it is selling out. On the sales pitch page, Firefox purports to be working for greater Internet freedom, but the closer you look, it seems two-faced.
    I will watch the status of Firefox on that one system, and if it improves, I might allow it back on the other systems. Otherwise, I might just fork it like IceWeasel or even find something else, eventually.

    No it's not a trick. You should be able to check-mark Form and Search History in Clear Recent History. Any chance that "Remember search and form" history is not selected in the Privacy tab of Options?
    I have also seen reports from some users that their security suite on Windows PC "took over" many of the Clear Recent History items and locked out users from changing the status of any item in Clear Recent History, but I can't see something occurring with Linux versions of Firefox.

  • The "Resume"/"Restore Windows When Quitting and Re-opening Apps" feature issues

    The "Resume"/"Restore Windows When Quitting and Re-opening Apps" features have issues with restoring windows of various applications (Safari, Preview etc.) to the corresponding Desktops on which they were before system reboot/shutdown or app restart. E.g. Preview windows appear on random Desktops after the system reboot and on the sane (N1) Desktop after Preview restart. How to fix this?

    Create a new User go to System Preferences > Users & Groups > "+" (make it an admin acct) and test the feature in this new account, if it works the problem is isolated to your User and not systemwide. If it's in your user only, it's probably a Login Item or pref file.
    If it's systemwide, since this feature may not have been tested on multiple Desktops
    file feedback here.

  • When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this?

    When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this? I believe the problem started with the last Firefox update.

    Do you mean the "Form autocomplete" feature?
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete

  • PC to phone data Sync and FF history questions

    Hi there,
    I’m a old firefox user and have been using FF on my PC since long, but recently I’ve started using it in my Android (Note 3) I have few question regarding this:
    1) The reason I’m using FF in my Note 3, I’ve lots of bookmark in my PC I want them all in my phone as well. So I use basic sync feature to get them all. I’ve also few saved password which I want in my phone also. But I see FF stores all sync data in there server and I can clear them too after login. But I question is this safe to store data in FF server? Does it provides a secure encrypted method?
    2) When sync my PC FF data I sync history too, and I’ve long history in my PC, but when it sync to phone, the phone only shows very small history. Only upto last week, is that the Android FF version feature that it will show history for a week only? Or anything else?

    Hi guigs2,
    Thanks a lot for your feedback, yes I’ve many questions.
    1# “If you swipe down from the top of the navigation and tap on the sync icon you will see all the tabs and synced list.” Do you mean under setting? Under setting I see there have sync option to choose like bookmark, tabs, pass etc.
    1# I was using FF28 on my PC and its old sync feature and it was working flawlessly and properly sync all. But after the 29update I found FF released a new sync method and I moved to that. But what I found it really not sync properly. I’ve over 5k bookmark in my PC and when sync with my phone (Note3) it didn’t sync all. I ran the sync multiple time and leave it long to do its purpose but it didn’t. I also tried adding, deleting some from my PC and then sync again, but nothing helps. Also 29 Sync doesn’t sync passwords with master password. Then for all (except Note 3) I went back to FF 28 and started using old sync method. Also the old sync account shows how many data uploaded and a option for user to clear them, which I use frequently for safety purpose but that’s missing in the new sync. Also the
    2# is there any way to import bookmark manually on android? Because when I do sync all desktop bookmarks shows under ‘desktop’ directory. But it would be helpful if all are stored in root bookmark place.
    3# another PC FF related question is: is there any way for the bookmark sidebar shortcut icon in FF 29. I see its missing in 29 and the new icon only shows a dropdown menu. But as I’ve long list of bookmarks, so sidebar is best for me. I know the keyboard shortcut (ctrl+B) but I’m habituated with the icon.
    Thanks in advance!

  • When i log onto safari the screen is grayed out and i no touch features are functioning

    when i log onto safari the screen is grayed out and i no touch features are functioning

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I deleted a contact out of my iPhone 4S but when I go to send a message the contact appears although that individual is no longer in my address book. I deleted all text and call history pertaining to the deleted contact but still shows up.

    I deleted a contact out of my iPhone 4S but when I go to send a message the contact appears although that individual is no longer in my address book. I deleted all text and call history pertaining to the deleted contact but still shows up. Does anyone have the same issue and how do I fix it?

    dam122577 wrote:
    but wont restoring as new delete all my info on my phone
    Yes. That is why I added...
    it will disappear over time due to non-use.

Maybe you are looking for