This job fail

Hi ,
I have scheduled a job and it failed with these errors :
Error running job 62:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 406
ORA-06512: at "SYS.DBMS_JOB", line 272
ORA-06512: at line 1
what i dun understand is that procedure only has < 100 lines and the error is asking me to look at line 406 & 207 .
some info : the procedure getting data from v$sort_usage , v$session , v$sort_segment (not sure if this is an issue but when i manually run it in pl/sql it could be run with no problem but not as a scheduled job)
appreciate ur advise
tks & rdgs

I'm getting the same exact errors. I'm also new to the whole dbms_job package. I've read up a quite a bit on the syntax of the package/parameters and read some threads here, but still no joy.
Since the OP didn't post his code here's how I submitted my job:
declare
v_id number;
p_proc varchar2(2000);
begin
-- netops.run_dump_csv() is a defined procdure that takes no parameters
-- I've tried it with/without the parentheses - shown with
p_proc := 'netops.run_dump_csv()';
dbms_job.submit(job=>v_id, what=>p_proc||';', next_date=>sysdate + 1, interval=>'trunc(sysdate)+1+(1/24)');
commit;
end;
It submits fine but Oracle doesn't like it at runtime. I assume I'm passing some bad values somewhere, but darned if I can tell where. Any help anyone?
Earl
P.S. I assuming I can test this by running:
begin
dbms_job.run(2826); --2826 is the job number
end;
Message was edited by:
Earl

Similar Messages

  • LMS 3.2 Syslog purge job failed.

    We installed LMS 3.2 on windows server 2003 enterprise edition. RME version is 4.3.1. We have created daily syslog purge job from RME> Admin> Syslog> Set Purge Policy. This job failes with the following error.
    "Drop table failed:SQL Anywhere Error -210: User 'DBA' has the row in 'SYSLOG_20100516' locked 8405 42W18
    [ Sat Jun 19  01:00:07 GMT+05:30 2010 ],ERROR,[main],Failed to purge syslogs"
    After server restart job will again execute normally for few days.
    Please check attached log file of specified job.
    Regards

    The only reports of this problem in the past has been with two jobs being created during an upgrade.  This would not have been something you would have done yourself.  I suggest you open a TAC service request so database locking analysis can be done to find what process is keeping that table locked.

  • Email Notification - Oracle Scheduled job failed

    Hi,
    Am on 12.1.3
    DB 11.1.0.7.0
    RHEL - 5.6
    I have created a job as below:
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"DMIG"."INSERT_LATEST"',
    job_type => 'STORED_PROCEDURE',
    job_action => '"APPS"."XXINSERT"',
    start_date => systimestamp at time zone 'America/Chicago',
    job_class => '"DEFAULT_JOB_CLASS"',
    auto_drop => FALSE,
    enabled => TRUE);
    END;
    It was sucessfull ..
    Now my requirement is , i want to get a mail if this job failed ..
    Thanks

    Duplicate post -- https://forums.oracle.com/forums/message.jspa?messageID=9844042

  • Email Notofication - scheduled job fails

    Hi,
    Am on 12.1.3
    DB 11.1.0.7.0
    RHEL - 5.6
    I have created a job in OEM as below:
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"DMIG"."INSERT_LATEST"',
    job_type => 'STORED_PROCEDURE',
    job_action => '"APPS"."XXINSERT"',
    start_date => systimestamp at time zone 'America/Chicago',
    job_class => '"DEFAULT_JOB_CLASS"',
    auto_drop => FALSE,
    enabled => TRUE);
    END;
    It was sucessfull ..
    Now my requirement is , i want to get a mail if this job failed ..
    Thanks

    Check which resource_manager Consumer groups are used.
    What consumer group is used when you run the procedure manually ?
    To what job class belongs the job and which resource group is active for that job class?
    I hope this helps,
    Ronald.

  • Sharepoint 2013 Upgrade Job failed.

    Hello everybody,
    I would like some help with a litle problem that occured after I installed November CU on all of Sharepoint 2013 servers, 1 app, and 2 WFE. I'm unable to get Timer Job Service working on my app server, and that is a big problem. Everytime I restart Timer
    Job Service I get this error - Upgrade Job Appserver :00:00 Failed 12/16/2014 1:33 PM.. And in Event viewer - 
    System
    Provider
    [ Name]
    Microsoft-SharePoint Products-SharePoint Foundation
    [ Guid]
    {6FB7E0CD-52E7-47DD-997A-241563931FC2}
    EventID
    6398
    Version
    15
    Level
    1
    Task
    12
    Opcode
    0
    Keywords
    0x4000000000000000
    TimeCreated
    [ SystemTime]
    2014-12-16T11:33:37.846840300Z
    EventRecordID
    41822872
    Correlation
    [ ActivityID]
    {CD50D69C-AE16-00AA-3D5F-ECACB6C25BFE}
    Execution
    [ ProcessID]
    11368
    [ ThreadID]
    3216
    Channel
    Application
    Computer
    AppServername
    Security
    [ UserID]
    S-1-5-21-1708537768-1425521274-1417001333-40380
    EventData
    string0
    Microsoft.SharePoint.Administration.SPUpgradeJobDefinition
    string1
    13096a33-a91b-4c73-ae6c-e0ba750c5d4e
    string2
    Object reference not set to an instance of an object.
    And, also from Sharepoint Log file -
    Updating SPPersistedObject SPUpgradeJobDefinition Name=job-upgrade. Version: -1 Ensure: False, HashCode: 16745860, Id: 13096a33-a91b-4c73-ae6c-e0ba750c5d4e, Stack:    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()    
    at Microsoft.SharePoint.Administration.SPTimerStore.CheckEnterUpgradeMode(SPFarm farm, Object& jobDefinitions, Int32& timerMode)     at Microsoft.SharePoint.Administration.SPTimerStore.InitializeTimer(Int64& cacheVersion, Object&
    jobDefinitions, Int32& timerMode, Guid& serverId, Boolean& isServerBusy)     at Microsoft.SharePoint.Administration.SPNativeConfigurationProvider.InitializeTimer(Int64& cacheVersion, Object& jobDefinitions, Int32& timerMode,
    Guid& serverId, Boolean& isServerBusy)
    Updating SPPersistedObject SPUpgradeJobDefinition Name=job-upgrade. Version: 2925660 Ensure: False, HashCode: 16745860, Id: 13096a33-a91b-4c73-ae6c-e0ba750c5d4e, Stack:    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()    
    at Microsoft.SharePoint.Administration.SPTimerStore.CheckEnterUpgradeMode(SPFarm farm, Object& jobDefinitions, Int32& timerMode)     at Microsoft.SharePoint.Administration.SPTimerStore.InitializeTimer(Int64& cacheVersion, Object&
    jobDefinitions, Int32& timerMode, Guid& serverId, Boolean& isServerBusy)     at Microsoft.SharePoint.Administration.SPNativeConfigurationProvider.InitializeTimer(Int64& cacheVersion, Object& jobDefinitions, Int32& timerMode,
    Guid& serverId, Boolean& isServerBusy)
    Created upgrade job definition id 13096a33-a91b-4c73-ae6c-e0ba750c5d4e, mode InPlace, entering timer upgrade mode
    Queued timer job Upgrade Job, id {13096A33-A91B-4C73-AE6C-E0BA750C5D4E}
    Updating SPPersistedObject SPUpgradeJobDefinition Name=job-upgrade. Version: 2925663 Ensure: False, HashCode: 6922919, Id: 13096a33-a91b-4c73-ae6c-e0ba750c5d4e, Stack:    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()    
    at Microsoft.SharePoint.Administration.SPUpgradeJobDefinition.Execute(Guid targetInstanceId)     at Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition.ExecuteAdminJob(Guid targetInstanceId)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
    jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)
    The Execute method of job definition Microsoft.SharePoint.Administration.SPUpgradeJobDefinition (ID 13096a33-a91b-4c73-ae6c-e0ba750c5d4e) threw an exception. More information is included below.  Object reference not set to an instance of an object.
    And after that it all fails and Timer Jobs ain't working on App server, on WFE servers eveyrthing is allright and working as it needs to be.
    I searched a lot of forums and different, but none of offered solutions ain't working, and that is not good.
    PS. On development server eveything worked fine, looked through log files and this job run without any errors - Dev server is one in all installation, though.
    If there is somebody who can help me with this, I would appreciate your help.
    TY!

    TY for your response,
    I used the script to update timer job config, but that isnt helping, and, also, this isnt a timer job that is already in timer job definitions. Its the one, that's created and after execution gets deleted, because its grayed out in timer job history page
    and I cant access it. if you look closer at log files I have pasted, you will see that the timer job that is created gets deleted almost immediatily and isnt executed and after that all timer jobs on my App server aint working and this happens every time after
    I restart Timer Service on App server, event ID is 6398, but timer job config cache isnt the problem.
    And, as much as I cant tell from logs - Object reference not set to an instance of an object. - I recieve this error because there is no timer job with ID, that is shown in error, because of this:
    Deleting the SPPersistedObject, SPUpgradeJobDefinition Name=job-upgrade.
    Maybe this information cansomehow help:
    The Execute method of job definition Microsoft.SharePoint.Administration.SPUpgradeJobDefinition (ID 910fbcdc-2691-490e-a9e9-563ae767612e) threw an exception. More information is included below.  Object reference not set to an instance of an object.
    After previous error:
    Exception stack trace:    at Microsoft.SharePoint.Administration.SPUpgradeJobDefinition.Execute(Guid targetInstanceId)     at Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition.ExecuteAdminJob(Guid targetInstanceId)
        at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)
    And after that Upgrade timer job gets deleted and thats it, App server aint working like it nedds to and no Timer job are executed.
    I hope this can help to narrow this problem down to a specific component or help resolve this error.
    Rihards

  • ERROR VNIC creation job failed

    Hello All,
    I have brought oracle VM X86 manager into ops center 12c control. When I try to create a new virtual machine it is throwing the ‘ERROR VNIC creation job failed’ error. Can anybody throw some light over this issue.
    Thanks in advance.
    Detailed log is
    44:20 PM IST ERROR Exception occurred while running the task
    44:20 PM IST ERROR java.io.IOException: VNIC creation job failed
    44:20 PM IST ERROR VNIC creation job failed
    44:20 PM IST ERROR com.sun.hss.services.virtualization.guestservice.impl.OvmCreateVnicsTask.doRun(OvmCreateVnicsTask.java:116)
    44:20 PM IST ERROR com.sun.hss.services.virtualization.guestservice.impl.OvmAbstractTask.run(OvmAbstractTask.java:560)
    44:20 PM IST ERROR sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    44:20 PM IST ERROR sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    44:20 PM IST ERROR sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    44:20 PM IST ERROR java.lang.reflect.Method.invoke(Method.java:597)
    44:20 PM IST ERROR com.sun.scn.jobmanager.common.impl.TaskExecutionThread.run(TaskExecutionThread.java:194)
    Regards,
    george

    Hi friends
    I managed to find the answer. Internally it is has some indexes in the data base level. It still maintains the indexes in the shadow tables. Those all need to be deleted. With our Basis team help I have successfully deleted those and recreated the indexes.
    As Soorejkv said sap note 1283322 will help you on this to understand the scenarios.
    Thank you all.
    Regards
    Ram

  • Hi Post Upgrade Job Failing

    HI All,
    We have recently done the Upgrade from BW 3.1 to BI 7.0
    There is a issue regarding the POST Upgrade
    One Job is failing every day
    The name of the JOB is BI_WRITE_PROT_TO_APPLLOG
    And the Job log is
    06/18/2008 00:04:55 Job started                                                          00           516          S
    06/18/2008 00:04:55 Logon of user PALAPSJ in client 200 failed when starting a step      00           560          A
    06/18/2008 00:04:55 Job cancelled
                                                           00           518          A
    This Job is actually running the program
    RSBATCH_WRITE_PROT_TO_APPLLOG
    when i try to run this program with my user id its working
    but with the other user id which it is schedule its failing giving the messages as mentioned in the job log
    Kindly suggest me
    REgards
    janardhan K

    Maybe it's a dialog and no system or background user. so the job fails.
    Regards,
    Juergen

  • Background job failing

    Experts,
    We have background job running as part of the daily load. The user who created and scheduled the job, his account diabled recently and that makes job failing. I need to keep that job running but can not figure out how to change the user name in the job. For example, 0EMPLOYEE_CHANGE_RUN job based on event  'zemployee' triggers at the end of employee data load. Can you please provide any hint what should I do to change user name or take the ownership to keep this job running. Thanks.
    Regards,
    Nimesh

    Hello,
    Go to SM37--> put job name "0EMPLOYEE_CHANGE_RUN"  and user as "*" to get all users.
    Now select the job with released status>(Menu)Job>change->Steps-> select 1st row > change(pencil icon)>now you see the user name here.
    Change the user name to the user name used for all background job and save.
    Done.
    Happy Tony

  • Error in Control Framework: Background job failed

    Hi Experts,
    One background job failed with job log: Error in Control Framework in ECC 6.0 system; the job is supposed to produce a XML report. Can anyone please give some idea on this why it could happen? One SAP note 893534 has described same kind of issue but in CRM system. That note even cant be implemeneted in ECC 6.0. Any workaround? Is it a BASIS issue here?
    Thanks & Regards,
    SKB

    Hello,
    please check the variant. We had this problem, and when checking the variant I got a shortdump because the variant did not fit to the program (there were problems with subscreens in the selection screen). After adjusting the variant with program RSVARDOC_610 the variant was ok.
    I can not check if this solved the problem because the job runs weekly, and the next job is on Monday. But give it a try...
    HTH,
    Jens Hoetger

  • User, Role, Profile Synchronization Job Fails

    Hi Gurus,
    When I am scheduling a job the User, Role, and Profile Sync. job fails giving an error
    "Cannot assign a java.lang.String object of length 53 to host variable 5 which has JDBC type VARCHAR(40)."
    This happens when the synchronization happens with a portal system. We dont have a ruleset for the portal system, So if I put in a "*", it includes this system and results in the error, If I manually select all other system, it works fine. Is there any way to remove this error so that I can schedule the jobs without having to select every system manually.
    Regards,
    Chinmaya

    Hi,
    As per my knowledge, in the Portal system, you should perform only user sync. Roles/profile sync will not work since portal will have workset roles.
    Please refer SAP Note 1168120, which may help you to understand the limitations
    Hope this helps!!
    Rgds,
    Raghu
    Edited by: Raghu Boddu on Nov 4, 2010 7:39 PM

  • Code in before report getting executed but "Job error is: BIP job failed."

    Customer is executing a BIP job that fires a pl/sql procedure via before report trigger. Procedure is completing successfully. But the BIP report is not getting generated. ESS process ends in error with the following error:
    oracle.as.scheduler.ExecutionErrorException: ESS-07033 Job logic indicated a system error occurred while executing an asynchronous java job for request 604103. Job error is: BIP job failed.
         at oracle.as.scheduler.rp.AsyncFinalizeProcessor.processFinalizeRequest(AsyncFinalizeProcessor.java:131)
         at oracle.as.scheduler.rp.AsyncJavaSysExecWrapper.finalizeExecution(AsyncJavaSysExecWrapper.java:250)
         at oracle.as.scheduler.rp.EndpointProcessor.finalizeExecute(EndpointProcessor.java:1018)
         at oracle.as.scheduler.rp.EndpointProcessor.finalizeExecuteWrapper(EndpointProcessor.java:980)
         at oracle.as.scheduler.adapter.EndpointImpl.finalizeExecute(EndpointImpl.java:561)
         at oracle.as.scheduler.ejb.EssAppEndpointBean.finalizeExecute(EssAppEndpointBean.java:162)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy197.finalizeExecute(Unknown Source)
         at oracle.as.scheduler.ejb.ESSAppEndpoint_t596cy_MDOImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.MDOMethodInvoker.invoke(MDOMethodInvoker.java:35)
         at oracle.as.scheduler.ejb.ESSAppEndpoint_t596cy_MDOImpl.finalizeExecute(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.invokeFinalizeExecute(RequestProcessor.java:8133)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.execStage_Finalize(RequestProcessor.java:7331)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.process_execute(RequestProcessor.java:4813)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.dispatchHandler(RequestProcessor.java:2833)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.processExecuteEvent(RequestProcessor.java:696)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.processUpdateEvent(RequestProcessor.java:1345)
         at oracle.as.scheduler.adapter.ra.WorkUnitWorkerBase.processWork(WorkUnitWorkerBase.java:199)
         at oracle.as.scheduler.adapter.ra.WAWorker.run(WAWorke...
    Any tips/pointers on possible issues? Could this be a template corruption?

    Any reply for the above error please.I do have the same issue.
    Please suggest.

  • Report Job failed when Bursting is used in BI Publisher 11.1.1.5

    The Report Job failed when Bursting is used.
    error message:
    [INSTANCE_ID=aimedap1s.1347261753557] [OUTPUT_ID=1421][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:455)
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
    at oracle.xdo.enterpriseScheduler.util.CheckpointEnabl
    the reproduce steps :
    1. Create a Bursting query in the Data Model
    2. Create Report Job with the option
    "Use Bursting Definition to Determine Output & Delivery Destination" enabled
    3.Schedule the report Job
    4. run the report and found the status of it is problem, the error message above can be found.
    *Note:not all the report job failed when bursting is used, in step1 when set OUTPUT_FORMAT as PDF,HTML,RTF,PowerPoint 2007,
    the report will be run successfully,but when set other OUTPUT_FORMAT that list in the following document, the report can not run successfully.
    http://docs.oracle.com/cd/E21764_01/bi.1111/e18862/T527073T555155.htm
    Adding Bursting Definitions>>Defining the Query for the Delivery XML
    >>OUTPUT_FORMAT
    Can anyone give some advice on how to troubleshooting it?
    Looking forward for your reply
    Regards

    Hello vma.
    I happened to find the solution on 11.1.1.3. With xdo-server.jar, you can use DataProcessor class.
    For details and sample source code:
    http://blog-koichiro.blogspot.com/2011/11/bi-publisher-java-apigenerate-pdf-with.html
    * Not sure if it works on 11.1.1.5 though, I hope this gonna help you.

  • After Applying 11.1 PSU4/5 the Cognos Enterprise Planner Job fails

    We have recently applied Oracle 11.1 PSU5 to our Dev environment. The Application is IBM Cognos Enterprise Planner 8.4 version. The import_queue_tidy job fails with NO ROWS returned. If we use the new DLL to retry within 5 seconds, the job succeeds.
    Error Number: -2147220665
    Line Number: 220
    Description: Unable to get Job Item
    The Job management step failed. An attempt has been made to mark the 'IMPORT_QUEUE_TIDY' Job as CANCELLED. Please rectify the problem and re-create a similar Job.
    No rows returned by statement
    SELECT jobitemguid, identifier, jobitemstateid, sequence FROM indemplwf.P_JOBITEM WHERE jobguid = '{6C44B8D4-AD8F-45E6-9405-EA25E7C2C37F}' ORDER BY sequence
    when executed on connection created with connection string of
    Provider=OraOLEDB.Oracle;Data Source=****;User ID=******;Password=*********;
    See the log file for further details.
    After we retry the job succeeds. This error is happening only after we applied the patches. Has any one seen this happening?
    The wierd thing is we cannot reproduce this error, it happens randomly. The error didn't happen until 5th run. We had same exact issue when we applied PSU4 and due to schedule conflict we had to rollback. Not sure how to track this issue down. Any help is appreciated.
    Edited by: user1260385 on Jan 12, 2011 2:24 PM
    Edited by: user1260385 on Jan 12, 2011 2:29 PM

    Thanks for Responding Sri.
    Yes I did. Just thought to check with the community if they have seen such issues and any idea as to how to troubleshoot this.

  • SQL Server Agent Job Failing on Job Step

    Hi,
    Firstly, apologies if this post has been made in the wrong group.  Running SQL Server 2012.  I'm attempting to add a SQL Server Agent Job which calls a stored procedure that sends a Database Mail message.  The SQL Server and SQL Server Agent
    both run under the NT AUTHORITY\NETWORK SERVICE account.  The Database Mail service has been enabled, and a public profile created.  When running the stored procedure manually, I receive no errors - everything runs as expected and I do receive an
    email containing the expected information.
    I've created the job, job step, job schedule, attached the schedule to the job, and assigned the job to server, all using T-SQL without error.  I've also enabled the mail profile on the SQL Server Agent, and I know that part is working because when
    the job fails, I get an email notification of the failure.
    I've checked the command text in the job step and parsed it within the SQL Job Step Edit window to confirm, it shows as parsing correctly.  However, when I manually run the job itself, I get the following:
    Execution of job failed.  See the history log for details.
    I check the history log and it shows:
    [474] Unable to refresh Database Mail profile Database Mail Profile. (reason: ) (Not a typo, the history log shows no reason)
    [260] Unable to start mail session.
    [396] An idle CPU condition has not been defined - OnIdle job schedules will have no effect
    The command text on the failing job step is as follows:
    DECLARE @date [varchar](10)
    SET @date = CAST(GETDATE() AS [varchar](10))
    EXEC [dbo].[GetExceptions]
    @company = 'MyCompany',
    @checkDate = @date
    With regard to the date value being passed as varchar: This stored procedure is used to check for exceptions against multiple databases on this server (hence the company parameter) via dynamic SQL.  I'd much prefer to use proper data typing but this
    is the only way I could get it to work.
    Does anyone have any suggestions on anything else I could check, or insights into why this is failing?  Any help is greatly appreciated!
    Best Regards
    Brad

    I am not sure if this really helps but I would do follow the below steps:
    1. make sure sql server agent has database mail enabled(rigt click on server agent--properties--alert system--enable database mail and choose right profile.) and RESTART THE SQL SERVER AGENT.(i know you said it i working, but sometimes,  restart the
    sql server agent might fix)
    2. check agent error log and check if any error messages.
    3. run the command text you mentioned in sql server and see if it is working.(i know you said it is working but just to make sure).
    4. make sure sql server agent service user has permissions to run database mail in msdb. check this https://msdn.microsoft.com/en-us/library/ms186358.aspx
    5. Check the output from select * from msdb.dbo.sysmail_log and if it says anything
    6.it does not look like the job log is getting truncated but to make sure, get the job step output to a text file.to do this, edit the job step and on the job step properties click on advanced,  enter path to the output file. this will give the complete
    output for the step.
    Hope it Helps!!

  • Background jobs failing with ABAP/4 processor: RFC_CONVERSION_FIELD

    Hi Guru's,
    Below are the backgroud jobs failing with runtime Error " ABAP/4 processor: RFC_CONVERSION_FIELD" in  solution manager system (solution manager 3.0,SR2). Not sure why all these jobs failing with this dump on of sudden. i haven't made any changes to the system in the recent past.
    BTC_CMS_COLLECTOR
    SAP_APPLICATION_STAT_COLLECTOR
    SESS_Y000001806_COLL_TRANS
    ABAp Dump says that
    Conversion error between two character sets
    What happened?
    Conversion error "ab_rfccon" from character set 4103 to character set 1100.
    When executing a remote function call a conversion error occurred. This
    occurred when receiving or sending the data. The conversion error can
    only appear, when the data is transferred from a Unicode system to a
    non-Unicode system.
    Could some one please share some information if any one experienced the issue. Please note that all of our ECC systems are uni-code systems.
    Thanks & Regards,
    Vinod.

    Hi Vinod
    Just try to understand the purpose of these jobs and may be these Notes will help you
    Note 814707 - Troubleshooting for RFC connections Unicode/non-Unicode
    Note 647495 - RFC for Unicode ./. non-Unicode Connections
    Note 1361970 - Conversion problems during RFC communication

Maybe you are looking for

  • Keep external display full screen on macbook pro

    Anyone know how to get an external display to go full screen and not exit full screen when using the internal display? When you click away from the full screen window or switch applications full screen automatically exits. Is there a way to write a s

  • Hp g62 Black screen caps lock on and wifi button on

    Hello, My friend is having a problem with his laptop hp g62 which is 1 1/2 years old. This happened out of no where and have no idea why. Here is what happens: We power it up, fans turns on, caps lock stays on and Screen stays blank. Again we have no

  • Video formats for Ipad

    Hey, i Have an ipad 2 and am trying to place video files on it. I have been tryig to copy over the same files i use on my ipod clasic but they wont work and said its not compatable. its weird. Thanks for your help.

  • How to divide the UWL tasks listed in "Tasks" in different views ??

    Hello, i want to divide the tasks listed in the UWL in different iviews depening on whether they are tasks from the R3 workflow, tasks from the KM or tasks from the guided procedures ; in other words, i don´t wank one iview showing all the tasks toge

  • CSS simple question

    How to remove the circuit from the CSS config? Having trouble to find the right command.. Thanks!