<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/49892.aspx</link><pubDate>Sat, 12 Dec 2009 02:58:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49892</guid><dc:creator>Catherine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=49892</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp;Sorry for late replying.&lt;/p&gt;
&lt;p&gt;Actually I&amp;#39;m still new to SharePoint.&amp;nbsp; About whether my content type is created via the UI or CAML, I actually don&amp;#39;t know as I just follow some website tutorial in creating the task form.&amp;nbsp; Only that I got add some code programmatically to enable some function in the task form.&lt;/p&gt;
&lt;p&gt;However, thanks a lot for your help in giving me any possible suggestions in debugging the problem.&amp;nbsp; I will continue to search for any other alternative way to solve the problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Have a nice day.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48857.aspx</link><pubDate>Tue, 10 Nov 2009 11:46:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48857</guid><dc:creator>stombiztalker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48857</wfw:commentRss><description>&lt;p&gt;If it were me, I would install SharePoint Explorer from codeplex and dig into my content type to make sure my Guid is correct.&amp;nbsp; Is this a content type you created via the UI or is it a CAML based content type? If it&amp;#39;s not CAML based then I suppose you are getting the guid value correctly.&amp;nbsp; Still though, I can&amp;#39;t think of anything else that would be causing this.&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48838.aspx</link><pubDate>Tue, 10 Nov 2009 05:46:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48838</guid><dc:creator>Catherine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48838</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; I already tried to debug the workflow and checked the submit button contains &amp;quot;submit using a data connection&amp;quot; action or not.&lt;/p&gt;
&lt;p&gt;The submit button got the action of submit using data connection.&amp;nbsp; In debugging the workflow, there is an error which bother me for few weeks and i still failed to solve it.&amp;nbsp; It is system.nullexception.&amp;nbsp; Below is the message pop up during debugging:&lt;/p&gt;
&lt;p&gt;An exception of type &amp;#39;System.NullReferenceException&amp;#39; occurred in ApprovalActivities.dll but was not handled in user code&lt;/p&gt;
&lt;p&gt;Additional information: Object reference not set to an instance of an object.&lt;/p&gt;
&lt;p&gt;I set my breakpoint at taskLeaveStatus&amp;nbsp;in onTaskChanged:&lt;/p&gt;
&lt;p&gt;public string taskLeaveStatus;&lt;/p&gt;
&lt;p&gt;string guidField=taskGuidField.toString(); //Bring from workflow through replicator activity: (e.Activity as ManageApproval).taskGuidField=guidField.toString();&lt;/p&gt;
&lt;p&gt;taskLeaveStatus=this.AfterProperties.ExtendedProperties[new Guid(guidField)].toString(); //Breakpoint at here&lt;/p&gt;
&lt;p&gt;It shows me the error.&amp;nbsp; Last few times I tried using field name but it failed and same error occurred.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So I wonder what is the error here as for the field it suppose contains the value bring from the IP task form.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48795.aspx</link><pubDate>Mon, 09 Nov 2009 11:26:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48795</guid><dc:creator>stombiztalker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48795</wfw:commentRss><description>&lt;p&gt;Have you actually debugged into the workflow and put a breakpoint in the onTaskChanged event to see that it is not getting hit?&lt;/p&gt;
&lt;p&gt;The only other thing I can think of (if the event is not getting fired) is that in your IP form, in the rules for your Submit button, you have somehow accidentally deleted the &amp;#39;submit using a data connection&amp;#39; action. I&amp;#39;ve done that before accidentally whenever making changes to the data connection, I didn&amp;#39;t realize it would remove it from the rule action.&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48787.aspx</link><pubDate>Mon, 09 Nov 2009 02:14:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48787</guid><dc:creator>Catherine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48787</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; I have tried with the method and it still failed.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The onTaskChanged is in my another activity which i then drag into the replicator activity in my workflow.&amp;nbsp; After i add the workflow into MOSS, I run and submit the task which is in progress.&amp;nbsp;Suppose it would be completed and display the next assignee name.&amp;nbsp; But the status still display &amp;quot;In Progress&amp;quot; and error occurred for the worklfow.&amp;nbsp; I checked back the log file and find the error with null exeception reference : object reference not set to an instance of an object at workflow.onTaskChanged.&lt;/p&gt;
&lt;p&gt;I build one column (Result) in the document library where i store my absence request form which is controlled using content type.&amp;nbsp; When i try again with the workflow then same error occurred again.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;There is one field in my task form named Result.&amp;nbsp; Suppose when i click the submit button the value in the &amp;quot;Result&amp;quot; field on the task form should be submitted to the document library but it didnt.&amp;nbsp; The task form is built using InfoPath 2007 with some C# behind it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am searching for another method to retrieve the approved/rejected status from the task form submitted&amp;nbsp;by user.&amp;nbsp; This problem has been bothered me for more than one week.&amp;nbsp; Any suggestion on the problem ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48783.aspx</link><pubDate>Sat, 07 Nov 2009 19:52:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48783</guid><dc:creator>stombiztalker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48783</wfw:commentRss><description>&lt;p&gt;That is what fixed the problem for me. I had to do something like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;this.taskAfterProperties.ExtendedProperties[new Guid(&amp;quot;....guid&amp;quot;)].ToString();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/48739.aspx</link><pubDate>Fri, 06 Nov 2009 10:01:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48739</guid><dc:creator>Catherine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=48739</wfw:commentRss><description>&lt;p&gt;I face the same problem here.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have an infopath task form with managed code (C#) behind it.&amp;nbsp; I submit the form&amp;nbsp;to&amp;nbsp;network location.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I put AfterProperties.ExtendedProperties[field name in infopath form].ToString() in onTaskChanged to get the value from the infopath task form submitted but it appears to have NullReferenceException.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;May i know what should i do?&amp;nbsp; I already try to retrieve the value by putting the field guid instead of using the field name but it failed&lt;/p&gt;</description></item><item><title>Re: InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/46411.aspx</link><pubDate>Sat, 29 Aug 2009 16:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46411</guid><dc:creator>stombiztalker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=46411</wfw:commentRss><description>&lt;p&gt;Logic error, workflow was completing before the task had a chance to even be edited!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>InfoPath task form won't fire OnTaskChangedEvent</title><link>https://www.infopathdev.com:443/forums/thread/46406.aspx</link><pubDate>Sat, 29 Aug 2009 03:12:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46406</guid><dc:creator>stombiztalker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=46406</wfw:commentRss><description>&lt;p&gt;I know for a fact that I&amp;#39;ve created IP task edit forms before and clicked on their Submit buttons and stopped on a breakpoint in an OnTaskChanged event, but for the life of me, I can&amp;#39;t get it to work now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a VS2008 sequential workflow with a very simple CreateTask-&amp;gt;While-&amp;gt;OnTaskChanged-&amp;gt;CompleteTask mechanism. My IP form both submits and receives data (via ItemMetadata.xml) and a simple submit data connection.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve check the TaskContentTypeID, task numbers,URNs, workflow.xml, feature.xml and so on. &lt;/p&gt;
&lt;p&gt;When my form appears, I see the data I put in there via my extended properties. When I click on the submit button, the ontaskchanged event does not get fired. Next time I open the form, all the data has been wiped clean.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What am I missing here? This should work as far as I can tell unless I&amp;#39;m missing some small piece.&lt;/p&gt;</description></item></channel></rss>