# Reroute from TexObjectParam to TextureSample error

**URL:** <https://forums.unrealengine.com/t/reroute-from-texobjectparam-to-texturesample-error/389524>\
**Category:** Asset Creation\
**Tags:** workaround, unreal-engine, question\
**Created:** [March 30, 2017, 8:35pm UTC](https://forums.unrealengine.com/t/reroute-from-texobjectparam-to-texturesample-error/389524 "2017-03-30T20:35:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [March 30, 2017, 8:35pm UTC](https://forums.unrealengine.com/t/reroute-from-texobjectparam-to-texturesample-error/389524/1 "2017-03-30T20:35:54Z")

</div>

###How to reproduce:

1. Create a material
2. Set it’s domain to User Interface (don’t know if it matters)
3. Create a Texture Object **Parameter**
4. Connect it into a Texture Sampler node
5. Connect any Texture Sampler output into a material output pin (so the TextureSampler gets evaluated)
6. Create a reroute node between the TexObject and the TextureSampler nodes

###Result:  
The compiler complains about improper texture type (see bottom of attached image), even if both nodes use same Sampler Type.

###Expected:  
No problems, like when the TextureObject is not a parameter (it works normally with reroute).

###Current workaround:  
Use no reroutes.

 ![132267-material-reroute-bug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/a/ecab37db89c2698ad0d307d8cdbd1b9e5143accf.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [March 31, 2017, 4:17pm UTC](https://forums.unrealengine.com/t/reroute-from-texobjectparam-to-texturesample-error/389524/2 "2017-03-31T16:17:40Z")

</div>

Hey Rvillani,

Thanks for taking the time to report this issue. I was able to verify your report a went ahead and entered a bug ticket to have it addressed.

**[UE-43521](https://issues.unrealengine.com/issue/UE-43521)**

Once the issue has been addressed by our engineers it will be reflected on the public issues tracker. Please keep track of this issue in order to find out when it will be fixed.

Thanks,
