wire icon indicating copy to clipboard operation
wire copied to clipboard

Interface Data fields for Wire files

Open zbruhnke opened this issue 2 years ago • 2 comments

Wire Version: Release v0.9.0-rc1

What were you trying to do?

Process a wire file with Interface data at the beginning

What did you expect to see?

A successful processing of the wire file

What did you see?

{"error":"error reading file: line:1 record:SenderSupplied *wire.FieldError UserRequestCorrelation  is a required field"}

How can we reproduce the problem?

Use this to create a new wire file

FTI0811 XFT811  {1500}30        T {1510}1000{1520}20220128DOVTAL3C000001{2000}000000010000{3100}123456789DOVETAIL BANK US F*{3320}XX22012800000051*{3400}021000089CITIBANK NYC*{3600}CTP{3620}3*3AC4C307-0FFB-4028-BD8E-53D55BDB90E1*{3700}SUSD0,*{4200}D000100002*{5000}T000100011*DRESDEFFXXX*
## Create Wire File From FAIM
# Creates a Wire File with the Moov Wire API
curl -X "POST" "https://MOOV_WIRE_URL/files/create" \
     -H 'Content-Type: text/plain' \
     -d "FTI0811 XFT811  {1500}30        T {1510}1000{1520}20220128DOVTAL3C000001{2000}000000010000{3100}123456789DOVETAIL BANK US F*{3320}XX22012800000051*{3400}021000089CITIBANK NYC*{3600}CTP{3620}3*3AC4C307-0FFB-4028-BD8E-53D55BDB90E1*{3700}SUSD0,*{4200}D000100002*{5000}T000100011*DRESDEFFXXX*"

I think the best solution is to just strip out any characters before the first { because the Interface data is not useful for anything in 99.99% of use cases and this would also solve for other errors that sprung up for strange characters that ODFIs somehow magically add to wire files

zbruhnke avatar Jul 06 '22 05:07 zbruhnke

What is this Interface data? Is it metadata from the vendor's code? This issue sounds similar to https://github.com/moov-io/ach/issues/1037 and could be solved similarly in each project.

adamdecaf avatar Jul 06 '22 14:07 adamdecaf

I sent @atonks2 the official documentation that includes it so he has the FAIM docs

but here's a screenshot https://go.hmb.la/kQg7dc

zbruhnke avatar Jul 06 '22 14:07 zbruhnke

@zbruhnke I think the issue fixed in https://github.com/moov-io/wire/pull/244 would you check again

mfdeveloper508 avatar Nov 14 '22 17:11 mfdeveloper508