Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 25064 articles
Browse latest View live

Import from Visio 2016/2013 Greyed out in Designer

$
0
0

Good afternoon, all!

I've run into a problem with importing from Visio into Designer.  When I open the workflows and click "Import from Visio..." the option for Visio 2013 is greyed out.  Web searching has only come up with the idea that Workflow Manager is not installed on the SharePoint server.

However, when I try to add a new workflow, I do get the 2013 option.  Furthermore, I had major troubles installing Workflow Manager and ended up calling Microsoft to assist with the installation.  So, Workflow Manager is installed on the server.

Any other thoughts on why the option is greyed out?

Thanks to all for looking!

Gregg


BCS UserProfile Sync to Oracle not working after upgrade from Oracle 10 to Oracle 11

$
0
0

Hi,

 

I am experiencing problems with a BDC connection to Oracle. The database I am connecting to is moved to a new Oracle 11 server. It was Oracle 10 I use this connection to sync with my user profile service.

 

I have the following Oracle connection in my tnsnames.ora

 

BFTPRD=

  (DESCRIPTION=

    (ADDRESS=

      (PROTOCOL=TCP)

      (HOST=mis-prd-001.intra.nl)

      (PORT=1521)

    )

    (CONNECT_DATA=

      (SERVER=dedicated)

      (SERVICE_NAME=BFTPRD1)

    )

  )

 

My BDC import file:

<?xml version="1.0" encoding="utf-8" standalone="yes"?><Model xmlns="http://schemas.microsoft.com/windows/2007/BusinessDataCatalog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.microsoft.com/windows/2007/BusinessDataCatalog BDCMetadata.xsd" Name="Beaufort"><LobSystems><LobSystem Type="Database" Name="Beaufort" DefaultDisplayName="Beaufort"><Properties><Property Name="WildcardCharacter" Type="System.String">%</Property></Properties><LobSystemInstances><LobSystemInstance Name="Beaufort connection"><Properties><Property Name="AuthenticationMode" Type="System.String">RdbCredentials</Property><Property Name="DatabaseAccessProvider" Type="System.String">Oracle</Property><Property Name="RdbConnection Data Source" Type="System.String">BFTPRD</Property><Property Name="SsoApplicationId" Type="System.String">BeaufortSSO</Property><Property Name="SsoProviderImplementation" Type="System.String">Microsoft.Office.SecureStoreService.Server.SecureStoreProvider,Microsoft.Office.SecureStoreService, Version=15.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c</Property><Property Name="ShowInSearchUI" Type="System.String">False</Property></Properties></LobSystemInstance></LobSystemInstances><Entities><!-- Locatie --><Entity Namespace="http://localhost" Version="1.0.0.0" EstimatedInstanceCount="10000" Name="Beaufort_Locatie" DefaultDisplayName="Beaufort - Locatie"><Properties><Property Name="Title" Type="System.String">Beaufort - Locatie</Property></Properties><Identifiers><Identifier TypeName="System.String" Name="EmployeeNumber" /></Identifiers><Methods><Method IsStatic="false" Name="Beaufort_Locatie_ReadItem"><Properties><Property Name="RdbCommandText" Type="System.String">
									SELECT loc_plaats
									FROM mw_gegevens
									WHERE pers_nr = :EmployeeNumber</Property><Property Name="RdbCommandType" Type="System.Data.CommandType, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">Text</Property></Properties><Parameters><Parameter Direction="In" Name=":EmployeeNumber"><TypeDescriptor TypeName="System.String" IdentifierName="EmployeeNumber" Name="EmployeeNumber" /></Parameter><Parameter Direction="Return" Name="Beaufort_Locatie_ReadItem"><TypeDescriptor TypeName="System.Data.IDataReader, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" IsCollection="true" Name="Beaufort_Locatie_ReadItem"><TypeDescriptors><TypeDescriptor TypeName="System.Data.IDataRecord, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="Beaufort_Locatie_ReadItemElement"><TypeDescriptors><TypeDescriptor TypeName="System.String" Name="loc_plaats" /></TypeDescriptors></TypeDescriptor></TypeDescriptors></TypeDescriptor></Parameter></Parameters><MethodInstances><MethodInstance Type="SpecificFinder" ReturnParameterName="Beaufort_Locatie_ReadItem" ReturnTypeDescriptorPath="Beaufort_Locatie_ReadItem[0]"
									Default="true" Name="Beaufort_Locatie_ReadItem"
									DefaultDisplayName="Read Beaufort - Locatie external content type"></MethodInstance></MethodInstances></Method></Methods></Entity></Entities></LobSystem></LobSystems></Model>

I configured a Secure Store username and password. This worked before in Oracle 10

