Tom Willis
April 4th, 2005, 07:25 PM
I'm having trouble with the StartProcessUsingManifest method through both the webservice and the Api dll.
And honestly I can not grasp from the documentation what the name attribute is supposed to refer to or how to override whatever was put in the xml project as the input.
When the report file exists that was used to setup the project and the job everything works fine through the Api dll, I have yet to get it to work through the webservice.In other words whatever I pass in as uris is ignored(probably cuz I have the name wrong).
Here's the xml project
<project version="XMLPRJ02">
<author>Tom Willis</author>
<description>
</description>
<model>
<location>F:datapump_intmodels88patdemo.mod</location>
</model>
<workflow>
<prerequisites />
</workflow>
<inputs process="individually" must_exist="all" order="xprj">
<main>
<report>
<location>F:datapump_intimport88*patdemo*.txt</location>
</report>
</main>
<distribution>
<action type="move">
<targetfolder>F:datapump_intdone88</targetfolder>
<targetname>&amp;[yyyy]&amp;[mm]&amp;[dd]&amp;[hh]&amp;[mi]&amp;[ss]&amp;[source.name]&amp;[jobid]&amp;[counter].txt</targetname>
<overwrite>False</overwrite>
</action>
</distribution>
</inputs>
<state>
<view>
<window>table</window>
</view>
</state>
<exports>
<export>
<data_page view="table">
<name>88_resultscsv</name>
<table />
</data_page>
<file_page>
<files_in_folder>false</files_in_folder>
<location>F:datapump_intexport88patdemo.txt</location>
<when_exists>add</when_exists>
</file_page>
<distribution>
</distribution>
</export>
</exports>
</project>Here's the manifest
<manifest process="88_patdemo">
<inputs>
<item name="88_patdemo">
<uri>
file://F:/datapump_int/pre/88/bpatdemo.txt
</uri>
</item>
</inputs>
</manifest>job log when run through the Api dll
<joblog process="88_patdemo" jobID="1011">
<events>
<event time="2005-04-04T16:33:15">Created.</event>
<event time="2005-04-04T16:33:15">Process prerequisites were not met: Wildcard specification 'F:datapump_intimport88*patdemo*.txt' did not match any files.</event>
<event time="2005-04-04T16:33:16" alert="SystemAlertProcessFailed">Failed: DwchServer.NoRetryInfoException: Process prerequisites failed, but no retry information is available. Process will not be retried. ---> DwchServer.WildcardDidNotExpandPrerequisiteExcepti on: Wildcard specification 'F:datapump_intimport88*patdemo*.txt' did not match any files. at DwchServer.ProjectInputs.TestPrerequisites() at DwchServer.ProcessHandler.b(ServerDB A_0, JobRow A_1, JobLog A_2) --- End of inner exception stack trace --- at DwchServer.ProcessHandler.b(ServerDB A_0, JobRow A_1, JobLog A_2)</event>
<event time="2005-04-04T16:33:16" source="distributor">Distribution started</event>
<event time="2005-04-04T16:33:16" source="distributor" value="complete">Distribution completed</event>
</events>
<distribution />
</joblog>Through the webservice... I get a stack trace.
InboundLib.test.TestInbound.submitdataforextractio n : System.Web.Services.Protocols.SoapException : System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Access is denied: 'DwchServer.PumpAPI'.
File name: "DwchServer.PumpAPI"
at DwchServer.DwchServerWebService.StartProcessUsingM anifest(String strXml)
...
And honestly I can not grasp from the documentation what the name attribute is supposed to refer to or how to override whatever was put in the xml project as the input.
When the report file exists that was used to setup the project and the job everything works fine through the Api dll, I have yet to get it to work through the webservice.In other words whatever I pass in as uris is ignored(probably cuz I have the name wrong).
Here's the xml project
<project version="XMLPRJ02">
<author>Tom Willis</author>
<description>
</description>
<model>
<location>F:datapump_intmodels88patdemo.mod</location>
</model>
<workflow>
<prerequisites />
</workflow>
<inputs process="individually" must_exist="all" order="xprj">
<main>
<report>
<location>F:datapump_intimport88*patdemo*.txt</location>
</report>
</main>
<distribution>
<action type="move">
<targetfolder>F:datapump_intdone88</targetfolder>
<targetname>&amp;[yyyy]&amp;[mm]&amp;[dd]&amp;[hh]&amp;[mi]&amp;[ss]&amp;[source.name]&amp;[jobid]&amp;[counter].txt</targetname>
<overwrite>False</overwrite>
</action>
</distribution>
</inputs>
<state>
<view>
<window>table</window>
</view>
</state>
<exports>
<export>
<data_page view="table">
<name>88_resultscsv</name>
<table />
</data_page>
<file_page>
<files_in_folder>false</files_in_folder>
<location>F:datapump_intexport88patdemo.txt</location>
<when_exists>add</when_exists>
</file_page>
<distribution>
</distribution>
</export>
</exports>
</project>Here's the manifest
<manifest process="88_patdemo">
<inputs>
<item name="88_patdemo">
<uri>
file://F:/datapump_int/pre/88/bpatdemo.txt
</uri>
</item>
</inputs>
</manifest>job log when run through the Api dll
<joblog process="88_patdemo" jobID="1011">
<events>
<event time="2005-04-04T16:33:15">Created.</event>
<event time="2005-04-04T16:33:15">Process prerequisites were not met: Wildcard specification 'F:datapump_intimport88*patdemo*.txt' did not match any files.</event>
<event time="2005-04-04T16:33:16" alert="SystemAlertProcessFailed">Failed: DwchServer.NoRetryInfoException: Process prerequisites failed, but no retry information is available. Process will not be retried. ---> DwchServer.WildcardDidNotExpandPrerequisiteExcepti on: Wildcard specification 'F:datapump_intimport88*patdemo*.txt' did not match any files. at DwchServer.ProjectInputs.TestPrerequisites() at DwchServer.ProcessHandler.b(ServerDB A_0, JobRow A_1, JobLog A_2) --- End of inner exception stack trace --- at DwchServer.ProcessHandler.b(ServerDB A_0, JobRow A_1, JobLog A_2)</event>
<event time="2005-04-04T16:33:16" source="distributor">Distribution started</event>
<event time="2005-04-04T16:33:16" source="distributor" value="complete">Distribution completed</event>
</events>
<distribution />
</joblog>Through the webservice... I get a stack trace.
InboundLib.test.TestInbound.submitdataforextractio n : System.Web.Services.Protocols.SoapException : System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Access is denied: 'DwchServer.PumpAPI'.
File name: "DwchServer.PumpAPI"
at DwchServer.DwchServerWebService.StartProcessUsingM anifest(String strXml)
...