Failed to update a list item to external list

I'm getting below error when I try to add my record to external list. This happen when spExternalItem.Update for 2nd time. I have value in my params
"Failed to update a list item for this external list based on the Entity (External Content Type) 'SA' in EntityNamespace 'Triggers'. Details: Null was returned to FindSpecific (Read Item operation)."
SPList spExternalList = contentDb.Sites[0].RootWeb.Lists["SA"];
List<string>
lstMachineNames = GetMachineNames(lstWarehouseTaskRecords);
foreach(stringstrMachineName
inlstMachineNames)
SPListItemspExternalItem = spExternalList.Items.Add();
spExternalItem["FormType1"]
= "WH";
spExternalItem["SerialNum1"]
= strMachineName;
spExternalItem.Update();
Serial Number is "map to identifier" in External Content types. "Required" and "Read-only" check box is uncheck. Anyone has any idea? please help.
[UPDATED 7 May 2014]
I believe it is due to BDC problem. I created another column called ID so I can map this ID column as identifiers instead of using SerialNum1 and this error solved!

Hi,
As you said, the error thrown when executing the Update method for the second time.
I suggest you debug your code in Visual Studio and keep watching the values of objects in use to get more details about the root cause of the error.
What’s more, you can take a look at the posts from Dimitry and Scot in this thread with similar error message:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/29fb464f-3539-40c4-91c5-216b0363b8ef/null-was-returned-to-findspecific-read-item-operation?forum=sharepointdevelopmentprevious
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

  • Update one list item to another list using WF

    hi
    i have a SP Designer workflow which copies one list item to another list
    but if i edit the 1st list this will copy a new item to another list i want the same item to be edited without making a new copy of the item.
    Alen Austin

    so in the workflow separate between on edit and on new item, so mostly you will need to either do checking and have variable saved to know if you are editing only, or create 2 workflows one when you add new item and other when u edit (if needed)
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SPListItem deleting save the list item into another list.

    Hi Friends,
    Using SPList Item deleting event receiver ,before deleting the item I want save the list item to the another SharePoint list.
    How can we do this using event receivers.Please help me anyone.
    Thanks,
    Tiru
    Tiru

    Before delete the item, use the below logic
    http://stackoverflow.com/questions/1075323/copy-list-items-from-one-list-to-another-in-sharepoint
    or
    You can do this by 2 workflows one creating list item by copying and second workflow on the copied item which will delete the original list item.
    http://sharepoint.stackexchange.com/questions/93441/move-items-from-one-list-to-another-list-using-sharepoint-designer-2010
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/100c0b3c-72d9-4427-a48f-8300be508aa2/how-do-i-copy-the-items-in-a-sharepoint-2010-list-to-another-list?forum=sharepointgeneralprevious

  • Lookup column only return 201 items from external list

    I have a BCS external list which contains about 700 items. I already set the BCS Throttle limit to 50000 items (default) and 1000000 (max). I can view all 700 items in the external list.
    I created a regular lookup column in a custom list to lookup the external list. When I click the drop-down, it only returns the first 201 items with a red message "Warning: Too many results have
    been returned. This result set may be incomplete or truncated.". I need all items available for selection so set up a filer will not work for me.
    I just wonder if there is any work around for the issue. Many thanks.

    This is unfortunately the default behavior with external content type. The limit is set at 201.  You can however avoid this by setting appropriate filters to limit the number of results to less than 200. The user can use wildcards in their filter to
    more fine tune the results returned.
    Read more on how to set filters on external content type here:
    http://blogs.msdn.com/b/bcs/archive/2010/05/05/why-it-s-important-to-define-filters-for-a-good-picking-experience.aspx
    Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question.

  • Failed to update in the Item Master Form ATO field checked

    Hi All ,
    I am trying to implement B2B ( Back to Back Order ) and to implement the B2B the ATO should be checked irrespective of Manufacturing is installed or not.
    Now the problem is I am able to update some of the item but failed to update some of the item and it gives error " the Sales Order Line is opened you can not
    check the ATO".
    Now I did to avoid this I updated the columns BUILD_IN_WIP_FLAG to 'Y' and REPLENISH_TO_ORDER_FLAG = 'Y' in the Item master table .
    And I was successfully able made further transaction of the open sales order line.
    I wanted to know to updating the field BUILD_IN_WIP_FLAG to 'Y' and REPLENISH_TO_ORDER_FLAG = 'Y' will impact our bussiness in Future.
    Regards,
    Sharad

    Hello Sharad,
    First thing, if you are implementing B2B in your system then your organization is a Manufacturing organization or distribution organization?
    If this is not a Manufacturing organization, then the item should be a Buy Item along with ATO attribute enabled. So that the B2B requisition created & then PO.
    If you are implementing Assemble to Order in Manufacturing organization, then your ordered item should be a make item not a buy item. For this sub assembly or finally assembly you need to define the bill, routing etc. After that once you book the ATO sales order, the work order will be created. & the process continues.
    The error "the Sales Order Line is opened you cannot check the ATO", comes when you are having open sales order exists & you are trying to update item attributes. It is always advisable to close all the sales order lines in this case before changing the same.
    Unless & until you are using BOM & WIP in your organization, change of BUILD_IN_WIP_FLAG will not affect. Please make sure not to update these attributes from backend using database update script.
    Regards,
    Jyoti Ranjan Mohanty

  • Automatically create Sub site With the Name of List Item from the list of parent site ,

     Hi all
    I am using Share Point 2010 And
    I have one task That is create new sub site automatically with the name of list item which I Am added in main site List 
    for Example: I have a list name "Projects"  in my main site I am going to add new project as a item ,with that project name i want a new sub site will create automatically .Is there any work flow or any setup
    or any feature please help me by giving guidance  
    Thanking You,
    Arun Darly.

    you can use ECMA script.
    For adding a list item.
    http://adicodes.com/add-update-and-delete-list-items-using-ecmascript/
    Once the item has been added, on success function create a sub site
    http://withinsharepoint.com/archives/285
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Copy huge list items from one list to another sharepoint 2013

    I have a huge list ( about 10,000 items with Attachments). i want to create a copy of the list programatically. i have tried by taking a save as template the list & then create a list with that template. however this took a huge time. i have also tried
    same in PowerShell this also take same time.
    Thanks and Regards
    Er.Pradipta Nayak
    Visit my Blog
    Xchanging

    Hi
    Powershell works very well.
    You can also look here:
    http://get-spscripts.com/2011/10/copy-sharepoint-lists-and-document.html

  • Need solution for sub site when we click on the list item of a list? by using out of out of box feature in share point 2010

    Hi  all ,I have Task that When click on list item a new sit will open fo 
    for ex:   I created a List (test list)  and list items are Project name,Application, Start date ....,when i click on Project name a new sub site will open,
    Is there any out of box feature ?
    for that Please help any body knows
    Thanking You, 

    This is a forum related to System Center Service Manager. Your question seems to be related to Sharepoint 2010. Maybe it's better to ask in the Sharepoint 2010 forum, for instance: General
    Discussions and Questions
    Andreas Baumgarten | H&D International Group

  • Oracle Forms List Items :not populating list Dynamically using select Query

    Hi ,
    I need to create a list item. And the values to be populated in the list are from Database but I'm unable to populate from database.
    Please help me out how to populate the values from database.
    In Property Pallete we have Elements in List under Functional section , In this we have to manually enter the List values but we can't use any Query to Dynamically populate.
    Thanks,
    Kiran Sanga

    When you need to fill a list with the result of a query, you'll have to do it at runtime.
    Andreas has a good blogpost about this.

  • Copy more than one selected lists Item To anothers List(List Style is Tlist

    Hi
    Im working on developer 6i and i have two dynamic lists , i fill one of them With the Availabble database Users , so i want when i select
    one item from this list it goes to the other list
    how can i do that ?

    i populate the first list as follow
    Declare
    Stm Varchar2(700);
    Begin
              Stm :='SELECT SUBSTR(USERNAME,8,LENGTH(USERNAME)),SUBSTR(USERNAME,8,LENGTH(USERNAME)) FROM ALL_USERS ';
    Dynamic_list(stm ,'block.users_list');
    End ;
    and this is the function
    PROCEDURE Dynamic_List(Select_stm in varchar2,Itm varchar2) is
              rg_id      recordgroup;
              rg_name     varchar2(40) := 'LST_GRP';
              query_ok      number;
              cnt                    number;
    Begin
              rg_id     := find_group(rg_name);
              If not Id_Null(rg_id) then
              Delete_group(rg_id);
              End If;
    rg_id := create_group_from_query(rg_name,select_stm);
              query_ok := populate_group(rg_id);
              clear_List(itm);
              populate_List(itm,rg_id);
    Exception when others then
    Copy(sqlerrm,'FTR.ERR');
    END;

  • My dvd player fails since updating to mavrick when using external projector. Help?

    Works when not connected perfectly

    In addition to RRFS's advice, please post in the correct forum. This forum is for iMac's, you mentioned you have a MacBook Pro. They're similar but still pretty different hardware.

  • Update an Activity using ELM (External List Management)

    Hello,
    Is it possible to CHANGE the status of an activity using ELM? I managed to create activities with ELM, but I wonder if I can change the status too.
    Regards,
    Jeroen

    Hi Jeroen,
    Use following funtion call with mentioned parameters
    call function 'CRM_ORDER_MAINTAIN'
          exporting
            it_status         = lt_status1
          changing
            ct_input_fields   = lt_input_fields
          exceptions
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            others            = 5.
    here in for parameter lt_status1 u can fill up your required status and then execute the FM.
    After that execute FM BAPI_TRANSACTION_COMMIT.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • How to read XSLT list item of a list view web part in SharePoint designer 2010 using jquery

    Hi ,
    I have a requirement to get data from one list(e.g., A) and display in some other list's(e.g.,B) custom display form(e.g., CustomDispForm.aspx). 
    Here I am going to do this with the help of Jquery SP Services using GetListItems(). For getting the data I need to pass two parameters from list(B), but the data is like <xsl:value-of select="@testField_"/> .
    I have stuck how to pass such variables in Jquery function.
    Please let me know how to achieve .
    Thanks in Advance.

    Follow below code to pass variables to jQuery function in xslt. It will better to use parameters.
    <xsl:variable name="varTestFields">
    <xsl:value-of select="@TestField_"/>
    </xsl:variable>
    <!-- jQuery Function - Check the passing of parameters -->
    jQueryFunction('{varTestFields}'
    OR
    <!-- jQuery Function - Check the passing of parameters -->
    jQueryFunction('{@TestFields_}'
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

Maybe you are looking for

  • Can I replace internal hard drive using only my system recovery disc?

    Hello Everyone and thank you so much for your help! I have a Vista Desktop and have determined that I need to replace the hard drive.  I am hoping that I can set the jumper pin on the new hard drive to primary, remove the old drive, install the new d

  • Full Screen Call Image

    Before in iOS 6, whenever friends or family call my phone..i used to get the full screen call image of them...now ever since i updated to iOS 7...its a circle...is Apple bringing back the full screen call image thing or is it there in iOS 8?. Please

  • Version wise for the following files

    Hi All I need to know what versions for the following files,Can any one suggest me how to get the versions,and where do they belong to, whats there functionality. - POXWPA1B.pls - POXWPA4B.pls - POXWPA5B.pls - POXWPA6B.pls - POXWPA7B.pls - poxwfpoa.w

  • Column selector addition on drill down.

    Hi,, Problem: Can we dynamically add column selectors for those column which appear after drill down... Details: we have a report where we have 3 columns, A, B 1st & 2nd columns have selectors on them... 1st col -> Select A or B 2nd col -> Select B o

  • Boot up on early 2011 MBP, black screen?

    Hi, I've been using an early 2011 15 in MBP for the last 2 years. Been running pretty well overall, but have been noticing as of late that when booting up, insterad of displaying a grey screen and chime, I'm just getting a black screen (clearly scree