When I import this file I get no errors. I configured the sync to use a profile property as the paramater value for "EmployeeNumber". When I run the profile sync I get errors in the ULS:

the host name 'BFTPRD' is invalid and it's could not be found. The exception is System.Net.Sockets.SocketException (0x80004005):
No such host is known     at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)     at Microsoft.SharePoint.Utilities.CommonUtility.IsIntranetAddress(String hostName)	"
Exception occured while logging Sqm data. Exception message: No such host is known	"

IsSystemTypeEnabled[Database] : True	"
Chose Oracle database access provider	"
Initialized DbSystemUtility for LobSystemInstance with Id '775'	"
Db AuthN Mode: 'RdbCredentials' Db Provider: 'Oracle'	"
Checking for current connection to SystemInstance: Beaufort connection	"
st: RemoteAddress: 'https://sha-wp-001:32844/9a37f3b1aeb649c4becc4f1adda70028/SecureStoreService.svc/https' Channel: 'Microsoft.Office.SecureStoreService.Server.ISecureStoreServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/2009/06/securestoreservice/ISecureStoreServiceApplication/GetRestrictedCredentials' MessageId: 'urn:uuid:fc191350-7f5c-4edf-8408-cc7d6ba31124'	"
Setting credentials obtained from SSO in Connection string	"
Reverting Windows Impersonation:	"
Opened connection to Db:	"
Restoring Windows Impersonation:	"
Executing MethodInstance 'Beaufort_Afdeling_ReadItem' representing command type 'Text'	"
SELECT afdeling          FROM mw_gegevens          WHERE pers_nr = :EmployeeNumber	"
Parameter Signature : System.String :EmployeeNumber,	"
Parameter Values	""
Parameter ':EmployeeNumber':	"
An instance of type 'System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.	"
 monitored scope (BandwidthUsageMonitor). Parent systemUtility.ExecuteStatic: Beaufort connection : Beaufort_Afdeling_ReadItem	"
Monitored Scope (BandwidthUsageMonitor). Execution Time=1.43616	"
um	Finished executing query	"
 monitored scope (BandwidthUsageMonitor). Parent No	"
