UNiagaraFunctionLibrary::SpawnSystemAttached

Hello, can someone help me with the function UNiagaraFunctionLibrary::SpawnSystemAttached ? I can easily call in C++ the function UNiagaraFunctionLibrary::SpawnSystemAtLocation, but the first function throw an error: “no instance of overloaded function matches the argument list” And no matter what parameters and values I use.

Check examples call UNiagaraFunctionLibrary::SpawnSystemAttached

Here: /Engine/Plugins/FX/Niagara/Source/NiagaraAnimNotifies/Private/AnimNotifyState_TimedNiagaraEffect.cpp

Line: 25

return UNiagaraFunctionLibrary::SpawnSystemAttached(Template, MeshComp, SocketName, LocationOffset, RotationOffset, EAttachLocation::KeepRelativeOffset, !bDestroyAtEnd);

Here: /Engine/Plugins/FX/Niagara/Source/NiagaraAnimNotifies/Private/AnimNotify_PlayNiagaraEffect.cpp

Line: 113

ReturnComp = UNiagaraFunctionLibrary::SpawnSystemAttached(Template, MeshComp, SocketName, LocationOffset, RotationOffset, EAttachLocation::KeepRelativeOffset, true);

If any problem let me know. My discord Andrew Bindraw#9014