While deploying Workflow on MOSS 2007 List getting "the Visual studio 2008 workflow.initiationdata property is null."
-
2011년 12월 1일 목요일 오후 1:19
HI,
I am working on Sharepoint 2007. I have created a workflow using Visual Studio 2008. It is multilevel approval workflow. I am using content type WebPart form (there is no Infopath form).
The problem is:
when I am deploying Workflow I am getting the following error:
I am getting this error on "this.Workflow.initiationdata" please refer the below code lines:
XmlSerializer serializer = new XmlSerializer(typeof(Forms.FormData)); XmlReader reader = new XmlTextReader(new System.IO.StringReader(this.workflowProperties.InitiationData)); Forms.FormData assocForm = null; assocForm = (Forms.FormData)serializer.Deserialize(reader);I am using custom content type that are installed on server already and we are using those content types. So I think there is no issue in content types.
Following is my Workflow.xml :
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Workflow Name="AdvancePaymentWorkflow" Description="A workflow to process Advance Payment Request" Id="38af7ac9-f38b-4f36-92f3-349cd4a1e7dd" CodeBesideClass="AdvancePaymentWorkflow.AdvancePaymentWorkflow" CodeBesideAssembly="AdvancePaymentWorkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6cee5fd7ad77b390" TaskListContentTypeId="0x01080105" StatusUrl="_layouts/WrkStat.aspx"> <Categories/> <MetaData> </MetaData> </Workflow> </Elements>
Below I am giving Feature.xml of my content type:<?xmlversion="1.0"encoding="utf-8"?> <!-- _lcid="1033" _version="12.0.3412" _dal="1" --> <!-- _LocalBinding --><!----> <Elementsxmlns="http://schemas.microsoft.com/sharepoint/"> <ContentTypeID="0x01080105"Name="TravelTaskWorkflowContentType"Group="WorkflowTask"Description="Create a Custom Workflow Task"Version="0"Hidden="TRUE"> <FieldRefs> <FieldRefID="{5EFDBEE4-8E06-4de8-A681-6600AE3F13C4}"Name="Comment"DisplayName="Comments"/> </FieldRefs> <XmlDocuments> <XmlDocumentNamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> <FormUrlsxmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> <Edit>_layouts/TravelTaskWFCT.aspx</Edit> </FormUrls> </XmlDocument> </XmlDocuments> </ContentType> </Elements>- As we can see in above there is no problem in xml files.
- Content types are installed and working fine on the same same site. So no problem in content type.
- Then where is the problem?
Thanks in advance.
- 편집됨 Khan Abubakar 2011년 12월 1일 목요일 오후 1:20
- 편집됨 Khan Abubakar 2011년 12월 1일 목요일 오후 1:21
- 편집됨 Khan Abubakar 2011년 12월 1일 목요일 오후 1:24
- 편집됨 Khan Abubakar 2011년 12월 1일 목요일 오후 3:23 Editing (Formating)
모든 응답
-
2012년 4월 20일 금요일 오전 6:22
Hi,
I resolved this issue.
Problem:
1) I was using the web Part to add the item. this web part was developed in C#.
2) when I was adding the item at the same time we were passing "the workflow details" from form to workflow to initialize.
3) The error was in the form and we were unable to pass the data from form to Workflow. So the reason was an error.
Hope this will help anyone other.
- Khan Abubakar
- 답변으로 표시됨 Khan Abubakar 2012년 4월 20일 금요일 오전 6:22

