1

사용자가 휴가 요청을 만들어 SharePoint 2010 양식 라이브러리에 저장할 수있는 InfoPath 2010 양식이 있습니다. InfoPath 2010 양식에서 SharePoint 열을 업데이트하지 않습니다.

사용자가 양식을 제출

는 라이브러리의 Vacation Status 열의 값은 사용자 관리자에게 이메일을 전송하는 흐름을 트리거링 Pending로 설정된다.

관리자는 전자 메일의 링크를 클릭하여 브라우저에서 양식을 열고 승인을 클릭합니다. 그러면 Vacation Status 열의 값이 Approved으로 변경되어 요청이 승인되었음을 알리는 이메일을 사용자에게 다시 보내는 워크 플로가 트리거됩니다.

문제는 양식에 문제가있는 것입니다. 관리자가 승인을 클릭하면 Vacation Status 열의 값을 Approved으로 설정하지만 열이 업데이트되지 않는 InfoPath 양식 규칙을 트리거해야합니다. 버튼을 클릭 할 때 Modified 열이 업데이트되지 않아 어느 것도 SharePoint에 업로드되지 않습니다.

InfoPath 양식에는 Approve 단추를 클릭 할 때 실행되는 규칙이 있으며 해당 동작은 VacationStatus 필드의 값을 Approved으로 설정하는 것입니다. 이 필드는 제출시 SharePoint 라이브러리로 승격됩니다.

이벤트 뷰어에서 오류가 생성되지 않습니다. ULS 로깅을 활성화하고 아래에 추출물을 첨부했습니다. 이 정도면 충분하다고 생각합니다. 너무 자세하게 게시물을 방해하지 않으려 고합니다.

Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
XmlFormView: Entering OnInit 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
XmlFormView: Leaving OnInit 
FormServerPage OnInit Enter: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
GlobalStorage.Enter: New context - {F888E1A1-20CA-470d-A2F4-498A9ECD1C67} Total contexts - 1 
GlobalStorage.Leave: Old context - {F888E1A1-20CA-470d-A2F4-498A9ECD1C67} Total contexts after Leave - 0 
Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
Calling GlobalStorage.SetItem with index SiteAndWebCache value type SiteAndWebCache. 
XmlFormView: Entering OnDataBinding 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.SetItem with index BusinessLogicAssemblies value type Dictionary`2. 
Calling GlobalStorage.SetItem with index EditingSessionId value type String. 
Creating document with editingSessionId: 1cff78abc351429e8df5c5733d481407_90175d3f7fa04d9384760909b98c30a6 
Calling GlobalStorage.SetItem with index TimeZoneId value type UInt16. 
DataObject.Deserialize.Load for XML name: finished in:00:00:00.0005151. 
Calling GlobalStorage.SetItem with index CultureData value type RequestCultureData. 
Calling GlobalStorage.SetItem with index FormState value type FormStateBag. 
Calling GlobalStorage.SetItem with index XmlForm value type XmlFormHost. 
XmlForm.PlayEventLog: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 finished in:00:00:00.0003444. 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
XmlFormView: Leaving OnDataBinding 
FormServerPage OnInit Leave: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
FormServerPage CreateChildControls Enter: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
FormServerPage CreateChildControls Leave: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
XmlFormView: Entering Render 
Calling GlobalStorage.SetItem with index GlobalPageObjectsRendered value type Boolean. 
DataObject.Serialize.Save for XML name: finished in:00:00:00.0009733. 
Disposing all cached sites. 
XmlFormView: Leaving Render 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.RemoveAllDecumentOnly! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.RemoveAll! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
FormServerPage EndProcessRequest: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
Request: Posting back to the Postback Page (XmlHttp). 
Calling GlobalStorage.SetItem with index GlobalPageObjectsRendered value type Boolean. 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
Calling GlobalStorage.SetItem with index SiteAndWebCache value type SiteAndWebCache. 
Calling GlobalStorage.SetItem with index CultureData value type RequestCultureData. 
Calling GlobalStorage.SetItem with index TimeZoneId value type UInt16. 
Calling GlobalStorage.SetItem with index BusinessLogicAssemblies value type Dictionary`2. 
Calling GlobalStorage.SetItem with index EditingSessionId value type String. 
Creating document with editingSessionId: 1cff78abc351429e8df5c5733d481407_90175d3f7fa04d9384760909b98c30a6 
DataObject.Deserialize.Load for XML name: finished in:00:00:00.0005092. 
Calling GlobalStorage.SetItem with index FormState value type FormStateBag. 
Calling GlobalStorage.SetItem with index XmlForm value type XmlFormHost. 
PostbackPage.PlayEventLog:http://intranet/_layouts/Postback.FormServer.aspx finished in:00:00:00.0002112. 
Abandoning state for request. Form Template: urn:schemas-microsoft-com:office:infopath:Vacation-Form:-myXSD-2012-06-28T00-57-45 
Not persisting state for request due to previous errors. Form Template: urn:schemas-microsoft-com:office:infopath:Vacation-Form:-myXSD-2012-06-28T00-57-45 
Disposing all cached sites. 
Calling GlobalStorage.RemoveAll! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 

나는 이것을 분명히 설명하기를 희망한다. 나는 결코 InfoPath 전문가는 아닙니다. 이것은 더 이상 사용할 수없는 계약자가 개발 한 코드입니다. 그것은 꽤 오랫동안 잘 작동했다. 그리고 멈췄다. 나는 그것에 영향을 미쳤을 수있는 구성 변경, 사용 권한 등을 모르고있다. 그러나 양식을 몇 번 재배포했습니다. 이 문제는 해결되지 않았지만 SharePoint에 양식 데이터를 처음 제출할 때 아무 문제가 없습니다.

+0

'승인 됨'이 클릭되면 기본 양식 제출과 동일한 데이터 연결을 통해 제출됩니까? –

+0

당신의 대답은 올바른 방향으로 나를 가리켰다. 어떻게 든 제출 규칙이 버튼에서 삭제되었습니다. 나는 당신의 제안이 내가 확인하도록 자극하지 않았다면 그것을 발견하지 못했을 것입니다. 고맙습니다. –

+0

나는 그것을 적절한 답으로 써서 그렇게 표시 할 수 있습니다. 이 질문을하는 다른 사람들이 더 쉽게 이해할 수 있습니다. BTW, 향후 SharePoint 관련 질문에 http://sharepoint.stackexchange.com을 사용할 수 있습니다. –

답변

0

데이터 연결을 확인하십시오. Approve 규칙에 사용 된 (및 실패한) 것은 아마도 기본 제출 데이터 연결과 다릅니다.

관련 문제