Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Nov 01, 2012 @ 15:01
    Bo Damgaard Mortensen
    0

    Exception in custom workflow

    Hi all,

    I'm currently working on a custom workflow for Contour which posts values from the form to a WCF service.The problem is that I keep getting an exception telling me the provided GUID in the constructor is not a valid guid.

    Exception:

    umbracoForms:Forms: Can't initialize provider 'myWorkflow.MyWorkflow': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). 

    And my constructor looks like this:

    public MyWorkflow()
            {
                Log.Add(LogTypes.Debug, 1234, "My custom workflow called");                
    
                this.Name = "My workflow";
                this.Id = new Guid("ff092629-03ac-43aa-b665-e3469d8fb83a");
                this.Description = "This is a test";
            }

    Anyone got a hint on why this is happening? To me, the GUID string looks like a GUID should ;-)

    Thanks in advance.

    All the best,

    Bo

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Nov 01, 2012 @ 15:52
    Tom Fulton
    0

    Hi Bo,

    Weird!  Just tested here and no issues with that same code.  Any other code that's missing?

    What version of Contour?

    -Tom

  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Nov 01, 2012 @ 16:10
    Bo Damgaard Mortensen
    0

    Hi Tom,

    I just had a 10 minutes break from the PC and when I looked at it again, it was one of the other GUIDs in my code that had a $ in it (since I copied it from the DOM) - sigh! ;-) I guess a small break now and then helps before rushing to the forums posting (quite) obvious questions.

    Everything works just as it should now. For future reference: doublecheck those GUIDs :-)

    Thanks again!

    - Bo

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies