# Assigning soft reference not compiling with nativization

**URL:** <https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031>\
**Category:** Pipeline & Plugins\
**Tags:** nativization, compiler-error, unreal-engine, Visual-Studio, question, Blueprint\
**Created:** [November 8, 2017, 6:44am UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031 "2017-11-08T06:44:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotodore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lotodore](https://forums.unrealengine.com/u/lotodore)\
**Post date:** [November 8, 2017, 6:44am UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031/1 "2017-11-08T06:44:06Z")

</div>

If I assign a soft reference in Blueprint, packaging with nativization enabled fails with a compiler error.  
I have attached a minimal project to reproduce. Just open the project and package with nativization enabled.  
I’m using Visual Studio 2017 (15.4.1).

 ![219438-soft-ref-assign.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/3/4a348981e49908d9e31808992f2f975c251b419d.png)

[Simple project to reproduce][2]

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [November 8, 2017, 6:25pm UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031/2 "2017-11-08T18:25:19Z")

</div>

Hi lotodore, I opened your project and attempted to package with Nativization set to inclusive and exclusive neither of the two settings were giving me any errors when compiling. Could you provide the errors you are receiving as well as any other information from Output logs. Thank you.

---

<div class="post-metadata">

**Author:** ![lotodore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lotodore](https://forums.unrealengine.com/u/lotodore)\
**Post date:** [November 8, 2017, 6:53pm UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031/3 "2017-11-08T18:53:20Z")

</div>

I’m attaching the full packaging log. The relevant build error is (sorry) in German.

Error C2679 is new or has been changed with Visual Studio 2017, so you might not be able to reproduce it using Visual Studio 2015. Also, I have update 4.1 installed (technical version is 15.4.1).

UATHelper: Packaging (Windows (64-bit)): D:\Projects\Unreal\SoftRefNativizeBug\Intermediate\Plugins\NativizedAssets\Windows\Game\Source\NativizedAssets\Private\TestPlayerController\_\_pf1010915279.cpp(402): error C2679: Binärer Operator “=”: Es konnte kein Operator gefunden werden, der einen rechtsseitigen Operanden vom Typ “TSoftObjectPtr” akzeptiert (oder keine geeignete Konvertierung möglich)

The log is exactly from the sample project which I already attached.

[removed log for reasons of privacy. please contact me if you still need it.]

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [November 9, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031/4 "2017-11-09T16:31:26Z")

</div>

Hey lotodore, after some testing I was able to reproduce the packaging error you were receiving and have crated a ticket for it.

You can follow it here [UE-52205](https://issues.unrealengine.com/issue/UE-52205)

Thank you.

---

<div class="post-metadata">

**Author:** ![lotodore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lotodore](https://forums.unrealengine.com/u/lotodore)\
**Post date:** [November 9, 2017, 9:14pm UTC](https://forums.unrealengine.com/t/assigning-soft-reference-not-compiling-with-nativization/409031/5 "2017-11-09T21:14:15Z")

</div>

Thank you for the quick response and for creating the ticket!
