UE4 build Error_UnknownCookFailure

Hi,
I can play my project in the editor perfectly. But when i try to build it, i got build error which prevent me to do it. Strange error like failed to load this file or this file. But UE4 is looking to the correct path.
I’ve checked all my blueprint to see if there was an error inside, but unreal doesn’t detect any.
Here is my build logs:
link text

I’ve also tried to remove the binaries, save and intermediate file but without results.
If you have any idea, Thanks in advance.

EDIT: I also run a checkmap on each level and i didn’t get any error (except i need to rebuild light on one or two level)

Hi Zetfire,

You are experiencing an ensure error;

UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.02.21-10.59.18:561][  0]LogOutputDevice:Error: Ensure condition failed: AttachmentRules.LocationRule == EAttachmentRule::KeepRelative && AttachmentRules.RotationRule == EAttachmentRule::KeepRelative && AttachmentRules.ScaleRule == EAttachmentRule::KeepRelative [File:D:\Build\++UE4+Release-4.14+Com
pile\Sync\Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp] [Line: 1603]
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.02.21-10.59.18:571][  0]LogOutputDevice:Error: AttachToComponent when called from a constructor is only setting up attachment and will always be treated as KeepRelative. Consider calling SetupAttachment directly instead.

You are setting an attachment rule to some component that the engine doesn’t like you doing (doesn’t state which component).

Hope that helps. Cheers,

Not really, could be a multitude of reasons

Thanks it was the problem indeed, i had two attachto in some cpp constructor. I just replace them with setupAttachment.
But do you have any idea why i still have a lot of warning saying cannot find this or this asset?