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!

Connect-IT Process Report Feedback

Status
Not open for further replies.

jsum1

Programmer
May 16, 2002
4
0
0
CA
Hi,

I'm trying to setup a feedback engine that will check if my scenario was successful with AssetCenter and then move the file to the correct folder. Success or Fail.

So far i have the following code but it doesn't seem to be doing anything.

<PifFormat Version=&quot;1.0&quot; FormatId=&quot;SuccessReport&quot;>
<STRUCT Name=&quot;SuccessReport&quot;>
<Mapping>If [Success] &lt;&gt; 1 then
PifIgnoreDocumentMapping(&quot; Mapping Processed ERROR&quot;)
else
PifLogWarningMsg(&quot; Mapping Process OK&quot;)
end if</Mapping>
<EmptyColSrc>0</EmptyColSrc>
<ATTRIBUTE Name=&quot;Success&quot; DataType=&quot;LONG&quot;>
<Mapping>[Success]</Mapping>
</ATTRIBUTE>
<STRUCT Name=&quot;UrlFileInfo&quot;>
<ATTRIBUTE Name=&quot;Path&quot; DataType=&quot;STRING&quot;>
<Mapping>PifLogWarningMsg([$ParentDoc$.$ParentDoc$.UrlFileInfo.Path])

[$ParentDoc$.$ParentDoc$.UrlFileInfo.Path]</Mapping>
</ATTRIBUTE>
</STRUCT>
</STRUCT>
</PifFormat>

The warning message i get from connect-it is

&quot;Could not apply post-processing rules: Information about the file is missing.&quot;

I believe the problem is in where i define the path.
[$ParentDoc$.$ParentDoc$.UrlFileInfo.Path] doesn't look right to me. But for some odd reason, the contractor before my time had it in one of his scenario and it worked.

anyone have any ideas what i'm doing wrong?

 
Hi, thank-you for the suggestion, sadly however, the tool box is not hiding anywhere on the screen.
 
make sure that 'UrlFileInfo.Path' is produced by the source connector
 
Hi,

you are right so far but you have to add some fields more:

It seems to mee, that you have as destination XML files?!
[$ParentDoc$.$ParentDoc$.UrlFileInfo.Path] is only one part of the UrlFileInfo Link.
Please add also the CreationDate and the LastModificationDate, because they are important for identification.
Make also sure, that the UrlFileInfo link is in the produced document type of your source connector (simple drag and drop the whole link into the produced document type) because else the needed informations are not available.
With this is should works fine now.
please ask if you have further questions.

BRegards,
Falk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top