I am getting object reference not set to instance at sc_translate in preview mode

Scriban error - Object reference not set to an instance of an object

When i checked the scriban loc (10,57), it is sc_translate

What can be the possible reason for this?

  • At a guess, you have a code error in your BioScriban template on line 10, chr 57. Without more information on what your code looks like and what you have tried to resolve this so far, its hard to tell what the problem is.
    – Richard Seal
    Commented Mar 15, 2023 at 19:02
  • I have sc_translate at this location trying to fetch dictionary value. sc_translate able to give value in front end page and experience editor. This error is just coming in Preview mode. Commented Mar 15, 2023 at 19:14
  • @JagmeetKaur did you find any resolution to this one? Commented Apr 6, 2023 at 1:50
  • nope, havn't found yet Commented Apr 18, 2023 at 20:02

1 Answer 1


If you are utilizing the shared site concept of SXA, please ensure that none of your Site node and Site Dictionary Folder are set to the "Never Publish" state. If they are, it may have an impact and lead to issues with the "sc_translate" functionality.

I encountered a similar issue in one of my projects, and this approach resolved it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.