Monitored Scope (BandwidthUsageMonitor). Execution Time=0.122336	"
um	Closed connection to Db:	"
Error calling importProperties : System.InvalidOperationException: The given dot notation 'AFDELING' refers to a node in Type Descriptor structure that does
not exist.     at Microsoft.SharePoint.BusinessData.Runtime.FieldValueHelpers.SplitWithTypeDescriptors(IEnumerable`1 roots, String dotNotation, IDictionary`2 cache,
Boolean throwWhenAbsent)     at Microsoft.SharePoint.BusinessData.Runtime.FieldValueHelpers.GetTypeDescriptorByDotNotation(IView view, String dotNotation, IDictionary`2
cache)     at Microsoft.SharePoint.BusinessData.Runtime.FieldValueDictionary.get_Item(String fieldDotNotation)
at Microsoft.Office.Server.UserProfiles.ProfileImportExportService.importProperties(IEntityInstance profileEntityInstance, ProfileChangeData profileChangeEntry,
String[] propertyList, Boolean fFirstMatch).	"	


Why do I get the unexpected error "the host name 'BFTPRD' is invalid" When I look at the BCS  connection in Central Admin I see that Host is filled  with the name form TNS names. But that is not a real host. The database name is empty. When I try to fill that BCS thinks it is a SQl connection because then I get the following error in  my ULS

Error calling FindSpecific : Microsoft.BusinessData.MetadataModel.InvalidMetadataPropertyException: The provided database connection string is malformed: Initial Catalog=BFTPRD1;Pooling=False;Persist Security Info=false;User ID=sharepointuser;Password=******** ---> System.ArgumentException: Keyword not supported: 'initial catalog'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)


I also tried setting the secure store username with passing the Oracle schema in the username like sharepointuser@bftprd

then I get this error in ULS

Error calling FindSpecific : Cannot connect to the LobSystem (External System). Reason: 'ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA ' (ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA ) Stack Trace:
at Microsoft.SharePoint.BusinessData.SystemSpecific.Db.DbConnectionManager.Execute(Object[] args)

The first approach should work but I have no idea what is going wromg here. Could it just be the Oracle 11 server that is blocking this?

InfoPath 2013 install on Office ProPlus 2016

$
0
0

Hi, I'm getting ready to install Office Pro 2016 on 3000 computers.

I have my install ready for office and I need to run infopath_4753-1001_x64_en-us.exe at the time of the install to support our InfoPath forms on share point.

I have tried every command line switch on the is file and the setup.exe after I extracted the files, to perform a silent install. I even tried repacking the install to a MSI. still I can not perform a silent install.

Dose Microsoft have a MIS for the 64 and 32 bit versions of this program that will allow it to install silently?

EX:

Source file was downloaded form here: https://www.microsoft.com/en-us/download/details.aspx?id=48734

infopath_4753-1001_x64_en-us.exe /quiet and infopath_4753-1001_x64_en-us.exe /passive only get you though the extraction of the files. and you still have to answer the questions to install the program.

I need a fix ASAP and I do not want to delay my deployment.

Thank you Dkelly

Modifying Announcement Email Template

$
0
0

Hi all,

I was wondering how you go about customising the announcement email template in SharePoint Online? I'd like to add a logo, change the font and layout etc etc and I just cannot find any info on how to do this for Online.

Any help and pointers always appreciated.

Thankyou,
Conrad



Visio services- publish visio diagrams from SCOM to Sharepoint

$
0
0

Hi All

I must prepare some dashboards about IT environment status. The best way to do it is use visio, connect visio using additional connector to scom and publish to Sharepoint. I spend almost one day trying publishing visio - I was thinking that is quite easy :( and finally I find article that describe this proces in details- and what I need on my sharepoint foundation is visio services which are available only on Sharepoint Ent Edition. Is it correct? is there any way to add this component/feature to Sharepoint foundation to display visio file? or  there is other way? or maybe you know the solution how can I easly create custom dashboards for SCOM and publish via web?

thanks for any help

best regards

Robert


Robert Szymański

Web service to authenticate logged in AD User for SharePoint 2013/SharePoint Online

$
0
0

Hi Experts,

I need to add custom view in InfoPath form which will validate user credentials against AD. For this I would like to use web service or WCF service. I need to use this solution for SharePoint 2013 on-premises and SharePoint online. Considering this option I am thinking to create web service or WCF service, and I am thinking it to host it on Azure so that It can be used for both. I need help that how can I host my web service or WCF Service on Azure? or is this the right IDEA to do so?


Abhijeet Khopade

Custom Calendar Webpart to pull Event from SQL

$
0
0

I would like to create a custom webPart to pull data from SQL server table then feed it to SharePoint calendar filtered (Dropdown) by users.

Is this possible???


hussain

SharePoint 2013: Is there a way to enable a password BEFORE accessing an app?

$
0
0

I haven’t found a way to apply a password for an app with sensitive information (i.e. a Contact app named ‘Patients List’).

I have a 8 colleagues/contributors which I have invited to visit my SharePoint 2013 ‘prototype site’ and provide feedback, BUT I haven’t found a way to put in place a password to challenge all colleagues/contributors to provide a password BEFORE the Patient list is accessed. Only TWO colleagues/contributors should know the special password so they can have access to the Patients List.

If no app, feature or function is avail to put a password before accessing an app, Can the 6 remaining colleagues/contributors be placed onto another group with NO privileges to the Patient app and place the other two  colleagues/contributors into another group with viewing and/or editing rights to the Patient app? Or what is the best way to protect an app with sensitive data?

Your feedback will be appreciated. 

Thanks. Temporaryaccess



Report Viewer Control is not working in sandbox solution in SP 2013

$
0
0

HI Team

In SharePoint 2013, i am using  Reporting services for displaying dashboard for client.

When i am using Report Viewer control in sandbox solution, i am getting below error.

Error Message:

Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain

I request can any one help me on this.

With Regards

sivakumar k

Provider hosted apps - app installation issue

$
0
0

Developed provider hosted app using MVC and when tried to install, getting only Tenant administrators can able to install the app.

Please assist me in resolving this issue.

Thanks,
Laxmikanth

Unbale to connect database in WCF service sharepoint 2013

$
0
0

Hi ,

                                           

namespace Barkes.Services.Presidents
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class PresidentsService : IPresidentsService
    {
        #region Private Members

        private List<President> _presidents;


        #endregion

        #region IPresidentsService Implementation

        public List<President> GetAllPresidents()
        {
            List<President> president = new List<President>();

            string connStr = @"Data Source=WIN-941LO3JBRJG\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;";

            using (SqlConnection con = new SqlConnection(connStr))
            {

                     con.Open();
                DataTable dt = new DataTable();

                SqlCommand cmd = new SqlCommand("select * from tblEmployee", con);
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                da.Fill(dt);
                if (dt.Rows.Count > 0)
                {
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        President pres = new President();
                        pres.Id = Convert.ToInt32(dt.Rows[i]["ID"].ToString());
                        pres.Name = dt.Rows[i]["Name"].ToString();
                        pres.Gender = dt.Rows[i]["Gender"].ToString();
                        pres.Salary = Convert.ToInt32(dt.Rows[i]["Country"].ToString());
                        president.Add(pres);
                    }
                }
            }
            return president;         

        }
    #endregion

    }
}

Above is the code I am writing to connect to database in sharepoint using WCF referincing below link.

It gives error at  

Cannot open database "Northwind" requested by the login. The login failed.

Login failed for user 'NT AUTHORITY\IUSR' at

  con.Open();  while it works fine if used in sepearate wcf application.

Could any link be provided for the requirement to perform CRUD on sql database table and show the value in sharepoint 2013 in table.

i have been struggling it for long

 


SharePoint Online - Auto save a add item form

$
0
0

Hi All,

We need to auto save SharePoint online list item form so that data getting saved periodically before complete form submit by user.

Any idea on this would be great.

Thanks & Best Regards,

Sudesh


sudesh withanage

Check out file JavaScript

$
0
0

Hi,

I want to check out file using JavaScript or Jquery, any code sample please ?

Thanks in advance

logo on my sharepoint 2013 site

$
0
0
Good afternoon

Put another logo on my sharepoint 2013 site, site administrators can see, but not users. What I have done wrong?

Infopath 2013 error - Not Enough Storage is Available to process this command

$
0
0

Hi Experts,

I am working with Signature Collection Workflow with SharePoint Designer 2013 and trying to modify Task form for one of the workflow. It has been irritating experience to use InfoPath designer as I kept getting below error again and again. Please help its so annoying. I cant continue with my work.


Abhijeet Khopade


Unable to activate a Workflow Feature invoking an external Web API from SharePoint 2013 Visual Studio Workflow

$
0
0

I have an On-Premise SharePoint 2013 Development environment with Visual Studio 2013 Workflow. It is a stand alone server. It also hosts a separate IIS site, which has a Web API. When I am trying to call this Web API from my SP2013 Visual Studio Workflow and I am trying to deploy it, it is giving me an error as below, even though I am setting the the Authorization on the RequestHeader. Can anyone please help?

Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.WorkflowManagementException: Exception thrown from the messaging layer. For more details, please see the server logs. HTTP headers received from the server - ActivityId: e2057b92-61c8-4c01-9e05-e89247d05457. NodeId: {MachineName}. Scope: /SharePoint/default/22bc9b5c-7d8d-40c7-a3c7-8cd4051b7502/10f92945-9b88-484b-9a60-ea43838bce61. Client ActivityId : 19a58d40-3f93-4423-bccf-4fe215af8e58. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.


Ven

Submit file to Drop Off Library programmatically - OfficialFileCore.SubmitFile is returning OfficialFileResult.FileExists

$
0
0

Dear all,

In this scenario, I want to submit file from team site site collection to document center site collection programmatically, upload it to the drop off library and get it routed to the right place following the routing rules.

I found this blog post which contains c# code that allows me to submit the desired file, but theOfficialFileCore.SubmitFile returns OfficialFileResult.NotFound. This issue was related to the user permissions that needed to be added to the "Records Center Web Service Submitters group", following this blog post.

Now that this issue is gone, a new one has appeared. In face, the OfficialFileCore.SubmitFile is returningOfficialFileResult.FileExists which, according to Microsoft documentation onMSDN, indicates that "a file versioning operation was canceled due to the file being already present at the location". However, I'm sure that no file already exists on the drop off library and on the destination library that the document should be routed to.

If everyone faced the same issue, please tell me what's the matter with this wierd "OfficialFileResult.FileExists".

how to set date fields using client side object programming

$
0
0

We don't have any access to do custom coding on our site. 

We have a list where our users create a new request ( new item ) asking for a weeks access to our software. In my admin view of the list, I individually open each list item and set the start and end date manually. I want to automate it. 

I want to be able to SELECT (check mark) all the items and on click of a button below the list the following should happen :

1. start date is set to Today

2. end date is set to Today + 7

3. Status field ( which is a choice column ) should set to "Complete"

How can i do this ?

Please help me with a sample code. I'm a novice to CSOM.

Many thanks. 

Get External list data

$
0
0

Hi,

The scenario is that I have an Employee table in sql database containing more than 5000 items.

Now I want to show the items in webpart based on some column say user country = india and city = mumbai. 

When I connect the table using BCS sharepoint designer and get value in list than I get the whole 5k items if i set limit then some of my items are not populated in sharepoint list.

How can I achieve the above requirement using BCS. Any out of the box solution or custom code.

We use javascript client object model mostly in our webpart

Regards

Md Zakir

Export to excel programmatically - save owssvr.iqy to xls file format

$
0
0

Hi,

I am trying to achieve the export to excel functionality using C#.

I am getting the owssvr.iqy, which contains the data from the SharePoint list.

Is it possible to save the file in a xls format, as the file needs to be used by another system for further processing?

I tried to save it as xls format, but there is no data in it. How to fix this?

Thanks

Viewing all 25064 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>