# Sepasoft SPC: Can't Schedule Sample Entry with "Once at Production Start/End" Interval

**URL:** <https://forum.inductiveautomation.com/t/sepasoft-spc-cant-schedule-sample-entry-with-once-at-production-start-end-interval/41800>\
**Category:** Ignition\
**Tags:** sepasoft\
**Created:** [December 27, 2020, 11:33am UTC](https://forum.inductiveautomation.com/t/sepasoft-spc-cant-schedule-sample-entry-with-once-at-production-start-end-interval/41800 "2020-12-27T11:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iavor.karakashev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/iavor.karakashev/32/70482_2.png) [@iavor.karakashev](https://forum.inductiveautomation.com/u/iavor.karakashev)\
**Post date:** [December 27, 2020, 11:33am UTC](https://forum.inductiveautomation.com/t/sepasoft-spc-cant-schedule-sample-entry-with-once-at-production-start-end-interval/41800/1 "2020-12-27T11:33:16Z")

</div>

I’m trying to trigger sample entry when product code of a machine location changes. I’m using system.production.utils.setLocationProductCode() /.cancelLocationProductCode() to change the product code. The SPC module reflects the change. The corresponding OPC tag is set accordingly and all samples using timed intervals store the correct product code. Unfortunately, the “Once at Production Start” is not triggered. Do I have to set anything else ( e.g. some tag).
