Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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
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
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Error with custom datatype
When I try to transfer a node with a custom datatype on it I get the following error:
The custom datatype stores media id's in xml:
@fileId is a media Id
I have added the following to my courier.config file in the mediaPickerDataTypes section:
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.
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
Hello Antony,
Thanks for the reply, yeah I am using the GUID that I created in my custom data type
is working on a reply...