# BPNativization packaging error with SetListItems node

**URL:** <https://forums.unrealengine.com/t/bpnativization-packaging-error-with-setlistitems-node/471052>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, packaging-projects, question\
**Created:** [September 10, 2020, 4:35am UTC](https://forums.unrealengine.com/t/bpnativization-packaging-error-with-setlistitems-node/471052 "2020-09-10T04:35:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monblur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monblur](https://forums.unrealengine.com/u/Monblur)\
**Post date:** [September 10, 2020, 4:35am UTC](https://forums.unrealengine.com/t/bpnativization-packaging-error-with-setlistitems-node/471052/1 "2020-09-10T04:35:00Z")

</div>

Please help, anyone. These last two little errors are preventing me from packaging and it’s been driving me crazy for days now. My project is BP-based and I have hundreds of nodes and functions that compile and package fine, except for one place where I use UE4’s ListView’s **SetListItems** node and another where I use the basic **ArraySwap** node (could likely get by without the ArraySwaps). The function containing the SetListItems node is in a BPFunctionLibrary, and it also executes a RegenerateAllEntries node. All it does is those two nodes. I’m not sure, but the issue seems to be with the nativized code having access to a private member of UListItem. I’ve looked at the code in VS, but am not sure what to do. It’s critical that I keep this function, as the game wouldn’t be playable without it. If anyone knows of a workaround, or how to fix the access problem, I’d be very grateful. I’ve thought about trying to recreate the same function with a C++ (static?) function, and maybe expose it to blueprints for calling, but I’m not confident with C++, and I’m afraid I’d break more things. If someone could show me an easy way to recreate the function with C++, I’d be willing to try that as well. Thanks in advance.

Here are, I think, all the relevant lines from the packaging output log. I can post more if need be:

UATHelper: Packaging (Windows (64-bit)): [5/53] Module.NativizedAssets.18\_of\_30.cpp  
UATHelper: Packaging (Windows (64-bit)): C:/Users/Javeed/Desktop/Aldoreen/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/LogicxRefreshUI\_\_pfG1010915279.cpp(1986): error C2248: ‘UListView::BP\_SetListItems’: cannot access private member declared in class ‘UListView’  
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE\_4.25\Engine\Source\Runtime\UMG\Public\Components/ListView.h(229): note: see declaration of ‘UListView::BP\_SetListItems’  
UATHelper: Packaging (Windows (64-bit)): C:\Users\Javeed\Desktop\Aldoreen\Intermediate\Plugins\NativizedAssets\Windows\Game\Intermediate\Build\Win64\UE4\Inc\NativizedAssets\LogicxCombatEvents\_\_pfG1010915279.generated.h(11): note: see declaration of ‘UListView’

UATHelper: Packaging (Windows (64-bit)): C:/Users/Javeed/Desktop/Aldoreen/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/PlayerCreaturesDisplay\_\_pf1489439355.cpp(1024): error C2039: ‘Array\_Swap’: is not a member of ‘FCustomThunkTemplates’  
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE\_4.25\Engine\Source\Runtime\Engine\Public\GeneratedCodeHelpers.h(86): note: see declaration of ‘FCustomThunkTemplates’  
UATHelper: Packaging (Windows (64-bit)): C:/Users/Javeed/Desktop/Aldoreen/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/PlayerCreaturesDisplay\_\_pf1489439355.cpp(1024): error C3861: ‘Array\_Swap’: identifier not found
