Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML path names 1

Status
Not open for further replies.

Imakeoil

Programmer
Dec 20, 2008
38
US
We are upgrading from sql server 2000 to sql server 2005. I am trying to move an xml script that sends out an email every morning with pdf attachements.

Here is the code:

Code:
<?xml version="1.0"?>
<!--XML writer for DataGridView Control-->
<XML>
    <schedule id="1">
	    <fileSettings attachment="1">
	        <inputPath>\\servername\Custom\Scheduled\Dynamic\minekpi_dynamic.rpt</inputPath>
	        <outputPath>ExportFolder\MineKPI</outputPath>
	        <outputFileSuffix></outputFileSuffix>
	        <fileFormat>pdf</fileFormat>
		<printer>
			<enabled>false</enabled>
			<printerName>\\mkgmin-s-001\MKG0P091</printerName>
			<printerDriver></printerDriver>
			<portName>IP_161.19.204.242</portName>
			<copies>1</copies>
			<collate>true</collate>
			<orientation>portrait</orientation>
			<paperSize>letter</paperSize>
			<printDayOfWeek>Mon,Tue,Wed,Thu,Fri</printDayOfWeek>
		</printer>
		<printer>
			<enabled>false</enabled>
			<printerName>\\mkg-s-001\MKG0P089</printerName>
			<printerDriver></printerDriver>
			<portName>IP_161.19.204.256</portName>
			<copies>1</copies>
			<collate>true</collate>
			<orientation>portrait</orientation>
			<paperSize>letter</paperSize>
			<printDayOfWeek>Mon,Tue,Wed,Thu,Fri</printDayOfWeek>
		</printer>
	    </fileSettings>
	   
	   <crystalSettings attachment="1">
	        <parameter name="@endshiftTemp">0</parameter>
	        <parameter name="@spanshiftTemp">1</parameter>
	    </crystalSettings>
	    	    <frequency>
	        <period>daily</period>
	        <runTime>07:15:00</runTime>
	    </frequency>
	    <email>
	        <from>reports@xxx.com</from>
		  <to>xxx@xxx.com</to>
		  <!-- 
		  <subject>Daily Production Reports</subject>
	        <body>Attached are the Mine KPI reports.  Note: this email is scheduled to be sent daily at 6:30 AM.  Contact Me for support.</body>
	    </email>
	</schedule>
    <connection>
        <dataSource>servername</dataSource>
        <catalog>DB</catalog>
	<userid>xxxx</userid>
        <password>xxxxx</password>
    </connection>
    <smtp>
        <smtpHost>emailservername</smtpHost>
		<smtpPort>25</smtpPort>
		<smtpWelcome>xxx</smtpWelcome>
		<userid></userid>
		<password></password>
		<defaultCreds>true</defaultCreds>
		<deliveryMethod>Network</deliveryMethod>
		<ssl>false</ssl>
    </smtp>
</XML>

The error log is giving this error:
14-7-2010 START TIME: 9:33:16
# Attachments: 1
Error Logging onto Server: Invalid directory.

The directory that the files are in is:
C:\Powerview\rpt\Custom\Scheduled\Dynamic

But on the old server the xml script line reads:
\\servername\reports\Scheduled\Dynamic\minekpi_dynamic.rpt
And the old directory is:
C:\Powerview\rpt\Scheduled\Dynamic\minekpi_dynamic.rpt


So what is the directory path supposed to be? I have never worked with XML before and am not finding any good resources on the web.

The email will go out if you do not add any attachements.

Thanks very much
 
The problem was the folder in the input path needed to be a shared folder.
 
Thanks for posting the resolution.

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top