Unable to perform write text and create word document

When we are executing the bot from Uipath agent (after published the bot) the bot not performing write text file and create word document activities.