# Block Type Indentifier

**URL:** <https://forum.litium.com/t/block-type-indentifier/784>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [April 9, 2019, 9:47am UTC](https://forum.litium.com/t/block-type-indentifier/784 "2019-04-09T09:47:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [January 28, 2020, 1:44pm UTC](https://forum.litium.com/t/block-type-indentifier/784/8 "2020-01-28T13:44:39Z")

</div>

I believe it’s the same problem as with `PageModel` from this thread:

> [@Problem with mapping in scheduled task](https://forum.litium.com/t/problem-with-mapping-in-scheduled-task/837/2):
>
> The mapping for the PageModel is using the information from RouteRequestLookupInfo to see if the page is published for the specified channel. If the the page not is published it will return null, the same if the RouteRequestLookupInfo not is set in the RouteRequestLookupInfoAccessor. (same problem as you have in the linked thread.

The solution there was to set the `RouteRequestLookupInfo` for the accessor.

> [@Problem with mapping in scheduled task](https://forum.litium.com/t/problem-with-mapping-in-scheduled-task/837/4):
>
> In general you should inject RouteRequestLookupInfoAccessor and then do something like \_routeRequestLookupInfoAccessor.RouteRequestLookupInfo = new RouteRequestLookupInfo{ Channel = channelToWorkOn };. It can also be other settings that you need to set to make it work all the way.

I tested with a simple controller by mapping with or without first setting the `RouteRequestLookupInfo`. Without I would get null and vice versa.

---

_[View the full topic](https://forum.litium.com/t/block-type-indentifier/784)._
