Question

Je tente de créer un flux de travail SharePoint qui crée un nouvel élément dans une liste externe à l'aide de "Créer un article dans [Nom de la liste externe]" Action disponible dans SharePoint Designer.

Actuellement, je continue à obtenir une erreur indiquant que "le flux de travail n'a pas pu créer l'élément de la source de données externe. Assurez-vous que l'utilisateur dispose d'autorisations pour accéder à la source de données externe et à créer des éléments." L'ID utilisateur associé est le "compte système" (SharePoint \ System).

De certaines recherches que j'ai faites, j'ai été amenée à croire que le flux de travail utilise le compte WebApp SP chaque fois qu'il crée un nouvel élément dans une liste externe. Comme décrit à Comment authentifier BDC au système externe? , j'ai accordé des autorisations d'objet Web WebApp et des autorisations de Métadata Store dans le type de contenu externe et dans le système externe. Je lui ai également accordé des autorisations sur la liste externe et le serveur SQL de la liste externe. Cela n'a pas fonctionné pour moi, cependant.

à un moment donné, j'ai changé les SSS par défaut de mon "application de service de magasin sécurisé partitionné" sur une personnalisation que j'ai créée. Cela a fonctionné, mais il a également brisé quelques autres systèmes sur SharePoint de mon organisation, j'ai donc dû revenir à la SSS partitionnée. J'aimerais créer une nouvelle application cible sur les SSS partitionnées, mais, en raison du partitionnement, je ne peux pas faire cela. Existe-t-il un moyen d'utiliser mon système externe utiliser l'application cible sur mon SSS personnalisé, même s'il n'est plus le SSS par défaut?

Y a-t-il d'autres solutions potentielles que je pourrais survenir?

Était-ce utile?

La solution

EDIT: I updated my solution because I found a more reliable way to fix the problem:

For anyone else that has this problem in the future, I figured out what the issues were.

With regards to the SHAREPOINT\system account, it turns out that is more or less an alias used by other accounts (usually service accounts) in SharePoint. In this case, it is the account used by my application pool. Reference: About SHAREPOINT\system - what account is it? how is it determined?.

The workflow appears to actually use whatever account the designated SSS or BDC is using. In my case, my "Partitioned Secure Store Service" that my SharePoint site was using by default was running the SP_serviceapps account. I determined this by launching my IIS Manager on my SharePoint server, and finding the appropriate SSS among the various application pools. The SP_serviceapps account was listed as the identity.

Due to running into some difficulties getting my SSS to work, I decided to instead use my BDC identity. In SharePoint Designer, I first determined the service account used by my custom Business Data Connectivity service (SP_serviceapps). Second, I gave both the Sp_serviceapps and SHAREPOINT/System accounts "Full Control", "Design", and "Contribute" permissions in my External List. This is probably overkill, but I wanted to be sure that they were allowed to access the External List. Further, they originally appeared to have "Full Control" permissions, but after clicking on "Edit User Permissions" for each, the resulting dialog box did not have any permissions checked. After this, I enabled RevertToSelf on my SharePoint server: BCS problem with AuthenticationMode and RevertToSelf. Last, I went to Central Admin -> Application Management -> Manage Service Application-> [Name of business data connectivity service] -> External Systems (from view in the ribbon) -> [External System Name] -> [External System Instance Name] -> Set Authentication Mode to "BDC Identity".

Last (and this was a dumb mistake on my part), I had an incorrectly mapped identifier in my External Content Type. I had mistakenly selected "VendorEmail" as the identifier when I meant to select "VendorName". Later, when I created my "Create Item" operation, I mapped "VendorName" to identifier without noticing that it was being mapped to the mistakenly-selected "VendorEmail" and not "VendorName". I fixed this problem by creating a new External Content Type that had the correct identifiers.

After this, my workflow successfully wrote to my External List.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top