Error : No source video was found - Entry in process

When we upload a new video to Kaltura and Kaltura process the video and transcodes this video. After all this process, we load below script to show video in Kaltura player.

let scrTag = ‘’ +
" ”;

Here we are passing partnerID which is very well defined.

When this script loads for the first time for newly uploaded video then we are getting error as partnerId is undefined in below request which is made internally by kWidget library.

and on UI part, we are getting message as Error : No source video was found - Entry in process.

Next time if we load this script for same entry id, video plays very well…

Any idea why we are getting this error message and how we can resolve same.

Thanks in Advance.