Update External data Column in share point2010 list

Hi all,
i have list and i am using External data column (From BCS).
I am trying to update the external data field value. its updating and showing in view correctly but when i try to edit its showing old value only.
Ex: I have a external data with field values ( test1,test2,test3,... so on)
in the list i have a value test1, i am trying to update with test2..its updating in display and view but when i am trying edit its showing default still test1..

Hi,
The following articles for your reference:
SharePoint 2010 BCS Field - Setting the field/column
http://thealbuquerqueleftturn.blogspot.de/2011/12/sharepoint-2010-bcs-field-setting.html?m=1
Programmatically Setting BCS Fields in SharePoint Custom Lists Client-Side through Web Services / SOAP
http://blog.avanade.com/asg-collaboration-services/other/programmatically-setting-bcs-fields-sharepoint-custom-lists-client-side-web-services-soap/
SharePoint 2013 – Update an External Data field using PowerShell
http://veenstra.xyz/2014/06/03/sharepoint-2013-update-an-external-data-field-using-powershell/
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • External data column as shared column in document library with document sets

    Hello,
    I'm using a document library with document sets. Within this document library i have a External data column called "Project"
    This column has it's columns:
    Project: Installatietype
    Project: Relatie
    Project: Object
    Project: Projectleider
    Project: Status_project
    I wan't to use the external data column as an shared column for my document set(s). But i can't figure out or this is possible.

    Hi,
    According to your description, my understanding is that you want to set the external data column as a shared column in document set content type.
    I tested the same scenario in my environment, and the external data column was not supported to be set as a shared column in document set.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/5488b777-1c18-4895-a264-27802b2cde27/document-set-shared-columns-and-bcs-data?forum=sharepointgeneralprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to access SharePoint External Data column using Silverlight Client Object Model

    Hi Friends,
    I have one sharepoint list which has column of type External Data type. My need is to access each item and get the values from the External Data Type column field.
    Can anyone help me how to acheive this. I am begineer in Silverlight.
    Thanks, Cool Developer

    Hi Friends,
    I have one sharepoint list which has column of type External Data type. My need is to access each item and get the values from the External Data Type column field.
    Can anyone help me how to acheive this. I am begineer in Silverlight.
    Thanks,
    RajanThanks, Cool Developer

  • Updating the date column in oracle databse

    hi,
    iam having date column called applicationdate in my oracle database.
    i will update this column by jsp..
    when user enter the date value he clicks update then after that iam doing following things.
    String d = (String)req.getParamter("appdate");
    ex:7/7/2005
    preparedStatement.setString(1,d);
    if i execute this statement iam getting error not a valid month .bcos in my table its long date type..so how can i convert this d value t long date type and update using seDate() method..are with setString()..
    regards,

            String d = (String)req.getParamter("appdate");
            SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
            java.util.Date date = sdf.parse(d);
            java.sql.Date sqlDate = new java.sql.Date(date.getTime());So you got a sql.Date and u canset this on the prepared statement
      ps.setDate(1, sqlDate);Watch out for the simpledateformat.. and specify the correct date format you are using...
    hope that helps

  • Updating a Date Column in SP2010 using Javascript in WP

    Hi,
    I know that Today() doesn't work in SP. But seeing all the various JS codes to highlight rows etc is rather cumbersome, especially if you have several operations that you may want to run based on Today().
    In my list, I have a column which is hidden from public view, 'thisDate'. This column is set to Date Only and with each new item that is added, it loads today's date. That's fine at item creation; but what I want to do is use JS to
    update all fields in thisDate column with today's date whenever the list is first loaded on any new day.
    <script type="text/javascript" language="javascript">
    var tDate = null;
    allItems = null;
    ExecuteOrDelayUntilScriptLoaded(UpdateList, 'sp.js'); //this is necessary to ensure the library is loaded before function triggered
    function DateThis(){
    tDate = new Date().toJSON();
    tDate.format("m/dd/yy");
    return tDate;
    function UpdateList(){
    var tContext = new SP.ClientContext.get_current();
    var tSite = tContext.get_site();
    var tWeb = tSite.get_rootWeb();
    var tList = tWeb.get_lists().getByTitle('TeamDUCOM LNO Travel');
    var tQuery = SP.CamlQuery.createAllItemsQuery();
    this.allItems = tList.getItems(tQuery);
    tContext.load(allItems, 'Include(thisDate)');
    tContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySuccess), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySuccess(){
    var listEnum = allItems.getEnumerator();
    var todaysDate = DateThis();
    while(listEnum.moveNext()){
    var currentItem = listEnum.get_current();
    var origDate = currentItem.get_item('thisDate');
    currentItem.set_item('thisDate',todaysDate);
    currentItem.update();
    tContext.executeQueryAsync(Function.createDelegate(this, this.ListItemsUpdateSuccess), Function.createDelegate(this, this.ListItemsUpdateFailed));
    function onQueryFailed (){
    alert('Query List Failed ');
    function ListItemsUpdateSuccess(){
    alert('Success ');
    function ListItemsUpdateFailed(){
    alert('Update List Failed ');
    </script>
    Right now, I get an 'onQueryFailed' alert saying the Query list failed.  Also in the watch windo, I get null for 'tDate and 'todaysDate' is undefined.
    Once I can get this to work, it is my intention to add an extra line or two to compare variables
    origDate with todaysDate. If they match, skip and go to next.  I think this would reduce updates and minimze the List sending out email alerts (most of my users use Alerts to be notified of changes to the list. (Bonus
    would be being able to suspend any alert triggers at update, but I don't believe that's possible, or?)
    After all the debugging, I also intend to comment out the alerts within the code, since no one needs to see that.
    Ideally, this code would be reuseable on any list that needs countdowns, traffic lights, colorcoding etc, or even calcaulated columns using
    thisDate data in lieu of the nonexistent Today()
    function. And, as mentioned above, the list only needs to be updated once for the 1st person to open the list on any given day.
    TIA
    AH-C

    Victoria,
    That didn't work for me. When I stripped out the script tags fro the file and placed it around the script url, I kept getting an error message within the webpart while in page edit view: "Cannot retrieve the URL specified in the Content Link
    property. For more assistance, contact your site administrator."
    I tried both your suggested change and the older script every which way - before the list, after the list, hidden and not. I then focused more on the IE 9's F12 developer tool and watched as it stepped thru the code. Everything was fine with the variables
    (each object loaded in the Locals view) until it came time to call the executeQueryAsync.
    I even traced down the stack and confirming the arguments. But a thot kept bugging me about "get_rootweb". i had seen other examples where it was "get_web" instead. When I went back to search Bing, I came across an example where the coder
    just cut to the chase, bypassing varibles (in my case, dropping 'tSite' & 'tWeb'), so my trimmed code snippet now looks like this:
    var tContext = SP.ClientContext.get_current();
    var tList = tContext.get_web().get_lists().getByTitle('MyList Name');
    var tQuery = SP.CamlQuery.createAllItemsQuery();
    this.everyItem = tList.getItems(tQuery);
    Prior to that, I also changed the var 'allItems', because I wondered if that was causing conflicts, case-sensitivity notwithstanding, since my default list view was 'AllItems.aspx'
    Anyway, it now works regardless of CEWP positioning/hidden status (using only the reference to JS file in SiteAssets and using the script tags within the js file, not the CWEP link) -- typically, I make such CWEPs (ie EasyTabs) hidden and at the bottom of
    the page, after the list and it works just fine.
    I'm going to mark this thread as answered. But before I do that, I'll work out the one piece I need to add for the code to do nothing to a particular item if 'todaysDate' matches 'origDate' then post the entire code as the solution.
    Thanks again.
    Best regards,
    AH-C
    PS, I got a deluge of email alerts telling me that the list was updated. I anticipated that and will be looking for code to stop that if possible.  But with the test for matching dates, at least I can limit the deluge of emails to once a day by whomever
    is 1st to check the list that day (my alert is configured for instant alerting whenever a change has been made and I'd prefer to keep it that way, unless there's no workaround.

  • Query To update a date column with a date of my interest

    All,
    How to update a column in a table which is in date format with a date of my interest??
    Pls suggest.

    Please detail :
    1. what exactly you are trying to do
    2. what exactly you have done
    Nicolas.

  • Update a date column

    Hello hello,
    I just want to update a column with a specific date.
    update table set date = ...
    I almost tried everything. Also to_char and to-date and I always get the following error Message:
    ORA-01747: invalid user.table.column, table.column, or column specification
    The table and column names are correct. It must have something to do with the format of the date or the code itself is principle wrong.
    regards phil

    Error: ORA-01747: invalid user.table.column, table.column, or columns specification
    Cause: You tried to reference a column name, but the column name used is a reserved word in Oracle.
    Solution:
    1)Try redefining your table so that none of your column names are reserved words.
    2)Try enclosing the reserved word in double quotes.
    Since you have used reserved words in oracle as column names, you get these error messages.
    Eg)
    UPDATE suppliers
    SET Integer = 10000;
    the above should give you an error message 1747. The correct way is as below:
    UPDATE suppliers
    SET "Integer" = 10000;

  • Update of date column keeping HH:MM:SS

    I am using the query below to update another parition but I am loosing time asssociated with
    the data. Can somebody show me how to keep the time and only modify YYYYMMDD part of
    the date
    update xxx.tab1 set create_date='20110522' where
    create_date >= to_date('2011/01/14', 'yyyy/mm/dd') and
    create_date < to_date('2011/01/15', 'yyyy/mm/dd');

    example
    update xxx.tab1
    set create_date=to_date('20110522','YYYYMMDD') + (create_date - trunc(create_date))
    where create_date >= to_date('2011/01/14', 'yyyy/mm/dd')
    and create_date < to_date('2011/01/15', 'yyyy/mm/dd');This adds a number value to your date. This number value happens to be the time portion of the create_date column.

  • How to auto update date column without using trigger

    Hi,
    How to write below MYSQL query in Oracle 10g :
    CREATE TABLE example_timestamp (
    Id number(10) NOT NULL PRIMARY KEY,
    Data VARCHAR(100),
         Date_time TIMESTAMP DEFAULT current_timestamp on update current_timestamp
    I need to auto update the Date_Time column without using trigger when ever i update a record.
    Example shown below is from MYSQL. I want to perform the below steps in ORACLE to auto update Date_Time column.
    mysql> INSERT INTO example_timestamp (data)
    VALUES ('The time of creation is:');
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The time of creation is: | 2012-06-28 12:37:22 |
    mysql> UPDATE example_timestamp
    SET data='The current timestamp is: '
    WHERE id=1;
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The current timestamp is: | 2012-06-28 12:38:55 |
    Regards,
    Yogesh.

    Is there no functionality in oracle to auto update date column without using trigger??
    I dont want to update the date column in UPDATE statement.
    The date column should automatically get updated when ever i execute an Update statement.

  • No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to choose External Data.

    HI,
    I have SharePoint Online 2013 environment, i have created a external content type from wcf service. I want to use this as External Data column in document library. When i look for values in content type it populates and when i click any values and adds and
    then click saves it shows the below error
    No exact match was found. Click the item(s) that
    did not resolve for more options. You can also use Select button to choose External Data
    __fkc000950056003700kc000950056003700kc000e400f2001400kc000950056003700k830035004700160027004700d20057000700020064009600870056004600:
    No Matching Items
    Please help on this.
    varinder

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

  • Cannot add hub-managed content type with external list lookup columns to a list -- Error:Id field is not set on the external data field

    This is a variation on the issue mentioned in this
    post
    We are using SP 2010 Content Hub to manage our content types.  On the content hub we've created a couple of exteranl lists, and then created some site columns as lookups against these lists.  We then added the columns to one of our content types
    and set it to publish.
    After the publishing job executed, I tried adding the content type (which now appears on the subscriber sites) to one of the document libraries on one of the subscriber sites.  When I did that it threw the following error:
    Microsoft.SharePoint.WebControls.BusinessDataListConfigurationException: Id field is not set on the external data field    
    at Microsoft.SharePoint.SPBusinessDataField.CreateIdField(SPAddFieldOptions op)     
    at Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op)     
    at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)     
    at Microsoft.SharePoint.SPContentType.ProvisionFieldOnList(SPField field, Boolean bRecurAllowed)     
    at Microsoft.SharePoint.SPContentType.ProvisionFieldsOnList()     
    at Microsoft.SharePoint.SPContentType.DeriveContentType(SPContentTypeCollection cts, SPContentType& ctNew)     
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentTypeToList(SPContentType contentType)     
    at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean updateResourceFileProperty, Boolean checkName, Boolean setNextChildByte)     
    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)     
    at Microsoft.SharePoint.ApplicationPages.AddContentTypeToListPage.Update(Object o, EventArgs e)     
    at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     
    at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    b55297ed-717f-466d-8bdc-297b20344d3f
    I checked the external  content type configuration and it did specify an "id column".  Anyone know if what I am attempting to do is possible and if so, what special configurations are required?
    Thanks

    The issue is not External Content type or external list but the look up column.
    It's not possible to publish a look up column via the Content Type Hub.
    If you need to do this then an alternate way is to use a Managed Metadata column instead, otherwise you will have to implement this via a feature.
    Varun Malhotra
    =================
    If my post solves your problem could you mark the post as Answered or Vote As Helpful if my post has been helpful for you.

  • On deleting an item "Name" column of recycle bin is updating with data in one of the custom column instead of title field in SP 2013 Custom list

       On deleting an item, "Name" column of recycle bin is updating with data in one of the custom column instead of title field in SP 2013 Custom list.
    Thanks, Chinnu

    Hi,
    According to your post, my understanding is that you want to update title field in recycle bin with other field value of the item.
    We can use the ItemDeleting Event Receiver to achieve it.
    While item is deleting, replace title field value with other field value using ItemDeleting event receiver, then in the recycle bin, the title value will replace with other field value.
    However, there is an issue while restore the item from the recycle bin, the item title would be replaced.
    As an workaround, we can create a helper field in the list to store the title field value while deleting, then replace back while restoring using
    ItemAdded Event Receiver.
    I have made a simple code demo below to achieve this scenario, it works like a charm(the
    Test2 field is the helper field, you can hide it in the list), you can refer to it.
    public override void ItemDeleting(SPItemEventProperties properties)
    properties.ListItem["Test2"]=properties.ListItem["Title"];
    properties.ListItem["Title"]=properties.ListItem["Test1"];
    properties.ListItem.Update();
    base.ItemDeleting(properties);
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    properties.ListItem["Title"] = properties.ListItem["Test2"];
    properties.ListItem.Update();
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • External Data Refresh failed - Unable to refresh list data in Excel Web Access WebPart

    Hi,
    I have created a PivotChart in Excel workbook that fetches data from a SharePoint list using "OData Data Feed". When refreshing the connection in Excel 2013, the updated data is displayed in PivotChart. But when i upload the same to a SharePoint
    Library and refresh it through Excel Web Access WebPart, it throws an error.
    After configuring PowerPivot for SharePoint, i am getting a "We cannot locate a server to load the Data Model" error.
    Note -
    SQL Analysis Service(PowerPivot) is in running state.
    PowerPivot Server has been under Data Model in Excel Service setting.
    The library location is added in trusted zone.
    Using secure store didn't fix the issue.
    Stack Exception
    SSPM: Initialization failed on server : Microsoft.AnalysisServices.ConnectionException: A connection cannot be made. Ensure that the server is running. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively
    refused it 127.0.0.1:2383 
        at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) 
        at Microsoft.AnalysisServices.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     --- End of inner exception stack trace --- 
        at Microsoft.AnalysisServices.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo) 
        at Microsoft.AnalysisServices.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo) 
        at Microsoft.AnalysisServices.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean& isSessionTokenNeeded) 
        at Microsoft.AnalysisServices.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession) 
        at Microsoft.AnalysisServices.Server.Connect(String connectionString, String sessionId, ObjectExpansion expansionType) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Connect(Nullable`1 ctx, Boolean schedulePingTaskOnFailure) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Initialize(Guid serviceId, CancellationToken ctx) 
        at Microsoft.AnalysisServices.Streaming.OnPremise.Tasks.InitializationTask.Run(CancellationToken ctx)
    Check Server Version (ServerName\POWERPIVOT): Fail (Expected:
        =11.0.2800.0, Actual: 11.0.2100.60).
        --> Check Deployment Mode (ServerName\POWERPIVOT): Pass.
        Monitorable Check Server Configuration (ServerName\POWERPIVOT): Fail (Uninitialized, ConfigurationError, WrongVersion).
        SSPM: Initialization failed on server ServerName\POWERPIVOT: Microsoft.AnalysisServices.Streaming.ServerConfigurationException: Server ServerName\POWERPIVOT failed configuration checks (Status = Uninitialized, ConfigurationError, WrongVersion).
    at Microsoft.AnalysisServices.Streaming.OnPremise.Server.AssertServerConfiguration(Server amoServer, CancellationToken ctx) at Microsoft.AnalysisServices.Streaming.OnPremise.Server.Initialize(Guid serviceId, CancellationToken ctx) at Microsoft.AnalysisServices.Streaming.OnPremise.Tasks.InitializationTask.Run(CancellationToken
    ctx)
    Thanks,
    Thomas Mathew

    Hi,
    For your issue, the possible reason is that the SharePoint environment does not have a PowerPivot for SharePoint server, or the SQL Server Analysis Services (PowerPivot) service is stopped.
    Install PowerPivot for SharePoint or move the PowerPivot workbook to a SharePoint environment that has PowerPivot for SharePoint installed.
    If the software is installed, verify that the SQL Server Analysis Services (PowerPivot) instance is running. Check Manage services on server in Central Administration. Also check the Services console application in Administrative Tools.
    Refer to the following link:
    http://msdn.microsoft.com/en-us/library/ff487858.aspx
    Besides, here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/en-US/2e728b3e-6d3d-497b-b0ce-57f2699710e5/access-was-denied-by-the-external-data-source-the-following-connections-failed-to?forum=sharepointadminprevious
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Sharepoint Foundation Can not update External List by Work Flow

    Hi
    I try to update External List by other list Work Flow, in Sharepoint 2010 Foundation.
    Here is the manual: 
    http://msdn.microsoft.com/en-us/library/office/ff394479(v=office.14).aspx
    But it fails , and the error message is “The
    workflow could not update the item in the external data source. Make sure the user has permissions to access the external data source and update items.”
    Is there some limited in Foundation?

    http://social.technet.microsoft.com/Forums/en-US/0bb9ef28-3614-4db2-b19f-dd81e8cc2d42/the-workflow-could-not-update-the-item-in-the-external-data-source?forum=sharepointgeneralprevious
    With no Secure Store in Sharepoint what we ended up doing was creating a new external content type, adding a new connection and picking a connection type of .net type instead of sql.  This means we needed to create a .net app as the go between but within
    .net we had all the usual tools for connecting to sql without permission issues.
    Also check
    http://wyldesharepoint.blogspot.in/2010/06/setting-up-external-content-type-for.html
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for

  • Hdmi to VGA issue

    I use an HDMI to VGA converter to an external monitor. Recently the external monitor began to flas off and on periodically, and then completely went blank. Tried rebooting, and a second vga monitor with the same results. Purchased a new adapter as we

  • Can't get past Set Up iPod

    I'm having problems with my brand new iPod Shuffle. After I plugged it into my iMac, I only got as far as naming my Shuffle in the Set Up Your iPod window. I then got the Device Removal warning box (The device you removed was not properly put away, e

  • Event viewer filtered log not exported correctly

    Hi all, I have a very strange problem, or better, I'm missing something. I can open the event viewer and there are many events in there (45'000). I can filter for the last 7 days and this shows me only 1925 events which is correct. Now, if I click on

  • Using dialog-window in CE 7.1 without gray-scale

    I'm using the new "dialog-popup" feauture in my CE 7.1 WebDynPro. When i'm integrating the WD into an Portal iView (eg. URL-IView or WebDynPro) the "gray-screen" is over the portal masthead. So I can't navigate anymore! I tried allready URL-Iview or

  • Converting .csv to .ics

    Is there an easy way to convert a .csv excel spreadsheet to .ics for easy importation to iCal?