Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Error file adapter with variable substitution in PI 7.31

$
0
0

Hello,

 

I'm trying to create a file with a dynamic name, based on the payload of the message.

 

We're trying to create a filename with the bold content in the name %batchId%.xml. The subtitution we use is

 

payload:batch,1,batch-info,1,id,1

 

<ns1:batch xmlns:ns1="http://www.atosworldline.com/archivingPortal/receivers">

 

-<ns1:batch-info id="test" isTest="true">

 

 

<ns2:sender-identifier xmlns:ns2="http://www.atosworldline.com/archivingPortal/batchInfo">String 2</ns2:sender-identifier>

 

 

<ns2:nb-elements xmlns:ns2="http://www.atosworldline.com/archivingPortal/batchInfo">3</ns2:nb-elements>

 

 

<ns2:batch-integration-mode xmlns:ns2="http://www.atosworldline.com/archivingPortal/batchInfo">String 4</ns2:batch-integration-mode>

 

 

<ns2:creation-datetime xmlns:ns2="http://www.atosworldline.com/archivingPortal/batchInfo">1999-05-31T13:20:00Z</ns2:creation-datetime>

 

</ns1:batch-info>

 

-<ns1:receivers>

 

 

-<ns1:receiver>

 

 

<ns1:id>String 5</ns1:id>

 

 

<ns1:action>String 6</ns1:action>

 

 

<ns1:contact-details/>

 

 

-<ns1:tokenSets>

 

 

-<ns1:tokenSet startDate="1999-05-31T13:20:00Z" endDate="1999-05-31T13:20:00Z">

 

 

-<ns1:token>

 

 

<ns1:tokenvalue>String 7</ns1:tokenvalue>

 

</ns1:token>

 

-<ns1:token>

 

 

<ns1:tokenvalue>String 9</ns1:tokenvalue>

 

</ns1:token>

</ns1:tokenSet>

 

-<ns1:tokenSet startDate="1999-05-31T13:20:00Z" endDate="1999-05-31T13:20:00Z">

 

 

-<ns1:token>

 

 

<ns1:tokenvalue>String 11</ns1:tokenvalue>

 

</ns1:token>

 

-<ns1:token>

 

 

<ns1:tokenvalue>String 13</ns1:tokenvalue>

 

</ns1:token>

</ns1:tokenSet>

</ns1:tokenSets>

</ns1:receiver>

</ns1:receivers>

</ns1:batch>

 

The following error is shown, when processing the message through the receiving fileadapter.

 

MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: batchId


kind regards,


Pieter


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>