Resolving the Portal Logger Schedule Error

Overview

Reschedule portal package loggers for an inactive user

Issue

When FormBuilder Rx is installed, a job is automatically created to clean up portal package loggers. This feature helps clean up old records that are generated for troubleshooting if a portal user experiences any issues.

If the Admin user who installed Formbuilder Rx becomes inactive, this job will fail to run in the background and needs to be rescheduled.

An email alert typically will generate as shown below:



This means that the original job was by an inactive user and a few steps need to be taken to resolve.

Solution

The following steps should be conducted by the current System Administrator:

Step 1

To find existing Job go to Setup > Scheduled Jobs – Look for ERx_LoggerCleanUpScheduler

Step 2

Check “submitted by,” in this example it is Erx Admin.

This user could be inactive or no longer have the correct profile which gives Insufficient Privileges. For example if they were changed from a System Administrator to a lesser profile and they don’t have access to the Portal Package Object, with modify/delete access to all related fields.

Step 3

The job needs to be rescheduled with the correct user access, so as the System Administrator, go to Setup > Apex Classes and click on the Schedule Apex button.

Step 4

On the new screen, click on the magnifying glass to find the Apex Job ERx_LoggerCleanUpScheduler and select as shown here: If it doesn’t show up in recent items you can use the search otherwise you can select it from the recent items in the pop up.

In the Job Name Field enter FB Logger Clean Up. And set the schedule to weekly, select all of the days of the week.

For the date range start tomorrow, through the next 5 years and you can set the time to when you would like, in this example it is 1 am.

Save the job.

Step 5

To validate new schedule job and delete old one go to Setup > Scheduled Jobs.