You must configure a database connection for the storage table and relational dictionary if you use them with substitution masking.
Configure the database connections in the Workflow Manager. Select a relational connection object for the IDM_Dictionary connection and the IDM_Storage connection on the Mapping tab of the session properties.