Creating a external content type for Read and Update data from two tables in sqlserver using sharepoint designer
Hi
how to create a external content type for Read and Update data from two tables in sqlserver using sharepoint designer 2010
i created a bcs service using centraladministration site
i have two tables in sqlserver
1)Employee
-empno
-firstname
-lastname
2)EmpDepartment
-empno
-deptno
-location
i want to just create a list to display employee details from two tables
empid firstname deptno location
and same time update in two tables
adil
When I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list. When I attempt to edit it, I get an error:
External List fails when attached to a SQL view
Sorry, something went wrong
Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
I can edit the view in SQL Manager, so it seems strange that it fails.
Any advice would be greatly GREATLY appreciated.
Thanks,
Randy
Similar Messages
-
How to read and write data from Excel to TestStand without using LabVIEW VIs
Hi,
How can I read in columns of data from Excel into a TestStand array and write columns of data to Excel from TestStand without using LabVIEW VIs?
I don't think the Property Loader custom step type in TestStand will work because the data I would like to read in from Excel is in a column that is thousands of rows long and the data has to be in the proper format to use the Property Loader to load in an array from Excel.
Thanks for your help.That example does not use LabVIEW and it does about 40% of what you need to do by calling Excel through ActiveX. If you don't know how to use Excel through ActiveX then you'll need to brush up on that.
http://www.microsoft.com/en-us/download/details.aspx?id=16250
http://support.microsoft.com/kb/141759
http://support.microsoft.com/kb/302084
CTA, CLA, MTFBWY -
Copying and updating Data from a table to new table using Merge command
Hi ,
Can anyone please tell me how to do this?
I have a table : EMP(empno(pk),ename,sal,dept) another table is EMP_CLASS(empno(pk),ename)
I want to insert corresponding rows from emp to emp_class table if that row does'nt exist in emp_class
otherwise it will update corrsponding info in emp_class table as well as delete from emp_class according to emp delete operation.
Thanks ,
Deekay.
Edited by: Deekay on Aug 12, 2010 10:59 PMHi Vishu,
This is really helpful, but I want little modification like it will check for deptno in emp and insert in class field if dept is 10 then 1 ,20 ,2 like wise. I have changed emp_class structure .Please find my updated code eaccording to that ,but I am getting error.
MERGE
INTO emp_class
USING emp
ON (emp.empno = emp_class.empno)
WHEN MATCHED
THEN
UPDATE
SET emp_class.ename = emp.calss_name,
emp_class.deptno = emp.deptno,
emp_class.class=select decode(deptno,10,1,20,2,30,3,40,4)from emp
DELETE
WHERE emp_class.empno = emp.empno
WHEN NOT MATCHED
THEN
INSERT (emp_class.empno,emp_class.name,emp_class.deptno,emp_class.class)
VALUES (emp.empno,emp.name,emp.sal,emp.deptno,decode(deptno,10,1,20,2,30,3,40,4)emp.class);
Please help me to fix this.
this is the error:
MERGE
INTO emp_class
USING emp
ON (emp.empno = emp_class.empno)
WHEN MATCHED
THEN
UPDATE
SET emp_class.ename = emp.calss_name,
emp_class.deptno = emp.deptno,
emp_class.class=select decode(deptno,10,1,20,2,30,3,40,4)from emp
DELETE
WHERE emp_class.empno = emp.empno
WHEN NOT MATCHED
THEN
INSERT (emp_class.empno,emp_class.name,emp_class.deptno,emp_class.class)
VALUES (emp.empno,emp.name,emp.sal,emp.deptno,decode(deptno,10,1,20,2,30,3,40,4)emp.class); -
I am trying to create an external content type for a specific list. The problem is that there are so many columns (more than 200) that I get the error:
The operation(s) generation creates an SQL query which exceeds the length limit in Business Data
Connectivity Metadata Store. The operation(s) will not be generated. Recreate
the operation(s) with less number of columns in the configuration.
I tried turning off a dozen columns and I am still getting this error. I am nearing the limit of the "extra" columns I can eliminate.
What is the actual limit on number of columns?
Thank you.Hi,
From my research, it seems to be the limitation in response TTL and response size. To confirm
it, would you please check the detailed errors logged in ULS log? <o:p></o:p>
If you identified the threshold has be reached, you may follow this link to increase
the threshold according to your business requirement.<o:p></o:p>
http://blogs.msdn.com/b/bcs/archive/2010/02/16/bcs-powershell-introduction-and-throttle-management.aspx
Miles LI TechNet Community Support -
Hi,
I'm new to SharePoint 2013 I want to be able to query a MSSQL database from a SharePoint App I have tried to create an External Content Type (ECT) which is produced from a MSSQL stored Procedure, this procedure has several parameters which are needed to
filter the data correctly. From here I want to produce an external list which I can then query from a c# SharePoint app. If I leave the filters in the ECT null then the list is of course empty or if enter a default values the results are limited
for the app to query so are no good.
I want to dynamically pass values to the ECT when querying from the app, is this not possible. Should I just be returning everything in an external list and then letting the query in the app filter the data, this seems inefficient?
Is this the best way to do this or should I be doing this differently?
Please can someone point me in the right direction.
ThanksHi Pandra801,
When you create a the external content type, please try to add a filter based on your select statement.
http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
A step by step guide in designing BCS entities by using a SQL stored procedure
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
SP 2013 ECT - Created an External Content Type in SPD But Not Appearing in BCS
Hello Community,
I have created an External Content Type in SP Designer 2013, and the connection and operations all seem to work fine, but the ECT List throws an access error, and when I check the BCS Service Application the ECT doesn't even appear in the list. Has
anyone else ever seen this kind of problem and if so please brovide guidance and examples for resolving it.
Thanks!
Tom
Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
Linked-In - SharePoint GypsyHi Tom,
Have you created external content type from SharePoint designer 2013 successfully prevously?
And was it displayed in BCS service applicaiton previously?
Have you executed "External Content Type Operations" and saved it back successfully in SharPoint Designer like the following article?
Please check if it is related to the permission issue by using SharePoint Farm Administrator account to create this external content type.
If all above don't solve the issue, please check the ULS log for more information for troubleshooting when create the external content type.
http://www.c-sharpcorner.com/UploadFile/anavijai/create-external-content-type-using-sharepoint-designer-2013/
Thanks,
Daniel Yang
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]
Daniel Yang
TechNet Community Support -
Meaning of "Map To Identifier " while creating an External Content Type
In SharePoint 2010 Desginer, I created an External Content Type that retrieves data from a VIEW in SQL Server. In the wizard, I see "Map To Identifier." What is the purpose of that. I want to understand the meaning of Map To Identifier? Thank you.
MayankHi Mayank,
When we create database-based external content type, we could map the data source element to an identifier of the related external content type as input to the association.
In the Data Source Elements pane on the left side, select the data source element in the list. In the
Properties pane on the right side, select the Map to Identifier check box. In the
Identifier list, select the appropriate identifier.
The database object name is referred to as its identifier. An object identifier is created when the object is defined. The identifier is then used to reference the object.
http://msdn.microsoft.com/en-IN/library/ms175874.aspx
We map the field of the external content type to the identifier of the external content type.
http://msdn.microsoft.com/en-us/library/office/ee558417(v=office.14).aspx
Regards,
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] .
Rebecca Tu
TechNet Community Support -
Rename columns of list created by external content type in share point 2010
Hi,
I want to rename columns of list created by external content type.
Please help to solve the issue.
Thanks in advance!
Regards
RajniHi,
Steps to rename column name:
Open external content type in SharePoint designer
click on “Operations Design View” from ribbon
select corresponding external content type operations
click on edit operation from ribbon
click next button to get the Return parameter configuration page
select the parameter and change the display name from the properties
Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate. -
How to create a new document type for PO and Requisition
Hi All
Can you please help me with the steps of creating a new document type for PO and PR. Also the steps that need to be update for the procure pay cycle to work properly.
Once the document type is been created. I want to create the PO referecing the new PR and PO document type.I am new in MM.
Thanks, RosHi,
1. You can create new PR and PO docu types at the following path:
For PR docu type:
First you need to create number range for docu type or you can use existing number range also. The path for creation of no. range is
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Number Ranges
Then create PR docu type at below path and assign no. range to PR docu type here only
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types
For PO docu type:
Follow same procedure as mentioned for PR docu type. Path is
SPRO>Materials Management->Purchasing->Purchase Order->Define Number Ranges
SPRO>Materials Management>Purchasing->Purchase Order->Define Document Types
If you want to create PO referencing new PR docu type, link the PR docu type to PO docu type at below path:
SPRO>Materials Management->Purchasing->Purchase Requisition->Define Document Types--> Link purchase requisition - document type
Regards
Chetan -
To Select the data from two table one is transp table and onther is cluster
Hi All,
I want to select the data from two tables
Here i am giving with an example.
Fileds: kunnr belnr from bseg. table bseg
fields: adrnr from kna1 table: kna1.
Know i want to put these into one internal table based on kunnr and belnr.
Thanks in advance.
RameshHi,
U cant use joins on cluster table and BSEG is a cluster table so use FOR ALL ENTRIES for taht
refer this code
*& Form sub_read_bsak
text
--> p1 text
<-- p2 text
FORM sub_read_bsak.
*--Select data from BSAK Table
SELECT lifnr
augdt
augbl
gjahr
belnr
xblnr
blart
dmbtr
mwskz
mwsts
sgtxt
FROM bsak
INTO CORRESPONDING FIELDS OF TABLE it_bsak
WHERE belnr IN s_belnr
AND augdt IN s_augdt.
IF sy-subrc EQ 0.
*--Sort table by accounting document and vendor number
SORT it_bsak BY belnr lifnr.
ENDIF.
ENDFORM. " sub_read_bsak
*& Form sub_read_bseg
text
--> p1 text
<-- p2 text
FORM sub_read_bseg.
IF NOT it_bsak[] IS INITIAL.
*--Select data from BSEG table
SELECT belnr
gjahr
shkzg
kostl
hkont
ebeln
ebelp
FROM bseg
INTO CORRESPONDING FIELDS OF TABLE it_bseg
FOR ALL ENTRIES IN it_bsak
WHERE belnr EQ it_bsak-belnr
AND gjahr EQ it_bsak-gjahr
AND shkzg EQ 'S'.
IF sy-subrc EQ 0.
*--Sort table by accounting document
SORT it_bseg BY belnr.
ENDIF.
ENDIF.
ENDFORM. " sub_read_bseg -
How to save, update and retrieve data from two diffrent table
Hi,
I can save and retrieve data into an user defined SBO form from one database table only. How can I save retrieve and update records from two or more different tables in a single screen?
Regards,
Sudeshna.Sudeshna,
Are these tables external to SAP Business One and do not have a Business Object? If there is a Business Object available such as if you were to enter an order, that order would use the Documents object which abstracts you, the programmer, from the underlying tables that need to be updated. If you are handling multiple business objects you would need to wrap the transaction with the StartTransaction - EndTransaction methods. This information is detailed in the SAP Business One SDK Help Center that comes with the SDK.
HTH,
Eddy -
Error while creating an external content type using wcf service.
Hi!
I have been asked to create a wcf service to expose sql data and populate them in a list using external content type.i have created the service but while creating the content type it gives me error. Can anyone suggest me about which url should
be used in service metadata url and service endpoint url.
Thanks in advance.You can refer these links, may be helpful
https://msdn.microsoft.com/en-us/library/office/jj163810.aspx
https://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.dotnetcurry.com/showarticle.aspx?ID=799
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
Create BCS External Content Type or a list based on a WCF Web Service using Visual Studio
Hi ,
How to create a BCS External Content Type or a list Based on a WCF Web Service using Visual Studio.
The link provided here shows the requirement through Designer. http://msdn.microsoft.com/en-us/library/office/ee556431(v=office.14).aspx but I want this to be through VS code..
Please help ..Appreciate your help..
Thanks,
SatheeshHI Sateeshlt,
You can see the below link also;
http://www.fabiangwilliams.com/2013/10/14/part-2-of-3-blog-update-on-sharepoint-bcs-with-full-crud/
Best Regards,
Brij K -
Read and write data from content repository .
Hi All,
We are using content repository to store some document and images on web center server .
So we have created/setup a content repository on web center .
Please proivde me some documnet /wiki page to get some idea how can i read and write date in
content repository .
You are most welocme to provide some idea /suggestion .
Thanks,
Arun.Have you already configured webcenter spaces so it can use content server?
Have you installed the content server seperatly from webcenter or as a part of the webcenter installation?
Check if you have the webcenter spaces component installed in content server because without i don't think it will work...
If you already have configured UCM to work with spaces it's quiet easy.
From your groupspace, open the settings page of your groupspace. Go to the services tab. In the left hand side you can enable the documents services. WHen you have done that, you are able to add the document services taskflows to your pages. Just go to a page in your pagegroup and edit it. Open the resource catalog and you will find some extra taskflows you can add.
If you haven't configured UCM and webcenter to work together, here some steps that will help you:
* Integrating UCM with Spaces
* They both need to use the same LDAP store.
* Since there is no LDAP server available, we choose for embedded WLS LDAP.
* Integrating the ucm into apache
* Stop UCM
* In /oracle/product/wls10320/WebCenter/ucm/config/config.cfg, check the SocketHostAddressSecurityFilter to contain 127.0.0.1
* Add the SocketHostAddressSecurityFilter to /oracle/product/wls10320/WebCenter/ucm/admin/bin/intradoc.cfg
* Add to /oracle/product/wls10320/WebTier/instances/instance1/config/OHS/ohs1/httpd.conf
include /oracle/product/wls10320/WebCenter/ucm/data/users/apache22/apache.conf
* Change the mod_wl_ohs.conf file to
<IfModule weblogic_module>
WebLogicHost localhost
WebLogicPort 7001
Debug ON
WLLogFile /tmp/weblogic.log
</IfModule>
<Location /webcenter>
SetHandler weblogic-handler
WebLogicCluster localhost:8888
</Location>
<Location /webcenterhelp>
SetHandler weblogic-handler
WebLogicCluster localhost:8888
</Location>
<Location /owc_discussions>
SetHandler weblogic-handler
WebLogicCluster localhost:8890
</Location>
<Location /em>
SetHandler weblogic-handler
</Location>
<Location /console>
SetHandler weblogic-handler
</Location>
<Location /consolehelp>
SetHandler weblogic-handler
</Location>
* Restart UCM & WebTier
* Test URL: http://yourServer:7777/idc
* Configure the Identity Store for UCM & WebCenter
* Set the password for the embedded ldap in WLS
Console => Domain Name => Security tab => Embedded LDAP tab => reset credentials
* Restart AdminServer
* Stop UCM
* Add the following to /oracle/product/wls10320/WebCenter/ucm/config/jps-config.xml
<serviceInstance name="idstore.oid" provider="idstore.ldap.provider">
<property name="subscriber.name" value="ou=myrealm,dc=webcenter_domain"/>
<property name="idstore.type" value="WLS_OVD"/>
<property name="security.principal.key" value="ldap.credential"/>
<property name="security.principal.alias" value="JPS"/>
<property name="ldap.url" value="ldap://yourServer:7001"/>
<extendedProperty>
<name>user.search.bases</name>
<values><value>ou=people,ou=myrealm,dc=webcenter_domain</value></values>
</extendedProperty>
<extendedProperty>
<name>group.search.bases</name>
<values><value>ou=groups,ou=myrealm,dc=webcenter_domain</value></values>
</extendedProperty>
<property name="username.attr" value="uid"/>
<property name="user.login.attr" value="uid"/>
<property name="groupname.attr" value="cn"/>
</serviceInstance>
* In the same file, change the serviceInstanceRef ref="idstore.ldap" to "idstore.oid"
* Go to /oracle/product/wls10320/WebCenter/ucm/custom/FustionLibraries/tools
* ./run_credtool.sh
Alias: default
Key: default
User Name: cn=Admin
Password: weblogic123
JPS Config: default
* Start UCM
* Check Provider:
* Go to http://yourServer:7777/idc
* Login : sysadmin/idc
* Administration -> Providers
* jpsuser should be good
* When a ldapuser exist, disable it!!
* Configuring UCM for content search
* Change the file /products/WebCenter11gR1/WebCenter/ucm/config/config.cfg
SearchIndexerEngineName=DATABASE.METADATA to SearchIndexerEngineName=DATABASE.FULLTEXT
* Restart UCM server
* Run the /products/WebCenter11gR1/WebCenter/ucm/database/oracle/admin/batchsnippet.sql in the wcbepsc_ocserver schema
* Restart UCM server
* Open the /products/WebCenter11gR1/WebCenter/ucm/bin/RepositoryManager (sysadmin/idc)
* Recreate the indexes
* Registering UCM with WebCenter
* Go to http://yourServer:7777/em
* Login with weblogic/weblogicPassword
* Go to WebCenter - WebCenter Spaces - webcenter (WLS_Spaces)
* From the top menu, select Settings - Service Configuration
* Select Content Repository
* Add
Connection Name: ucm_connection
Repository Type: Oracle Content Server
Active Connection: checked
Administrator User Name: sysadmin
Root Folder: /WebCenterSpaces
Application Name: Spaces
CIS Socket Type: Socket
Server Host: localhost
Server Port: 4444
Authentication Method: Identity Propagation
* Restart WLS_Spaces
* Test the connection by creating a new group space and upload a document to the document page of this group spaceHope this helps. -
Hi All,
I am fairly new to programming macros in Excel VBA, and right now I need to write a macro that can open a PDF file and read it and get data from there and paste it into an excel spread sheet. Is this possible? If so can you give me some sample code
that would do that?I did this once many years ago. I had to have Acrobat Professional installed ($$$). There are free pdf parsers that you access from VBA using Win32 commands like:
https://code.google.com/p/peepdf/
Maybe something has changed since I did it
Maybe you are looking for
-
Expanding third party Raid on Mac OS X Server 10.4.10
We have an ACNC SCSI Raid connected to a G4 tower via an ATTO UL4S Ultra 320 SCSI card. The G4 is running Mac OS X Server 10.4.10 with the latest ATTO drivers and firmware. The ACNC Raid has four 500GB drives for a 1.5TB volume. We want to expand thi
-
I have a Blu Win HD Win Phone and when taking a picture and i'm trying to zoom in I stretch out using my thumb and forefinger but it doesn't do anything. How do I zoom in?
-
S.screen and abap oo--alv report
i see all the example here but there is not s.screen before whyyy??? there is an example with s.screen
-
Adobe Elements 11 and Camcorder Canon XF 105 in NTSC
I have Adobe Elements 11 and Camcorder Canon XF 105 in NTSC, I can not load the image sequences to Elements 11, what can I do?
-
Troubles using Javascript popoup inside a PHP file
I am trying something simple: to open a popup window trough a javascript code inside my PHP file and nothing happens: here is the code: $openwindow = "MM_openBrWindow('view.html','','width=300,height=300')"; echo "<td><a href='#'><img src='images/but