The other I got the following error when I was trying to login to Primavera “Exception EAccess Violation in module PM.exe at 0043BFBF. Access Violation at address 0083BFBF in module PM.exe”. This error is not that common but I found that this was happening due to Orphan codes in the database and could be solved by running the following queries (Please backup your database and run them at your own risk).

1)  truncate table obsproj;
declare @ret int, @msg varchar(1000)
exec obsproj_full_rebuild @ret OUTPUT, @msg OUTPUT

Note: Full rebuilds could take up to 30 minutes or more depending on complexity of OBS.

2) SELECT wbs_id from projwbs where delete_session_id is not null;

(The database will return a wbs id. Make a note of this wbs id as you will need it to run the next query)

3) update projwbs set delete_session_id=null, delete_date=null where wbs_id in (wbs_id values from Query 2);

4) Update userdata set user_data = null where topic_name = ‘pm_settings’ and user_id in (select user_id from users where user_name = ”);

where <username> is the user’s login id for Project Management and wbs_id is the id that you got while running query 2