Have you check what type it's returning? If you have Property Value Converters installed it might be already be returning an IPublishedContent.
Also, you should probably check if the property has a value before you try to use it. I don't work with the dynamic syntax often, but it may be throwing an error if the property is empty.
Accessing media inside of media
I am having difficulty accessing media inside of media. Here is the partial view that works
And if I add var image = Umbraco.Media(item.image); it breaks.
Error loading Partial View script (file: ~/Views/MacroPartials/HomePageTiles.cshtml)
What kind of property is item.image? Umbraco.Media() is trying to query for another node.
If you want to get child media items of item, you should be able to just do item.Children.
Image (image), Type: Media Picker
Have you check what type it's returning? If you have Property Value Converters installed it might be already be returning an IPublishedContent.
Also, you should probably check if the property has a value before you try to use it. I don't work with the dynamic syntax often, but it may be throwing an error if the property is empty.
Have you looked at https://our.umbraco.org/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Media-Picker
is working on a reply...