Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6848215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:50:27+00:00 2026-05-27T00:50:27+00:00

I am getting an error running this code. IEnumerable<Activity> activityList = WorkflowInspectionServices.GetActivities(activityCurrent); if (activityList.Count()

  • 0

I am getting an error running this code.

IEnumerable<Activity> activityList = WorkflowInspectionServices.GetActivities(activityCurrent);


if (activityList.Count() <= 0)

I have a number of workflow that I want to go through it’s activities. I have no problem meanwhile the activities that I use in the workflows are code activities or native activities. The problem comes when I use another workflow in the workflow (I hope I am making sense with that)

The error is in the activityList.Count() which is Cannot create unknown type ‘{clr-namespace:....PhysicalInbound}Destination’.

Actually it works if I put the content of the “subworkflow” in the “Parent” workflow. My guess it is that have to do with the imports but I have not been able to figure it out so far : S

StackTrace:

   at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Activities.XamlIntegration.FuncDeferringLoader.FuncFactory`1.Evaluate()
   at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings)
   at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
   at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
   at System.Activities.WorkflowInspectionServices.<GetActivities>d__0.MoveNext()
   at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)

Thanks for your time,

Joan.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:50:27+00:00Added an answer on May 27, 2026 at 12:50 am

    I had the same problem. In my case it was because I put both Parent workflow and “subworkflows” in the same assembly.

    If it is your case, try putting them in another assembly as you do with activities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running this code using oozie workflow and getting type mismatch error: public
I'm getting this error when running this code: Fatal error: Uncaught exception 'DOMException' with
I'm getting this error message whiile running a Webservice I'm working on. it builds,
I'm getting this error when trying to access my webservice running inside tomcat. Caused
I'm running IIS 6.0 on Windows 2003 and started getting this error: Compiler Error
I'm running Valgrind and I'm getting the following error (this is not the only
I'm getting the error message when running the following code from a C# console
I'm getting an Automation error upon running VBA code in Excel 2007. I'm attempting
I am getting several 'undefined' errors when running this code in JSHint: MERLIN.namespace('MERLIN.http'); MERLIN.http
I am getting this error when running a save insert/update command: SEVERE: null java.sql.SQLIntegrityConstraintViolationException:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.