Publishing fails if I add images in component which are not azure synced yet. When I replace the images with azure sync ones, publishing/previewing works fine. It's a DD4T based application.
I can see the following error log in Tridion event viewer or template builder (Same in ECL logs):
Debugging was started in process 'TcmTemplateDebugHost' with id 39800
GeneralUtils: 230055.4173 - started Transform
ComponentBuilder: start BuildComponent with component Smart continence - Simple box - 82 (tcm:145-17395-v0) and link level 5
FieldBuilder: found component link field named internal_link with global followLinksPerField property set to false OR followLink set to true for this field
ComponentBuilder: start BuildComponent with component Breathable - Page intro (tcm:145-16924) and link level 4
FieldBuilder: found component link field named ImageVideo with global followLinksPerField property set to false OR followLink set to true for this field
ComponentBuilder: start BuildComponent with component ecl:0-cel-4308-image-file (tcm:145-16381) and link level 3
EclProcessor: Retrieving ECL item for ECL Stub Component: tcm:145-16381
EclProcessor: Retrieved ECL item for ECL Stub Component 'tcm:145-16381': ecl:145-cel-4308-image-file
Object reference not set to an instance of an object.
at DD4T.Templates.Base.Utils.EclProcessor.PublishBinaryContent(IContentLibraryMultimediaItem eclItem, String eclStubComponentId) in C:\projects\dd4t-tridiontemplates\source\DD4T.Templates.Base\Utils\BinaryPublisher.cs:line 203
at DD4T.Templates.Base.Utils.EclProcessor.ProcessEclStubComponent(Component eclStubComponent) in C:\projects\dd4t-tridiontemplates\source\DD4T.Templates.Base\Utils\BinaryPublisher.cs:line 106
at DD4T.Templates.Base.Utils.BinaryPublisher.PublishMultimediaComponent(Component mmComponent, BuildProperties buildProperties) in C:\projects\dd4t-tridiontemplates\source\DD4T.Templates.Base\Utils\TridionConfigurationManager.cs:line 87
at DD4T.Templates.Base.Builder.ComponentBuilder.BuildComponent(Component tcmComponent, Int32 currentLinkLevel, BuildManager manager) in C:\projects\dd4t-tridiontemplates\source\DD4T.Templates.Base\Builder\KeywordBuilder.cs:line 33
at DD4T.Templates.Base.Builder.BuildManager.BuildComponent(Component tcmComponent, Int32 currentLinkLevel) in C:\projects\dd4t-tridiontemplates\source\DD4T.Templates.Base\Builder\BuildProperties.cs:line 30
at DD4T.Templates.Base.Builder.FieldBuilder.BuildField(ItemField tcmItemField, Int32 currentLinkLevel, BuildManager manager) in :line 0
I checked images, I don't see anything wrong with the images apart from no CDN path, but it should be ok, right? At least it should allow it to publish it however we would see an empty image on site.