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

Enhancement: Support for Mastercard Clearing Optimiser AutoEdit input file structure #17

Open
mrtemp2 opened this issue Feb 13, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mrtemp2
Copy link

mrtemp2 commented Feb 13, 2024

hi i have a IPM mastercard file and i'm trying to get the transaction or whatever information maybe in it iv tried to convert it using the command mci_ipm_to_csv i always get this error

mci_ipm_to_csv --debug file.IPM --in-encoding CP500 mci_ipm_to_csv (cardutil 0.6.4) parameters: -in_filename:file.IPM -in_encoding:CP500 -debug:True DEBUG:cardutil.cli:config_dir=None DEBUG:cardutil.mciipm:record_length=805306492 *** ERROR - processing has stopped *** Error detected in record 1 Invalid record length - value read was 805306492

fileIPM.txt

@adelosa
Copy link
Owner

adelosa commented Feb 13, 2024

If the first record has an invalid record length then the file is not valid.
The first 4 bytes should contain the length of the record in binary.

@mrtemp2
Copy link
Author

mrtemp2 commented Feb 13, 2024

Good morning but the file that is attached is from mastercard and i suppose it have the structure required to be extracted with the command mci_ipm_to_csv
this is some of the binary

3000007c0000000032343032303930373237303637353234303230393037323730363735003e0001000000000000000001000000000000007ff4000000010000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000058123b03000000000000000000000000000000004000004a313634348000010000010000020000000000000036393730343030313035303235303031323430323039303030303030313037353030313130313031323230303150303030303030303100004000012a3136343480000100000140000200000c10000000363430323337303136343233303030333631313237313837303030423234303230393031303038383936333535353834303042323430323039303130313237313334313936323132304232343032303930313033323738333035303030303030423234303230393031303336393135333032323230303042323430323039303130343439313030303030303030304232343032303930313034383930333736303830303030423234303230393031303530373130393538353337353042323430323039303130353137343031383035373637304232343032303930313035323931393930303030303030423234303230393031383430303030303030303230363031303735303036303031363632303630313037353000004000012a3136343480000100000140000200000c1000000036343032333730313634323330303630393130303030303030303042323430323039303130363438383239363637303030304232343032303930313036383936383630303030303030423234303230393031303732383133363731363138313042323430323039303130383439323030303030303030304232343032303930313039303938303634353136323030423234303230393031303936393133343233303030303042323430323039303131303436323130303030303030304232343032303930313130383632383530

@adelosa
Copy link
Owner

adelosa commented Mar 14, 2024

Closing as the file is not in IPM format

@adelosa adelosa closed this as completed Mar 14, 2024
@adelosa adelosa self-assigned this Mar 14, 2024
@adelosa adelosa added the data issue Where user receives error processing a specific file label Mar 14, 2024
@adelosa adelosa reopened this Apr 5, 2024
@adelosa
Copy link
Owner

adelosa commented Apr 5, 2024

It appears that this file is using the Mastercard Clearing Optimiser AutoEdit input file structure.
When I reviewed the file, it does have valid IPM records embedded within the structure with some additional file and record headers. I am not sure how these files are used and when you would use these in preference to a standard IPM file.
The bottom line is that cardutils does not support this format. I will leave this here as a "TODO" to see if there is
any interest in supporting this format.

@adelosa adelosa changed the title Invalid record length - value read was 805306492 Enhancement: Support for Mastercard Clearing Optimiser AutoEdit input file structure Apr 5, 2024
@adelosa adelosa added enhancement New feature or request and removed data issue Where user receives error processing a specific file labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants