SharePoint Designer 2010 Flux de travail: ne peut pas ajouter une colonne recherche dans un processus de travail personnalisé

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/14523

Question

Dans un flux de travail que je construis avec SPD, je veux utiliser un processus de travail personnalisé. L'un de son champ est « Catégorie », qui doit être sélectionné dans une liste de catégorie.

Je crée une colonne de recherche du site à cette liste de catégorie. La colonne de recherche fonctionne très bien car il peut être utilisé dans une liste personnalisée.

Dans SPD, si j'ajoute cette colonne au type de contenu de tâche personnalisée, la forme ne se ouvre pas. Voici l'erreur:

SharePoint Foundation   General 8kh7    High    Impossible de terminer cette opération.  Essayez de nouveau.    6b5d55f8-57a6-497c-ade1-54e9f29b0c6d
InfoPath Forms Services Maintenance 82fv    Critical    The form template failed to load. (User: domain\me, Form Name: Template, IP: , Request: http://here/_layouts/WrkTaskIP.aspx?List=43851640-6a43-4ec4-bd4a-819bb5742731&ID=43&Source=http://lhere/_layouts/WrkStat.aspx?List=268fd43b-539f-40e4-8276-9e0beb5f93b7&WorkflowInstanceID=%257bE9EABD7B%252dBD68%252d4F8B%252d9A64%252d8CFE62F01AEE%257d&IsDlg=1&Web=ccde4a39-5d1b-4d07-b80a-5acc91845572, Form ID: urn:schemas-microsoft-com:office:infopath:workflowInitAssoc:-AutoGen-2011-06-14T11:41:59:647Z, Type: NullReferenceException, Exception Message: Object reference not set to an instance of an object.) 6b5d55f8-57a6-497c-ade1-54e9f29b0c6d
InfoPath Forms Services Runtime 8gec    Exception   Unhandled exception when rendering form System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterListDataProvider.GetRelativeList(WebHolder webHolder, Boolean impersonatedIdentity, Document document)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterListDataProvider.GetList(WebHolder webHolder, Boolean impersonatedIdentity, Document document, String siteUrl, Boolean isUrlSetThroughOM, Guid listId)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterListDataProvider.<>c__DisplayClasse.<Execute>b__3(Boolean impersonatedIdentity)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterUtil.Impersonate(DataAdapterInformation adapterInfo, String userName, String userDomain, String password, CodeToRunUnderImpersonation codeToRun)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterUtil.Impersonate(DataAdapterInformation adapterInfo, String userName, String password, CodeToRunUnderImpersonation codeToRun)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterListDataProvider.Execute(String siteUrl, Guid listId, SPContentTypeId contentTypeId, Document document, DataAdapterListDataProvider documentAdapter, Boolean useDcl, XPathNavigator queryFields, XPathNavigator resultFields, Boolean isListItemEditing, Boolean discoveryOnly, Int64& auxDomSize)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterListDataProvider.ExecuteInternal(XPathNavigator queryFields, XPathNavigator resultFields, Boolean useListItemMode)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.QueryDataOnLoad(DataAdapter documentDataAdapter, DataObject documentDataObject)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.ExecuteInitOnLoadForDataObjects()     at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.LoadSolutionAndDocument(HttpContext context, Solution solution, DocumentMetaInformation documentMetaInformation, OnInitializeCallback onInitializeCallback, OpenParameters openParameters)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.OpenDocumentWithSolution(HttpContext context, SPSite contextSite, Solution solution, DocumentMetaInformation documentMetaInformation, OnInitializeCallback onInitializeCallback, OpenParameters openParameters)     at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.NewFromSolution(HttpContext context, SPSite contextSite, Solution solution, DocumentMetaInformation documentMetaInformation, Boolean disableFirstRequestOptization, OnInitializeCallback onInitializeCallback, OpenParameters openParameters)     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.DataBindInternal(SolutionMetaInformation solutionMetaInformation, DocumentMetaInformation documentMetaInformation, String absoluteSolutionLocation, Boolean hasCloseHandler, Document& document)     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.StartNewEditingSession()     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.EnsureDocument(EventLogStart eventLogStart)     at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.<>c__DisplayClass8.<LoadDocumentAndPlayEventLog>b__5()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock) 6b5d55f8-57a6-497c-ade1-54e9f29b0c6d
SharePoint Server   Unified Logging Service c91s    Monitorable Watson bucket parameters: SharePoint Server 2010, ULSException14, 41b7c39f "infopath forms services", 0e00129b "14.0.4763.0", fd34ba92 "microsoft.office.infopath.server", 0e001408 "14.0.5128.0", 4cadaf53 "thu oct 07 13:30:27 2010", 00001bf9 "00001bf9", 00000044 "00000044", 4a6d3421 "nullreferenceexception", 38676563 "8gec"    6b5d55f8-57a6-497c-ade1-54e9f29b0c6d

Pas très utile: (

Si j'ajoute à la place une colonne entière, « CategoryID », et personnaliser le formulaire pour remplir une liste déroulante avec les éléments de la liste de la catégorie, cela fonctionne.

  1. sont prises en charge dans des colonnes consultation processus de travail personnalisé SPD
  2. ce que je fais mal?

thx à l'avance

Était-ce utile?

La solution

j'ai pu résoudre le problème en procédant comme suit:

  1. créer un champ de formulaire de tâches de type entier « Catégorie »
  2. dans la « avant tâche événement assigné », je mis en place le champ de la catégorie de la tâche à ma valeur actuelle de l'élément
  3. dans IP, je créer une connexion de données à ma liste cible, décochant l'extrait à la case de charge
  4. ajouter une règle à la charge de forme, définissant le champ de requête « ID » de ma catégorie source de données dans le domaine de la tâche en cours « CategoryID »
  5. toujours dans les règles de charge de forme, ajouter une requête de connextion de données pour mettre à jour les catégories datasource

de travail, avec beaucoup de travail (non réutilisables dans les formes)

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