tags:

views:

39

answers:

1

I have a custom workflow activity that does get registered. However, when I go to add it to a workflow, I get a "The requested record was not found or you do not have permission sufficient permission to view it" error. I'm an admin and it was registered using the same user account. There is no information in the trace file. What could be causing this?

UPDATE: Please note that this is occurring not at runtime, but at design time. I.e. I can't actually add this activity to a workflow. When I try I get the above error.

UPDATE 2: I simplified my code to this and still get the same message:

using System;
using System.Workflow.ComponentModel;
using Microsoft.Crm.Sdk;
using Microsoft.Crm.Workflow;
using MicroFour.StrataFrame.Data;

namespace Fox.Crm.CustomWorkflowActivities
{
  [CrmWorkflowActivity( "Get Entity Link", "Fox Tools" )]
  public class GetEntityLinkActivity
    : Activity
  {
    public static readonly DependencyProperty FullNameProperty = DependencyProperty.Register( "FullName"
                                                                                           , typeof( string )
                                                                                           , typeof( GetEntityLinkActivity ) );

    [CrmInput( "FullName" )]
    public string FullName
    {
      get { return (string)GetValue( FullNameProperty ); }
      set { SetValue( FullNameProperty, value ); }
    }

    public static readonly DependencyProperty MessageProperty = DependencyProperty.Register( "Message"
                                                                                           , typeof( string )
                                                                                           , typeof( GetEntityLinkActivity ) );

    [CrmOutput( "Message" )]
    public string Message
    {
      get { return (string)GetValue( MessageProperty ); }
      set { SetValue( MessageProperty, value ); }
    }

    protected override ActivityExecutionStatus Execute( ActivityExecutionContext executionContext )
    {
      this.Message = string.Format( "Hellow {0}", this.FullName );

      //-- Return that we successfully determined URL and link.
      return ActivityExecutionStatus.Closed;
    }
  }
}
A: 

Try this link. It deals with an error that seems similar to yours.

Focus