Copied to clipboard

Flag this post as spam?

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


  • Sean Mooney 131 posts 158 karma points c-trib
    Oct 26, 2010 @ 14:41
    Sean Mooney
    0

    Error with custom datatype

    When I try to transfer a node with a custom datatype on it I get the following error:

    Courier: Can't check mediapickers on property 'test': System.ArgumentException: The value isn't an integer ('<documents><document name="Spec Sheet (US)" file="Test" fileId="1047" /></documents>')     at Umbraco.Courier.BusinessLogic.Messengers.Content.Content2MediaPicker.PreparePackingDependencies(Object parent, String& errorMessage, List`1& dependencies)

     

    The custom datatype stores media id's in xml:

    <documents>
        <document name="Spec Sheet (US)" file="Test" fileId="1047" />
    </documents>

    @fileId is a media Id

    I have added the following to my courier.config file in the mediaPickerDataTypes section:

    <dataType alias="productDocuments" xPath="//document/@fileId">F5123215-6E1C-4965-936A-FAB67C915C76</dataType>

    I have also tried every version of xPath that I can think of:

    /documents/*/@fileId

    //document/@fileId

    //*/@fileId

    //@fileId

    All of which return the same error.

    This is in clean install of Umbraco 4.5.2 and Courier 1.3

    Anyone have any suggestions or ideas to try?

    Can't seem to get any help from Courier Tech support on this, it's becoming very frustrating, especially for a paid product.

     

     

  • Antony Briggs 78 posts 103 karma points
    Oct 29, 2010 @ 10:51
    Antony Briggs
    0

    Hi,

    Are you using the GUID from the cmsDataType table, not the umbraoNode table. There seems to be a lot of GUIDs associated with datatypes! :)

    TTFN

    Ant

  • Sean Mooney 131 posts 158 karma points c-trib
    Oct 29, 2010 @ 14:19
    Sean Mooney
    0

    Hello Antony,

    Thanks for the reply, yeah I am using the GUID that I created in my custom data type

    Public Overrides ReadOnly Property Id() As System.Guid Implements umbraco.interfaces.IDataType.Id

            Get

                Return New Guid("F5123215-6E1C-4965-936A-FAB67C915C76")

            End Get

    End Property

     

Please Sign in or register to post replies

Write your reply to:

Draft