It is so interesting to me when I get to do new things and I tried to tackle this same problem to be sure that I could understand the issue. I first received the same error message that you got, but I got one step closer when I added the "ID" paramater to the batch command. I just used a zero as the ID and this at first looked promising. I also have a field in the external data called ID which should also have worked I thought. Also, it was harder to initially identify all the required fields and once I had those down I did run out of time to test it further for at least adding an item. However, when I try to edit an item I receive the "Cannot access a closed Stream" message. Everything I can find about that suggests that the web service is tied directly with the SQL database that sharepoint is using where the lists/libraries reside. That error is returned when the database server can't access the list because it does not exist as a true list in that database. It is odd the GetListItems should work though. So I tried to see if I could use the client side object model in ECMAScript (javascript) to do all of the CRUD ops in an external list and through trial and error, it worked! I have learned a lot in the process and will be writing a blog post on it soon. (The more prodding the faster the post!!). Just thought I would pass this along.
↧