Workflow Soluiton

 View Only
  • 1.  No data handler found for type

    Posted Oct 24, 2011 10:12 AM

    Hi all,

     

    Firstly, in my workflow, I have a Customized Data Type called "Acesso". Then, I created 2 variables, "LinhaAcesso", that is a single variable, and "AllAcesso", that is a array. (The two are "Acesso" type)

     

    My intencion is fill up information in "LinhaAcesso", and after add the "LinhaAcesso" in the "AllAcesso" array, because this array will have many types of "LinhaAcesso".

     

    But when i use the "Add item in collection" component, i get an exception, with this message error:

     

    - ErrorMessage = "no data handler found for type Acesso"

     

    Anyone knows what this can be?

    I tried put a "Add new data element" component to declare the Array, but nothing.

     

    Thanks all.



  • 2.  RE: No data handler found for type

    Posted Oct 25, 2011 03:23 AM
      |   view attached

    Hi Joao,

    You will have to create a DataHandler Class in your code. An example of how you can create an DataHandler is attached to this message. 

    Basically, you need to create a Class that inherits from AbstractDataHandler and implements the interface IMultipleValueDataHandler.

    You will have to do this for all your classes that you want to use in Workflow. 

    Regards,
    Jinesh Udani

    Attachment(s)

    txt
    DataHandler.txt   399 B 1 version


  • 3.  RE: No data handler found for type

    Posted Oct 26, 2011 02:12 PM

    Thanks for the response Jinesh,

     

    But where and how can I do this in Workflow?

    There is some componet or configuration?

     

    Thanks

     



  • 4.  RE: No data handler found for type

    Posted Oct 26, 2011 04:34 PM

    Jinesh is referring to when you "handcode" components using Visual Studio.

    Can you attach the integration project?



  • 5.  RE: No data handler found for type

    Posted Oct 26, 2011 06:05 PM

    What are the datatypes for the two properties that you have in that User Defined Type?



  • 6.  RE: No data handler found for type

    Posted Oct 27, 2011 08:12 AM
      |   view attached

    Reecardo and Jinesh,

     

    I looked into the c# file of the integration library and extracted the Acesso's DataHandler class. It looks very similar than the code posted by Jinesh.

    I'm attaching the file.

     

    So, I believe that the datahandler exists, but my integration library isn't fully working. If I construct a similar, but new lntegration Library it may work, but i won't make this, because this library have severals sql components and UDT's structs.

    Any idea how can I solve this?

     

    Aryanos,

     

    All fields are "Text" type.

     

     

    Really, thanks all.

    Attachment(s)

    txt
    AcessoDataHandler_0.txt   644 B 1 version


  • 7.  RE: No data handler found for type
    Best Answer

    Posted Oct 27, 2011 10:31 AM

    Did you try to change the default namespace of the integration library?

    I noticed a bit similar problems when I had conflict between class definitions within same namespace in different integration libraries.



  • 8.  RE: No data handler found for type

    Posted Oct 28, 2011 02:19 PM

    AnaMan,

     

    Thanks for the reply.

    I changed the intregation library name, in the advanced Options, recompiled and imported again, and Works!

     

    I didin't have any datatype problems since the change.

     

    Thanks all,