mule - Exception Logging in Batch in Mulesoft -


i have case, have log exception error in object in salesforce, have take payload (the record) error there. error here record level error , using batch process this. in screenshot there how processing exception. enter image description here

following xml

    <batch:step name="handlefailedrecords_accountsf-360" accept-policy="only_failures">                 <set-payload value="#[getstepexceptions()]" doc:name="set payload"/>                 <foreach doc:name="for each" collection="#[payload.values()]">                     <set-variable variablename="record_level_error" value="#[payload]" doc:name="record_level_error"/>                     <dw:transform-message doc:name="transform message" metadata:id="9c2e408a-f530-4ffd-a205-a787c8bc94b2">                         <dw:set-payload><![cdata[%dw 1.0 %output application/java --- payload map {       sf_object_type__c: "account"    }]]></dw:set-payload>                     </dw:transform-message>                     <sfdc:create config-ref="salesforce__basic_authentication" type="exception__c" doc:name="salesforce">                         <sfdc:objects ref="#[payload]"/>                     </sfdc:create>                     <logger message="#[payload]" level="info" doc:name="logger"/> <!--                     <flow-ref name="handlerecordfailure" doc:name="handlerecordfailure"/> -->                  </foreach>             </batch:step>          </batch:process-records> 

here able exception getting, else need value getting errored out.

bast way handle exception handling in batch processing flow-ref normal flow proper exception handling, there able handle exception in standard mule way , need in exception catch flow. hope helps

regards


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -