# Cannot access private member declared in class 'UNetPushModelHelpers'

**URL:** <https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084>\
**Category:** Blueprint\
**Tags:** UE4-25, unreal-engine, unrealengine4, bug-report, Blueprint, question\
**Created:** [June 1, 2020, 8:06am UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084 "2020-06-01T08:06:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [June 1, 2020, 8:06am UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/1 "2020-06-01T08:06:35Z")

</div>

Hi,  
4.25 fails to nativize any Blueprint Actors with replicated values. This is a disaster! I tried to open a Bug report, but I cannot find the bug that I filed :s  
Anyone knows a workaround?

The below steps produce:

1. Create Empty project.
2. Create BluePrint Actor, name it BP\_zzz.
3. In BP\_zzz, set Replication-\>Replicates to “True” (Checked).
4. In BP\_zzz, add Integer Variable, name it IntVal.
5. In BP\_zzz, set the IntVal-\>Replication to “Replicates”.
6. In BP\_zzz, inside the EventGraph, add EventBeginPlay then connect the execution line to Set the IntVal to “100”.
7. Create and Open New Level called L\_zzz.
8. Drag-drop to add BP\_zzz actor to the L\_zzz.
9. Open project settings-\>Maps & Modes-\>Set Editor Startup Map and Game Default Map to L\_zzz.
10. Open project Settings-\>Packaging-\>Set Build Configuration to “Shipping”, Full Rebuild and For Distribution to “True”,
11. Open Project Settings-\>Packaging-\>Blueprint Nativization Method to “Inclusive”.
12. Create New C++ Class from PlayerController, name it CppMyPlayerController.
13. File-\>Package Project-\>Windows (64-bit).

* * *

```
BUILD FAILED: Command failed (Result:10001): C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe "C:\Users\...\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UAT_XGE.xml" /Rebuild /NoLogo /ShowAgent /ShowTime /no_watchdog_thread. See logfile for details: 'xgConsole-2020.05.31-13.10.13.txt'
AutomationTool exiting with ExitCode=1 (Error_Unknown)

LOG:
** For zzzEmpty-Win64-Shipping
SharedPCH.Engine.ShadowErrors.cpp (0:43.17 at +0:00)
Module.NativizedAssets.cpp (0:28.29 at +0:43)
C:/Users/.../Documents/Unreal Projects/zzzEmpty/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/BP_zzz__pf1010915279.cpp(515): error C2248: 'UNetPushModelHelpers::MarkPropertyDirtyFromRepIndex': cannot access private member declared in class 'UNetPushModelHelpers'
C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime/Engine/Public/Net/NetPushModelHelpers.h(21): note: see declaration of 'UNetPushModelHelpers::MarkPropertyDirtyFromRepIndex'
C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime/Engine/Public/Net/NetPushModelHelpers.h(9): note: see declaration of 'UNetPushModelHelpers'
```

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [June 2, 2020, 8:30am UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/2 "2020-06-02T08:30:53Z")

</div>

Bump bump bump?

---

<div class="post-metadata">

**Author:** ![timokyyro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/timokyyro/32/987327_2.png) [@timokyyro](https://forums.unrealengine.com/u/timokyyro)\
**Post date:** [June 25, 2020, 4:41pm UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/3 "2020-06-25T16:41:38Z")

</div>

I have the same problem.

---

<div class="post-metadata">

**Author:** ![nriot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nriot](https://forums.unrealengine.com/u/nriot)\
**Post date:** [June 30, 2020, 9:44pm UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/4 "2020-06-30T21:44:01Z")

</div>

Same problem.

---

<div class="post-metadata">

**Author:** ![JackP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackP](https://forums.unrealengine.com/u/JackP)\
**Post date:** [July 1, 2020, 6:29am UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/5 "2020-07-01T06:29:58Z")

</div>

Hi, this has been fixed for the 4.25.2 release, but you can quickly solve the issue by removing the private: on line 18 of Engine\Public\Net\NetPushModelHelpers.h

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [July 7, 2020, 4:49pm UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/6 "2020-07-07T16:49:24Z")

</div>

Thank you for the reply. Will this work even with the engine that was downloaded via the Epic client? (NOT GitHub-\>SourceCode-\>compile)

---

<div class="post-metadata">

**Author:** ![zgzg2020](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zgzg2020](https://forums.unrealengine.com/u/zgzg2020)\
**Post date:** [July 7, 2020, 6:13pm UTC](https://forums.unrealengine.com/t/cannot-access-private-member-declared-in-class-unetpushmodelhelpers/466084/7 "2020-07-07T18:13:40Z")

</div>

I tested your suggestion, and I got this error:  
UATHelper: Packaging (Windows (64-bit)): Creating library C:\Users\*_\Documents\Unreal Projects\NatMyProject\Binaries\Win64\NatMyProject-Win64-Shipping.lib and object C:\Users\*_\Documents\Unreal Projects\NatMyProject\Binaries\Win64\NatMyProject-Win64-Shipping.exp  
UATHelper: Packaging (Windows (64-bit)): Module.NativizedAssets.cpp.obj : error LNK2019: unresolved external symbol "public: static void \_\_cdecl UNetPushModelHelpers::MarkPropertyDirtyFromRepIndex(class UObject _,int,class FName)" (?MarkPropertyDirtyFromRepIndex@UNetPushModelHelpers@@SAXPEAVUObject@@HVFName@@@Z) referenced in function “public: void \_\_cde  
cl ABP\_zzz\_C\_\_pf1010915279::bpf\_\_ExecuteUbergraph\_BP\_zzz\_\_pf\_0(int)” (?bpf\_\_ExecuteUbergraph\_BP\_zzz\_\_pf\_0@ABP\_zzz\_C\_\_pf1010915279@@QEAAXH@Z)  
UATHelper: Packaging (Windows (64-bit)): C:\Users\*_\Documents\Unreal Projects\NatMyProject\Binaries\Win64\NatMyProject-Win64-Shipping.exe : fatal error LNK1120: 1 unresolved externals
