Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageReferenceKey should be numeric (no spaces) #179

Open
neilmanley opened this issue Jun 10, 2021 · 8 comments
Open

ImageReferenceKey should be numeric (no spaces) #179

neilmanley opened this issue Jun 10, 2021 · 8 comments

Comments

@neilmanley
Copy link

Actual: 123, Expected: 0123, according to X9Validator.

What were you trying to do?
Create X9.37 files for mobile check deposit.
What did you expect to see?
No warnings/errors on the X9 file
What did you see?
A warning that the ImageReferenceKey should be numeric values (no spaces)
How can we reproduce the problem?
Validate using X9Validator (https://x9ware.com/)

@atonks2
Copy link
Collaborator

atonks2 commented Jun 10, 2021

Thanks for documenting this @neilmanley! I'll reference a couple versions of ICL specs to see if this field is consistent between them.

@atonks2
Copy link
Collaborator

atonks2 commented Aug 10, 2021

I started looking into this field and it's not clear to me whether this field should allow spaces. A couple references to it in X9.100-187-2016:

Each record containing an ImageReferenceKey specifies it as Type: ANS Alphameric/special and describes it as:

The Image Reference Key is a data string or value that is used to find the image of the item in the image archive
system (for example, it may be a URL).

From Annex H:

The Image Reference Key is a number or set of data values, assigned by the creator of the record

@neilmanley have you stumbled across any addition information on this? From what I'm reading I'm inclined to leave the field as alphanumeric to provide flexibility. One modification I could see making, however, would be to check and see if the field only contains numeric chars. We could make sure that if the field is numeric we include a leading 0 instead of a space where needed.

@adamdecaf
Copy link
Member

Do we have a definition of what "set of data values" is in this context?

@atonks2
Copy link
Collaborator

atonks2 commented Aug 10, 2021

Do we have a definition of what "set of data values" is in this context?

I couldn't find anything more detailed. The most specific statement I found is above that quote, where it says it could be a URL.

@adamdecaf
Copy link
Member

We could offer a function or two that can return a properly formatted alphanumeric string and another that returns a parsed number.

ImageReferenceKeyNumber() *int64

@atonks2
Copy link
Collaborator

atonks2 commented Aug 10, 2021

I found another example, this one in IBM's docs:

...this value is set to the concatenation of the 8–character business date, 15–digit ISN, and the 2–character business category.

@adamdecaf
Copy link
Member

I assume the "2–character business category" is an integer?

@atonks2
Copy link
Collaborator

atonks2 commented Aug 11, 2021

I assume the "2–character business category" is an integer?

I'm not sure. There's no reference to business category in the X9 spec, so I just looked more into that IBM doc. They use "Business Category" as the value for record 52's (Image View Data Record) Cycle Number. The spec for cycle number says it's a conditional, alphanumeric code "assigned by the institution that creates the bundle". IBM says in their case it's "assigned by the Gateway for this transaction".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants