Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Site workflow import error

Last post 08-29-2012, 10:56 AM by Naheed. 7 replies.
Sort Posts: Previous Next
  •  07-24-2012, 12:35 AM 24202

    Site workflow import error

    I used these steps to create a new site workflow:

    • Create a new site workflow
    • Declared variables for listItemID and queryResults
    • Added item for querying a list based on filter criteria and hold results in queryResults
    • Added foreach action that goes through the queryResults
    • Added call web service action that executes for each of the queryResults and starts another list workflow for each of the results

    Saved and published the workflow and it works fine.

    I now export the workflow into a .nwf file and delete it from the site.

    I then create a new site workflow and import the previously exported .nwf file and at this point I get this error:

     

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Nintex.Workflow.Activities.Adapters.NWQueryListAdapter.OnImport(NWActionConfig activityConfig, ImportContext importContext) +803
       Nintex.Workflow.ActivityReference.OnImport(NWActionConfig activityConfig, ImportContext importContext) +137
       Nintex.Workflow.WorkflowRenderer.AddConfigToRender(NWActionConfig config, HtmlContainerControl parentControl, Guid listId, SPContentTypeId contentTypeId, ImportContext importContext, UserDefinedActionCollection userDefinedActions, SPWeb web) +431
       Nintex.Workflow.WorkflowRenderer.RenderSnippet(NWActionConfigurations configs, Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +281
       Nintex.Workflow.PartialWorkflows.WorkflowPart.GetRenderedHtml(Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +237
    
    [NWRenderWorkflowException: Error rendering workflow segment.]
       Nintex.Workflow.PartialWorkflows.WorkflowPart.GetRenderedHtml(Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +445
       Nintex.Workflow.ApplicationPages.ImportWorkflow.btnSubmit_Click() +2131
       Nintex.Workflow.ApplicationPages.ImportWorkflow.RaisePostBackEvent(String eventArgument) +52
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    

    The list workflow exports and imports fine however the site workflow doesn't.


    Any suggestions on how to resolve this?

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Nintex.Workflow.Activities.Adapters.NWQueryListAdapter.OnImport(NWActionConfig activityConfig, ImportContext importContext) +803
       Nintex.Workflow.ActivityReference.OnImport(NWActionConfig activityConfig, ImportContext importContext) +137
       Nintex.Workflow.WorkflowRenderer.AddConfigToRender(NWActionConfig config, HtmlContainerControl parentControl, Guid listId, SPContentTypeId contentTypeId, ImportContext importContext, UserDefinedActionCollection userDefinedActions, SPWeb web) +431
       Nintex.Workflow.WorkflowRenderer.RenderSnippet(NWActionConfigurations configs, Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +281
       Nintex.Workflow.PartialWorkflows.WorkflowPart.GetRenderedHtml(Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +237
    
    [NWRenderWorkflowException: Error rendering workflow segment.]
       Nintex.Workflow.PartialWorkflows.WorkflowPart.GetRenderedHtml(Guid listId, SPContentTypeId contentTypeId, Boolean massageIdsForCurrentItem, ImportContext importContext, SPWeb web) +445
       Nintex.Workflow.ApplicationPages.ImportWorkflow.btnSubmit_Click() +2131
       Nintex.Workflow.ApplicationPages.ImportWorkflow.RaisePostBackEvent(String eventArgument) +52
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    

    The list workflow exports and imports fine however the site workflow doesn't.


    Any suggestions on how to resolve this?

  •  08-13-2012, 9:28 AM 24471 in reply to 24202

    Re: Site workflow import error

    I am getting exact same error? Any suggestions?
  •  08-13-2012, 9:38 AM 24474 in reply to 24471

    Re: Site workflow import error

    Hi all,

    i can't try to reproduce this.  Can you tell me what build of NW2010 you are using?

  •  08-13-2012, 1:47 PM 24483 in reply to 24474

    Re: Site workflow import error

    hi, we are using Nintex Workflow 2010 (2.3.4.0) version in both environments.
  •  08-20-2012, 5:16 PM 24581 in reply to 24483

    Re: Site workflow import error

    Hi Naheed and Neville,

    I suggest you contact Nintex Support on this issue and we can try to reproduce this.  I haven't had much luck reproducing this in my test environment.

    Have you tried this with another site workflow (simple one)?

  •  08-21-2012, 1:31 PM 24610 in reply to 24581

    Re: Site workflow import error

    Ok. This does not happen with simple workflow. Try adding "QueryList" action in the workflow, that seems to cause the problem. I will test further to give exact details.
  •  08-21-2012, 1:54 PM 24612 in reply to 24610

    Re: Site workflow import error

    Hi Naheed,

    Query List will have a hard coded list ID in the CAML query, so that is probably the cause.  Because in the new location, that list does not exist.

  •  08-29-2012, 10:56 AM 24815 in reply to 24612

    Re: Site workflow import error

     

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems