![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ |
#3
| |||
| |||
|
|
-----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . |
#4
| |||
| |||
|
| Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . |
#5
| |||
| |||
|
|
-----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . |
#6
| |||
| |||
|
| Executed as user: hra\sqlagent. ...ing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution . The step failed. -----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . |
#7
| |||
| |||
|
|
-----Original Message----- Hmmmm This may have to do with Outlook not having a logged on user at the time. From what I read of Outlook and running unattended most people swap this out and use CDO. Can you do this? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl... Executed as user: hra\sqlagent. ...ing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution . The step failed. -----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . . |
#8
| |||
| |||
|
|
Never used CDO. I will look into adding some code to log onto OUTLOOK from the job. Thanks -----Original Message----- Hmmmm This may have to do with Outlook not having a logged on user at the time. From what I read of Outlook and running unattended most people swap this out and use CDO. Can you do this? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl... Executed as user: hra\sqlagent. ...ing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution . The step failed. -----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . . |
#9
| |||
| |||
|
|
Never used CDO. I will look into adding some code to log onto OUTLOOK from the job. Thanks -----Original Message----- Hmmmm This may have to do with Outlook not having a logged on user at the time. From what I read of Outlook and running unattended most people swap this out and use CDO. Can you do this? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl... Executed as user: hra\sqlagent. ...ing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution . The step failed. -----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . . |
#10
| |||
| |||
|
|
-----Original Message----- actually, correcting myself, CDONTS would be more appropiate "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:bde901c3ecc0$02d75bd0$a501280a (AT) phx (DOT) gbl... Never used CDO. I will look into adding some code to log onto OUTLOOK from the job. Thanks -----Original Message----- Hmmmm This may have to do with Outlook not having a logged on user at the time. From what I read of Outlook and running unattended most people swap this out and use CDO. Can you do this? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b82901c3ec34$0c600620$a601280a (AT) phx (DOT) gbl... Executed as user: hra\sqlagent. ...ing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 4096 Error Source= Microsoft Outlook Error Description: Could not complete the operation because the service provider does not support it. Error on Line 51 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution . The step failed. -----Original Message----- What is the error you get? -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b4ec01c3ec2c$9e2a6300$a501280a (AT) phx (DOT) gbl... Alan I logged onto the sevrer using the account. Open outlook to public folders. Also ran the job in the DTS designer OK. Ran as a job an it fails. -----Original Message----- This is usually down to permissions and account differences. http://support.microsoft.com/?kbid=269074 -- -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.allisonmitchell.com - Expert SQL Server Consultancy. www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "BJ" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:b0a501c3ec20$2d4151f0$a401280a (AT) phx (DOT) gbl... Code works in the DTS designer, but fails when run as a job. Set objFolder = myOlNameSpace.Folders("Public Folders") Thanks BJ . . . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |