jgmagnus has allready pointed at your problem (in the firts paragraph of his answer).
It is evident that your select
... (select NEW_PRODUCT_LOCATION_ID
2 from story_product_map where
3 story_product_map.STORY_ID = news_storytest.story_id);
is sometimes not returning any rows because there are some STORY_ID values in NEWS_STORIYTEST which do not have maching values in STORY_PRODUCT_MAP.STORY_ID). In such cases you are trying to set a NULL value for a not-null column.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Bookmarks