DUAS - SAP Manager does not start "Unable to open file for writing"

book

Article ID: 145512

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

Unable to launch any SAP jobs and the universe.log file contains errors such as these:

|INFO |X|SAP|pid=p.t| uxsap_rsc_evt_file_load   | Event file 'C:\DUASCO\data\data_sap\uxsapevt.dta' not found
|WARN |X|SAP|pid=p.t| uxsap_rsc_evt_file_load   | File 'C:\DUASCO\data\data_sap\uxsapevt.dta' not found or containing invalid data. Will now initialize it.
|INFO |X|SAP|pid=p.t| uxsap_rsc_evt_init        | Creating event file "C:\DUASCO\data\data_sap\uxsapevt.dta"...
|ERROR|X|SAP|pid=p.t| uxsap_rsc_evt_file_save   | Unable to open file 'C:\DUASCO\data\data_sap\uxsapevt.dta' for writing
|ERROR|X|SAP|pid=p.t| uxsap_rsc_evt_file_load   | Cannot initialize history file 'C:\DUASCO\data\data_sap\uxsapevt.dta'.
|ERROR|X|SAP|pid=p.t| uxsap_thread_main         | Cannot initialize the server. uxsap_srv_init returns -1

Cause

Wrong permissions in Manager for SAP data files caused probably by a Server crash / startup with a wrong user.
 

Environment

Release : 6.x

Component : DOLLAR UNIVERSE

Resolution

Rename the following SAP data files:

data_sap/uxsapjnl.dta.(sap activity journal file)
data_sap//uxsapevt.dta (sap event history file)
data_sap/uxsaphst.dta (sap history file)

These files will be automatically recreated when the SAP Manager is started with the correct user permissions.