Send data from a sharepoint 2010 list to a csv file
How do I import a SharePoint 2010 List's data to a csv file using c# code or Powershell Script?
I am able to achieve this through:
$MyWeb = Get-SPWeb "http://dev-apps:8800/applications/PA"
$MyList = $MyWeb.Lists["Alist"]
$exportlist = @()
$Mylist.Items | foreach {
$obj = New-Object PSObject -Property @{
“PName” = $_["Port Name"]
"AName" = $_["Agent Name"]
"Address 1" = $_["Address 1"]
"Address 2" = $_["Address 1"]
"Address 3" = $_["Address 3"]
"Address 4" = $_["Address 4"]
$exportlist += $obj
$exportlist | Export-Csv -path 'C:\Filename.csv'
Similar Messages
-
Pulling data from a SharePoint 2007 List
I'm wondering if anyone has figured out how to pull data from a column in a SharePoint 2007 list to be able to dyamically generate a reaction in a flash object.
Our designer created a dashboard of thermometers for our projects that use two variables, % complete and status (green, yellow, red, blue).
As the end user, I want to be able to update my project in my SharePoint list and have it so that my updates automatically populate that flash based dashboard. Right now, he's using an XML document that is stored in a folder on our SharePoint site and then simply updating the XML file when there are changes.
It would be ideal to pull this data from the list rather than having to update and then upload the xml document to the SharePoint site - any ideas?
Thanks!Sharepoint has a rich XML interface accessible via the URL. Just point your XML.load to the List data from this interface.
An example of XML / URL access is here:
http://vspug.com/dwise/2008/01/10/accessing-sharepoint-list-data-as-xml/
Hope that gets you started. -
Unable to send mails from Azure SharePoint 2010 VM
Hello All,
I have created Site-to-Site VPN in azure to my on premise, and i have configured SharePoint 2010 environment in that. Then i have configured outgoing mail settings for a web application in that VM, but i am unable to send mails to external domain from it.
But i am able to send mails from my on premise VMs to external domains.
ThanksHey There,
Azure does not support smtp relay, you may want to use SendGrid (which working with Microsoft Azure).
After registration you get 400 E-mail per day free of charge.
From technical aspects youll get SMTP server, Username & Password which you can fill in your application.
Hope it helps.
Ido -
How to get only custom fields from a SharePoint 2010 list?
I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not want to be included. Also this causes some of the fields
to appear more than once.
string siteURL = "http:XYZ";
ClientContext context = new ClientContext(siteURL);
Web oWebSite = context.Web;
context.Load(oWebSite);
context.ExecuteQuery();
//Get the list by title
List produktKatalogListe = spLists.GetByTitle("Produktkatalog");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View/>";
ListItemCollection listItems = produktKatalogListe.GetItems(camlQuery);
context.Load(produktKatalogListe);
context.Load(listItems);
context.Load(produktKatalogListe.Fields);
context.ExecuteQuery();
foreach(Field field in produktKatalogListe.Fields)
Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
Is there a way to print only custom fields? This would mean omitting fields like
internalID, GUID...
I tried the following:
if(!field.Hidden)
Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
Unfortunately this not only does not solve the issue but is also not a very good solution for the case I do want to display custom but hidden fields.
Algorithmen und Datenstrukturen in C#:
TechNet WikiThe following approach seems to solve the issue. Instead for checking if the field is not
Hidden I checked whether it is not FromBaseType.
if(!field.FromBaseType)
Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
Algorithmen und Datenstrukturen in C#:
TechNet Wiki -
How to copy Excel sheet data to SharePoint 2010 List?
Hi,
I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
Single line of text,
Multiple line of text,
Choice
Number,
Date,
Person or Group.
Now i need to export the excel data to SharePoint list.
When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
Thanks in advance.
BadriI've updated the example of using PowerShell to include a Person field (user field) and a choice field.
The CSV file has the following columns:
TRIP_NO
VESSEL_NAME
FLAG
AGENT_NAME
CURRENT_LOCATION
RPT_DATE
EMPLOYEE
EMPLOYEE_TYPE
#Get the CSV file and connect to the SharePoint list
$vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
$l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
#Get the lists EmployeeType field (choice)
$employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
#Loop through the items and add them to the list
$r = 1;
foreach($item in $vessellist)
$ni = $l.items.Add();
#Add the Title, using the rows VESSEL_NAME column
$ni["Title"] = $item.VESSEL_NAME;
#Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
[DateTime]$rd = New-Object System.DateTime;
if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
$ni["Date Recorded"] = $rd;
#Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
[Int64]$tn = New-Object System.Int64;
if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
$ni["Trip Id"] = $tn;
#Add some other text properties
$ni["Flag"] = $item.FLAG;
$ni["Agent Name"] = $item.AGENT_NAME;
$ni["Current Location"] = $item.CURRENT_LOCATION;
#Add user information
$ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
$employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
#Update the item
$ni.Update()
Write-Host ([String]::Format("Added record:{0}",$r));
$r++;
Regards, Matthew
MCPD | MCITP
My Blog
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to populate a sharepoint 2010 from the active directory.
I want a list of all the computers in the active directory,
another one with all users.
I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
Thanks
szWhile
the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources. Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
information that are already in the system? Now you can with a little InfoPath customization on the contacts list.
Here’s our plan:
Create the contacts list, and open in InfoPath
Create a data connection to the User Profile web service
Customize the form adding some text, a people picker and a button
Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
Let’s get going! Before we begin, make sure you have InfoPath 2010 installed locally on your computer. I also want to give credit Laura
Rogers and Darvish Shadravan’s book Using
Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step. I know it looks like a lot of steps, but it’s easy once you get the hang of it.
So obviously we need a contacts list. If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
From the list, click the List tab on the ribbon, then click Customize form:
So now we have our form open in InfoPath 2010. Let’s add our elements to the form.
Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon. This will add a column to the contacts list called group.
Below the people picker, insert a button control from the same section of the ribbon as above. With the button still highlighted, click the Control Tools|Properties tab on the ribbon.
Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
You can drag the button control a little larger to account for the text.
We should end up with something like this:
Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
Add a data connection to the User Profile Service
Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL. Click Next.
Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
For the operation, choose GetUserProfileByName. Click Next.
Click Next on the next two screens.
On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
Tell the form to read the user from the people picker control
Click the Home tab on the ribbon.
Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
Leave the condition to default (none – rule runs when button is clicked).
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Click the Show advanced view on the bottom. At the top, click the drop down and choose the GetUserProfileByName
(Secondary) option. Expand myFields and queryFields to the last option and highlightAccountName. Click ok.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
connection as Main. Expand dataFields, then mySharePointListItem_RW. At the bottom you should see a folder called group (the people picker control we just added to the form). Expand this, then pc:Person,
and highlightAccountId. Click Ok twice to get back to the Rules pane.
If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user. So we need to tell the form what user to load the data for. We take the AccountID field from the people
picker control and inject into the AccountName query field of the User Profile Service data connection.
Load the user profile service information for the chosen user
Click the Add button next to “Run these actions:”, and choose Query for data.
In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
We’re closing in on our goal. Let’s see our progress. We should see something like this:
Now that we have the user’s data read into the form, we can populate the fields in the contact form. The number of steps to complete will depend on how many fields you want to populate. We need to add an action step for
each field. I’ll show you one example and then you will just repeat the steps for the other fields. Let’s update the Job Title field.
Populate the contact form fields with existing user’s data
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Highlight the field Job Title.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Click the Show advanced view on the bottom. At the top, click the
drop down and choose theGetUserProfileByName (Secondary) option. Expand the fields all the way down until you see the Value field. Highlight it but don’t click ok, but click the Filter
Data button, then Add.
For the first dropdown that says Value, choose Select a field or group. The value field will be highlighted, but click the field Name field
under PropertyData. Click Ok.
In the blank field after “is equal to”, click in the box and choose Type text. Then type the text Title.
Click ok until you get back to the Manage Rules pane. The last previous screen will look like this.
We’re going to update common fields that are in the user’s profile, and likely from Active Directory. You can update fields like first and last name, company, mobile and work phone number, etc. For the other fields, the
steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change. Here’s what the rules look like when we’re done:
We’re all done, good work! You can preview the form and try it now. Click Ctrl+Shift+B to preview the form. Once you’re satisfied, you can publish the form back to the library. Click File –> Quick
Publish. Once it’s done, you will get confirmation:
Now open your form in SharePoint. From the contact list, click Add new item. Type in a name, and click the button and watch the magic happen! -
Consuming SharePoint 2010 Lists Data in the SSRS 2008 R2 Reports
When I am trying to create a report using SharePoint 2010 List I am getting error.
Firstly I opened SQL BI Development Studio, then created Shared DataSource then created Report.
Then from Report Data pane created Data Source and all was Ok
But when I am creating DataSet for the SharePoint 2010 List and when clicking on Query Builder and running the query I am getting following error:
"Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown".
Now what should I do next to connect my SharePoint List.What's your SOAP call look like for the webservice?
Brandon James SharePoint Developer/Administrator -
Hi All,
I got a client requirement to create reports using SharePoint List as data source. The report should show reflection depends on values changed (I mean animation).
I have heard about the power view/power pivot which does this kind of animations in reports.
Can someone please guide me on creating reports which shows animations
In power view/power pivot using SharePoint List as data source in SharePoint 2010.
Thanks in advance.
MercuryManHi MercuryMan,
Yes, Power View, a feature of SQL Server 2012 Reporting Services Add-in for Microsoft SharePoint Server 2010 or SharePoint 2013 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience.
It provides multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart. So, we can use Power View to do intuitive ad-hoc reporting for business users such as data analysts, business
decision makers, and information workers.
Currently, Power View report only supports two types of data models: PowerPivot Worksheet, and data models based on Analysis Services Tabular Model or Multidimensional Cube.
In your scenario, you can create PowerPivot worksheets using SharePoint List as data source, deploy the PowerPivot worksheet to a SharePoint Library or PowerPivot Gallery, and then generate Power View reports based on the PowerPivot worksheets on the SharePoint
site.
To use SharePoint List as data source in Excel PowerPivot, you can refer to the following resource:
http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx
http://technet.microsoft.com/en-us/library/hh230322.aspx
To create a Power View report based on PowerPivot model, you can refer to the following links:
http://technet.microsoft.com/en-us/library/hh231522.aspx
http://technet.microsoft.com/en-us/library/hh759325.aspx
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Working on a SharePoint 2010 Ent extranet site where parents of students can submit field trip permission forms and make payment at same time (optionally if fees involved). Was wondering if someone could advise (or point me to resource on) best way
to do a simple form post to an external payment gateway? Would be from InfoPath web form OR SharePoint 2010 list form.
Any guidance would be appreciated.
Trevoryou may create a custom visual web part for this:
http://www.codeproject.com/Articles/152280/Online-Credit-Card-Transaction-in-ASP-NET-Using-Pa -
How to design SSRS report using SharePoint 2010 List Version History
Hello,
I am using Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
Thank you.
Kind RegardsYou could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
Hope that would work fro you.
Please Mark as Answer, if the post works for you.
Cheers,
Amar Deep Singh -
SharePoint 2010 list to SQL 2008 table
I would like export the data from SharePoint 2010 list to SQL 2008 table.
At work we don't have SQL integration Services.
What is the best way to export the data without copying and paste into the table?
Any help will be appreciated.
simamFollow the article for step by step web part creation in SP 2010.
http://www.codeproject.com/Articles/136857/Developing-Web-Parts-for-Sharepoint-2010
http://msdn.microsoft.com/en-us/library/ms415817(v=office.14).aspx
You use GetDataTable method to get the datatable from SPListItemCollection.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollection.getdatatable.aspx
Amit -
Update item in SharePoint 2010 list when a entry made in SQL server
Hi there,
I have four lists on a SharePoint 2010 site. There is a column - Equipment Name - in each of the lists. I want only this column to be updated in all the lists, when a new entry is made in SQL server.
I referred
http://oszakiewski.net/eric/connecting-a-sharepoint-2010-list-to-external-database-table and found it good, however I want to only update one column and not to perform CRUD. Also, can it be possible to achieve this without referring to Central Administration
settings?
ThanksHi,
Let’s verify the following:
Whether your four lists are external list with SQL Server data source. If not, you can’t sync the list with SQL Server.
External list items are sync from data source, they keep sync all the time.
Whether you aren’t want to perform CRUD in the list. You can select some of them instead of using all of them.
You can create all of the column from the four lists in your SQL Server database table, and then create four external lists with that table as data source.
Modify view-> in each external list check the columns which you want display in every list. Then you can update the “Equipment” column in each external list.
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support -
Web Database for existing Sharepoint 2010 List
I would like to create an Access Web Database based on a list that already exists in my SharePoint site. Is this possible?
Hi Adam,
From your description, my understanding is that you want to create an Access database using an existing SharePoint list.
In SharePoint lists, there is a button called "Open with Access". You can synchronize the data in a SharePoint list with Access 2010 by using the Open with Access command in the list ribbon. This command creates an Access table linked to the SharePoint
list, and a supplementary UserInfo table that contains additional information, such as user names, accounts, and e-mail addresses.
You can also link a table to an existing SharePoint List by using the SharePoint List command in the Import & Link group on the External Data tab.
More information about Access and SharePoint, you can refer to the link:
https://support.office.com/en-us/article/Synchronize-a-SharePoint-2010-list-with-Access-2010-975BFB97-C799-4FCE-B7CC-3DB3B397F116
Thanks,
Wendy
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] -
Hi all,
Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
before to push that data to an sql server.
Any suggestion , book reference , link is acceptable
thanks in advance
CRISTINA& MICROSOFT ForumHi Cristina,
Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
http://henry-chong.com/2010/12/infopath-validation-gotcha/
Thanks
Daniel Yang
TechNet Community Support -
Problem with Runtime Workbench and with sending data from XI to SLD
Hello<br>
<br>
Could I have a little help, a hint in the two following topics:<br>
<br>
1. I run Runtime Workbench -> Component Monitoring -> Display All and I get this error:<br>
<br>
Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
<br>
In filesystem log I can find like this:<br>
<br>
XIRWB.com.sap.aii.mdt.frames.jsp_error [SAPEngine_Application_Thread[impl:3]_40] Fatal: Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
Thrown:<br>
MESSAGE ID: com.sap.aii.rwb.agent.server.rb_LCRAgent.landscapeCommunicationError<br>
com.sap.aii.rwb.exceptions.BuildLandscapeException: Error during communication with System Landscape Directory: User <br>credentials are invalid or user is denied access
at com.sap.aii.rwb.agent.server.SLDAgentBean.convertException(SLDAgentBean.java:1472)
at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:773)
at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
at com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)<br>
at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
Root cause:<br>
com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)
at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)
at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:280)
at com.sap.lcr.api.cimclient.CIMOMClient.performBatchOperation(CIMOMClient.java:1251)
at com.sap.lcr.api.cimclient.CIMClient.performBatchOperation(CIMClient.java:2268)
at com.sap.aii.utilxi.sld.MRSldProxy.stage1(MRSldProxy.java:989)
at com.sap.aii.utilxi.sld.MRSldProxy.loadComponents(MRSldProxy.java:918)
at com.sap.aii.utilxi.sld.MRSldProxy.loadSld(MRSldProxy.java:907)
at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:373)
at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:434)
at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:764)
at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
at <br>com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)
at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
<br>
<br>
<br>
I don't know what is wrong.<br>
I have configured:<br>
- SLDCHECK work properly,<br>
- none of the users PI* type not lock,<br>
- password to the PI* users in exchangeProfile entered correctly,<br>
- In VA in the JCo RFC Provider I have properly configure: AI_RUNTIME_JCOSERVER, LCRSAPRFC, SAPSLDAPI_SID - from the ABAP I can connect to this programs ID<br>
- In VA in SLD Data Supplier I have properly configure bookmarks HTTP Settings and CIM Client Generation Settings. CIMClient Test is OK<br>
<br>
I do not know what else I can see, what else I have properly configured ... I looked at the notes:: 936093 jak i 721548...<br>
<br>
<br>
2. I can't send data from XI to SLD, ie makes me a system definition in Web As Abap and Web as Java but nothing appear to me in Exchange Infrastructure. Exchange Infrastructure is empty - what is wrong??<br>
I carried out the recommendation by 764176 and 1031321 notes<br>
<br>
I restart below applications (no effect)...<br>
com.sap.xi.directory (Integration Builder/Configuration)<br>
com.sap.aii.af.app (Adapter Engine)<br>
com.sap.xi.rwb (Runtime Workbench)<br>
com.sap.xi.repository (Integration Builder/Design)<br>
<br>
Can I ask for help and guidance in these topics?<br>
<br>
Regards<br>
RP<br>I increased logging in the NWA (Configuration -> Log Configuration) - and increased the some things here to log ALL. So that from the NWA (Monitoring -> Logs and Traces) I see a little more information (but does not follow that with which the user is a problem).<br>
<br>
Here are some interesting logs ...<br>
I was most rash or irritation of those that say about the lack of credentials u2013 I must use Viusal Administrator and set good service ...<br>
<br>
What do I have done:<br>
In the Visual Administrator -> Cluster -> Server -> Services -> SLD Data Supplier<br>
I have set in the HTTP Settings tab the host and port SLD, the user name and password is also entered as it is in the SLD. To be sure, already have set for the user entered here such roles as:<br>
SAP_SLD_ADMINISTRATOR<br>
SAP_SLD_CONFIGURATOR<br>
SAP_SLD_DEVELOPER<br>
SAP_SLD_GUEST<br>
SAP_SLD_ORGANIZER<br>
Maybe we are talking in this place about a different user?<br>
<br>
Similarly, when it comes to tab CIM Client Generation Settings - here's all the same thing done. CIMClient test shows that everything is OK.<br>
When I click the button: This trigger the transfer of data to the SLD gets the message that everything was shipped correctly. Indeed, I received an instance of JAVA in SLD<br>
Also clicked on this icon: Assign application roles to user group - got information that everything is attached properly.<br>
<br>
By ABAP side, the connections: INTEGRATION_DIRECTORY_HMI, SAPSLDAPI, LCRSAPRFC, AI_RUNTIME_JCOSERVER and AI_DIRECTORY_JCOSERVER work correctly, ie I can perform the test - which means that programs ID are properly positioned in JCO Provider in VA.<br>
<br>
Puzzling is this message:<br>
The SLD data is inconsistent.<br>
<br>
Strange also that the message (from the ABAP everything is available in SMGW no errors):<br>
Connect to SAP gateway failed<br>
<br>
And what is this error:<br>
<br>
could not sync ExchangeProfile: <br>
Thrown:<br>
com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
<br>
Below is a list of some interesting logs ...<br>
<br>
###########<br>
<br>
Insufficient permissions for getting SLD access information. You can add permissions for your application via the SLD service in the 'Visual Administrator'.<br>
<br>
#############<br>
<br>
SLD is not accessible. Check SLD Data Supplier service settings.<br>
<br>
###########<br>
<br>
"Warning","2012-02-22","07:53:50:986","Data get on com.sap.sldserv.data.GetSAPBCCentralServiceInstance class processing failed. htThe SLD data is inconsistent. This is an internal processing problem.","/System/Server/SLDService","com.sap.sldserv.DataCollector","n/a","saptest2","Server 0 60_36694",<br>
<br>
#########<br>
<br>
com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
<br>
################<br>
<br>
Full Message Text
CPA Cache not updated with directory data, due to: Couldn't open Directory URL (http://saptest2.unx.era.pl:56000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.xit.saptest2), due to: HTTP 503: Service Unavailable
<br>
##################<br>
<br>
Full Message Text <br>
<br>
could not sync ExchangeProfile: <br>
Thrown:<br>
com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
Connect_PM TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner 'saptest2:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:07 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 2<br>
<br>
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)<br>
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1015)<br>
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3238)<br>
at com.sap.rprof.dbprofiles.DBProfiles.getProfile(DBProfiles.java:101)<br>
at com.sap.rprof.dbprofiles.RemoteProfile.readRemoteProfileFromMedia(RemoteProfile.java:1288)<br>
at com.sap.rprof.dbprofiles.RemoteProfile.getRemoteProfileFromFactory(RemoteProfile.java:195)<br>
at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.readProfile(ExchangeProfilePropertySource.java:177)<br>
at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.sync(ExchangeProfilePropertySource.java:165)<br>
at com.sap.aii.utilxi.misc.api.AIIProperties.sync(AIIProperties.java:582)<br>
at com.sap.aii.af.service.sld.SLDAccess.syncExchangeProfile(SLDAccess.java:43)<br>
at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:52)<br>
at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:167)<br>
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
<br>
##############<br>
<br>
Full Message Text <br>
<br>
Import of software component version list from component repository failed<br>
Thrown:<br>
com.sap.lcr.api.cimclient.LcrException: User credentials are invalid or user is denied access<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)<br>
at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:198)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:146)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:443)<br>
at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:747)<br>
at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:980)<br>
at com.sap.lcr.api.sapmodel.JavaCIMObjectAccessor.enumerateInstances(JavaCIMObjectAccessor.java:211)<br>
at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateInstances(SAP_SoftwareComponentAccessor.java:204)<br>
at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateSAP_SoftwareComponentInstances(SAP_SoftwareComponentAccessor.java:239)<br>
at com.sap.aii.ibrep.server.sldaccess.interfaces.CRAccess.getSwcLinks(CRAccess.java:82)<br>
at com.sap.aii.ibrep.server.extobjects.SwcAccessor.getEoLinks(SwcAccessor.java:59)<br>
at com.sap.aii.ib.server.extobjects.EOAServiceImpl.getEoLinks(EOAServiceImpl.java:75)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceBean.getEoLinks(EOAServiceBean.java:66)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0.getEoLinks(EOAServiceRemoteObjectImpl1_0.java:527)<br>
at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0p4_Skel.dispatch(EOAServiceRemoteObjectImpl1_0p4_Skel.java:232)<br>
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)<br>
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)<br>
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)<br>
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)<br>
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)<br>
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
<br>
##############<br>
<br>
Full Message Text <br>
<br>
An exception was thrown in the UME/ABAP user management connector. Message: Connect to SAP gateway failed<br>
Connect_PM TYPE=A ASHOST=localhost SYSNR=60 GWHOST=localhost GWSERV=sapgw60 PCS=1<br>
<br>
LOCATION CPIC (TCP/IP) on local host with Unicode<br>
ERROR partner '127.0.0.1:sapgw60' not reached<br>
TIME Thu Feb 23 07:28:06 201<br>
RELEASE 700<br>
COMPONENT NI (network interface)<br>
VERSION 38<br>
RC -10<br>
MODULE nixxi.cpp<br>
LINE 2513<br>
DETAIL NiPConnect<br>
SYSTEM CALL connect<br>
ERRNO 79<br>
ERRNO TEXT A remote host refused an attempted connect operation.<br>
COUNTER 16<br>
<br>
Maybe you are looking for
-
Hi Anji, Pls send the procedure (steps) in abap query tool.How to generate a report by using query tool? thanks in advance ramu
-
Sending material outside for repair
All SAP Gurus, We want to send some material outside our company premises for maintenance work. For this I have made a service PO. Now, how to send this material out (which mvt. Type to be used)? And after wards how to take it back Regards,
-
How to set a single tab in JTabbedPane invisible
Hello, I want to set only a single tab invisible out of 9 tabs in JTabbedPane. I can disable the tab but not able to set invisible. Thanking you in advance.
-
Hello, Please tell me how to create a varient ( to lock the T-Codes ) while schduling background jobs. Gayatry.
-
Probably a simple question about using a flash header for navigation
What would be the best way to go about loading this flash navigation? http://www.marcos-ac.com/wip/ Basically my issue is that I don't want the animation to run through each time. On the homepage, I want it to run through it's whole animation, but af