Formula field not updating when record added via deluge script

Formula field not updating when record added via deluge script


I am using deluge script to insert records to a form but have a problem as the Formula fields in the form are not getting updated. How can I solve this problem ( preferably with retaining the use of the formula fields )?