# Claim ends with a facility loop

**URL:** <https://community.open-emr.org/t/claim-ends-with-a-facility-loop/3950>\
**Category:** Day-to-Day Users\
**Created:** [November 10, 2011, 2:02pm UTC](https://community.open-emr.org/t/claim-ends-with-a-facility-loop/3950 "2011-11-10T14:02:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [November 10, 2011, 2:02pm UTC](https://community.open-emr.org/t/claim-ends-with-a-facility-loop/3950/1 "2011-11-10T14:02:34Z")

</div>

**[tcilia](https://sourceforge.net/u/tcilia/)** wrote on [Thursday, November 10, 2011](https://sourceforge.net/p/openemr/discussion/202504/thread/afa77a75/#d8d3):

We sent at test file to Gateway EDI. This is what they told us.

The file does not have an SE segment (this is a Transaction Set Trailer) at the end of the file…(it does contain an SE segment after each claim in the file).&nbsp; But the last claim ends with a&nbsp;&nbsp;&nbsp;&nbsp; facility loop which is not correct…

Any ideals on what to do here? We are using version 4.1 with xamp. Thanks for any help on this issue.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [November 10, 2011, 3:02pm UTC](https://community.open-emr.org/t/claim-ends-with-a-facility-loop/3950/2 "2011-11-10T15:02:52Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Thursday, November 10, 2011](https://sourceforge.net/p/openemr/discussion/202504/thread/afa77a75/#9b58):

Sounds like your claim file was somehow truncated somewhere along the line.&nbsp; You might look at it with a text editor.&nbsp; Insert a newline after each “~” to make it more readable, and see if what Gateway is telling you makes any sense.

Also did you do a “View Log” after generating the claim file?&nbsp; That’s important.

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [November 10, 2011, 6:20pm UTC](https://community.open-emr.org/t/claim-ends-with-a-facility-loop/3950/3 "2011-11-10T18:20:21Z")

</div>

**[tcilia](https://sourceforge.net/u/tcilia/)** wrote on [Thursday, November 10, 2011](https://sourceforge.net/p/openemr/discussion/202504/thread/afa77a75/#53f8):

Thanks I will take a look at the file later today. I asked and they did not look at the log after generating the claim. I will be there tomorrow when they try again and I will be sure to view the log. Thanks again.
