InfoPath cannot call web service when uploaded to Office 365 Sharepoint - web-services

Not my normal line of questions, sometimes we've got to be flexible!
I've designed an InfoPath form that I'd like to upload to a Sharepoint site.
On my form I've got a data source that is consuming the following SOAP service
https://SharepointServer/Site/_vti_bin/UserProfileService.asmx?WSDL
I call the Operations "GetUserProfileByName" and get various information about the account looking at the form. In preview this works very well. I've got the header saying "Hello Pete" and I'm able to filter lists based on the user's data. However. When it comes to uploading the form to the server, I'm greeted with the following exception:
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
HIDE ERROR DETAILS
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:19df2c9d-a036-2000-3929-0bce8940cf2a
Any ideas what I'm doing wrong? Is there limitations due to the way that my account details are being used on SharePoint? If so what's the work around? I'm not a full admin on the server, so I've only got access to a Sandbox site.
Any help greatly appreciated,
Pete

The issue is loopback protection. In o365, it cannot be disabled. Stupid though, there are a lot of useful web services available for information. See this link: Error message when you connect an infopath form to a sharepoint online web service

Related

Info Path cant retrieve SQL data after publishing the form

I created a form in info path which will connect to SQL DB and all connectivity are fine. I preview the form and all SQL data retrieved fine without any issue.
I published the form but when end-users try to load the form, it was shown an error like (An error occurred querying a data source. An error occurred while using the form. For more information, contact the site administrator).
Means I can only retrieve the data while I am at info path and previewing the form but not after the publish.
Is there any things which need to be allowed at SharePoint level to connect to connect to SQL DB which I used in the info path.
Please help and advice .. what could be the issue ??
I would think about permissions on the database.
Have you tried to access the form from the browser with the same user you used in InfoPath designer?

Sorry this site has not been shared with you

Windows Standard 2012 R2
SharePoint Foundation 2013
SQL Server 2014
I have a SharePoint Application page that is throwing the above error when clicking on any Button on the page. I even added a button with nothing in the method and still get the above error.
Note that I am NOT challenged when accessing the Application page initially and am NOT challenged when clicking the button. None of the code in the original method gets executed. In fact, it appears that the page cycle is never processed. I have logging in the method, the page_load even and in the page_unload event and nothing is logged.
The site is configured for claims authentication and I have verified that my account, application service account are both in Owners and both are admins on the box. Application Service account has SYSadmin on the SQL server (also located on the same box).
I changed SharePoint to allow access requests and to send me an email for those requests. Now the page shows:
The website declined to show this webpage
HTTP 403
Most likely causes:
•This website requires you to log in.
Any suggestions?
One more thing: this is a one-page application. There are no redirects, etc. within the page/application.
Thanks,
John
Turns out this was a permissions issue for the application service account. Never could find out specifically where but reverted to a previous service account and it works now.

(#32) Page request limited reached Facebook API response

I am using Facebook API to pull data about various public pages that I have in my DB.
It is working fine, but after some time I keep getting this error from API.
After this error I am unable pull any data for any pages. Is this error related to just a page data or this may occur any time?
Pleas provide some explanation if any one knows. So that I can optimize my code to handle this situation.
Thanks..

Sitecore: We experienced a technical difficulty while processing your request. Your data may not have been correctly saved

It is throwing the following exception after submitting the data using Web form created after it is upgraded from Web Form for Marketers 2.1.0 to 2.3.0. Followed the step by step upgrade instructions.
Exception in the Log file:
6772 22:24:13 WARN Web Forms for Marketers: an exception: has occured while trying to execute an action.
Error/Warning on the UI:
Sitecore: We experienced a technical difficulty while processing your request. Your data may not have been correctly saved
However, it is saving the data to database, and when I view the report for the same form using Web Form Reports, nothing is shown.
Action Method : Save to Database
The reading/creating counters warning is covered by adding the 'Performance log users' role to the account used by the application pool as previously answered here. It seems unlikely that this is causing the WFFM error, but it's worthing getting rid of the warning, restart IIS, and try again.
This is related to smtp setup on Send Email Message action which is used on webforms for marketers.
Refer:
http://blog.arkesystems.com/post/2010/05/18/SiteCoreWeb-Forms-for-Marketers-Send-Email.aspx

SP 2013 Online Client Object Model limitation 3M on uploading a file from a SharePoint APP

I tried to upload large files (over 3M) to SharePoint 2013 Online in a provider-hosted APP (OAuth authentication by passing “StandardTokens”). I tried many ways, but there is no way to work for so far.
Use SharePoint Client Model below, but in SharePoint online, the limitation of file size is about 3M. Other people have the similar issue
microsoft.sharepoint.client.file uploadedfile = folder.files.add(filecreationinformation);
clientcontext.load(uploadedfile);
clientcontext.executequery();
Tried to increase MaxReceivedMessageSize according to http://msdn.microsoft.com/en-us/library/ff599489.aspx, but I cannot call Server Object Model to do it with SharePoint Online. Tried to find if I can change the settings through PowerShell to SharePoint Online, but there is no command exposed for MaxReceivedMessageSize in Windows PowerShell for SharePoint Online cmdlets .
I tried a workaround to use WebDAV in Uploading large files to Sharepoint 365. It works when I use claims based authentication by providing user name and password. However, in provider-hosted APP, I cannot use this kind of authentication, and need OAuth authentication work. I added "Authorization", "Bearer " + accessToken in HTTTP headers according to http://code.msdn.microsoft.com/officeapps/SharePoint-2013-Use-HTTPs-dc7227a7. It works well for Web Service calls, but it doesn’t work for WebDAV calls. Here is the code.
request.Headers.Add("Authorization", "Bearer " + accessToken);
I tried Microsoft.SharePoint.Client.File.SaveBinaryDirect() in Client Model. There are many posts that indicate SaveBinaryDirect() doesn’t work due to cookies being attached to request too late. I got http 403 error on SaveBinaryDirect().
"917656; Access denied. Before opening files in this location, you must first browse to the web site and select the option to login automatically."
Basically, I tried the four ways above, but all failed. It is such a common scenario to upload a little bit large file (3M) to SharePoint 2013 Online in an APP, but there is no solution for me yet. Would you please help me find a way out?