The Error: System.InvalidCastException: Specified cast is not valid. at Umbraco.Forms.Data.Storage.RecordStorage.GetRecord(Object id) in d:\TeamCity\buildAgent\work\f25907cf379d8816\Umbraco.Forms.Core\Data\RecordStorage\RecordStorage.cs:line 83 at Umbraco.Forms.Library.GetRecord(String recordId) in d:\TeamCity\buildAgent\work\f25907cf379d8816\Umbraco.Forms.Core\Data\Library\Library.cs:line 72 --------------------------------------------------------------------------------------------------------------------------------------------------------------
So i think the problem is that the 'RecordStorage.GetRecord(Object id)' method only works with a Guid as input. And 'Library.GetRecord(String recordId)' gives it an String.
Can you please fix this? I need this for an project.
BUG! XSLT umbraco.contour:GetRecord('String id')
Hey guys,
I'm getting an error with the Contour in my xslt file.
Umbraco v 4.5
Contour v 1.0.12
--------------------------------------------------------------------------------------------------------------------------------------------------------------The xslt:
<xsl:variable name="record" select="umbraco.contour:GetRecord('62b8ac58-5b68-40d8-83f8-dc55429bd61a')"/>
The Error:
System.InvalidCastException: Specified cast is not valid.
at Umbraco.Forms.Data.Storage.RecordStorage.GetRecord(Object id) in d:\TeamCity\buildAgent\work\f25907cf379d8816\Umbraco.Forms.Core\Data\RecordStorage\RecordStorage.cs:line 83
at Umbraco.Forms.Library.GetRecord(String recordId) in d:\TeamCity\buildAgent\work\f25907cf379d8816\Umbraco.Forms.Core\Data\Library\Library.cs:line 72
--------------------------------------------------------------------------------------------------------------------------------------------------------------
So i think the problem is that the 'RecordStorage.GetRecord(Object id)' method only works with a Guid as input. And 'Library.GetRecord(String recordId)' gives it an String.
Can you please fix this? I need this for an project.
Comment author was deleted
Hey Niels, thanks for reporting this! I've just added the bug to our issue tracker and we'll look into it
Regards,
Tim
is working on a reply...