Reputation: 7264
I am trying to do a fairly simple index and transform that is copying a DateTime?
property from the document to the projection.
If there are any documents where the property is null it produces the following error:
System.InvalidOperationException: The transform results function failed.
Doc 'people/3', Error: Cannot convert type 'Raven.Abstractions.Linq.DynamicNullObject' to 'System.DateTime?'
see gist: https://gist.github.com/pdegenhardt/5022737
Is this a bug or am I doing something wrong?
Thanks.
Upvotes: 0
Views: 150
Reputation: 22956
This test is working for me: https://gist.github.com/ayende/5023050
You didn't mention a build, but you need to try the latest.
Upvotes: 1