# Flat File to Batch to EDIINT

**URL:** <https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 20, 2008, 11:12pm UTC](https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546 "2008-03-20T23:12:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Atlas](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Andrew\_Atlas](https://techcommunity.softwareag.com/u/Andrew_Atlas)\
**Post date:** [March 20, 2008, 11:12pm UTC](https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546/1 "2008-03-20T23:12:28Z")

</div>

Currently I’m creating a flat file of EDI data on TN which is queued and then processed using the batch processing default method. This create an X12 Envelope and when I look at the content it tell me that the Name is EDIdata and the Type is application/EDIstream with a storage type of tspace.

I created a processing rule to call a service to try to take the content and repost to TN as EDIINT data for an AS2 customer, but this doesn’t seem to work. What is the easiest way to take the X12 Envelope and route it through the EDIINT delivery process. I know I have to use the wm.EDIINT.send service, but it errors out due to an error, I’m not producing a stream input from my bizdoc as input to the service.

Thank for any help.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 21, 2008, 12:18am UTC](https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546/2 "2008-03-21T00:18:54Z")

</div>

Are you creating the stream from bizdoc/content (bytes) converting it to stream?? Basically you have to make use of this content particle from the bizdoc.

Then finally map it to EDIINT:send (stream input)

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Andrew\_Atlas](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Andrew\_Atlas](https://techcommunity.softwareag.com/u/Andrew_Atlas)\
**Post date:** [March 21, 2008, 1:06am UTC](https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546/3 "2008-03-21T01:06:55Z")

</div>

RMG,

I’m currently using the following services.

wm.tn.doc.view  
wm.tn.getContentPartData  
pub.io.bytesToStream, which should bring back a stream, but I’m not seeing this.

The content on TN is application/EDIstream and the storage type is tspace.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/flat-file-to-batch-to-ediint/109546/4 "2021-04-02T15:05:45Z")

</div>


