adelosa / cardutil

Payment cards tools including ISO8583 parser and Mastercard IPM files processing
MIT License
24 stars 4 forks source link

PDS 0301 ERROR CODE 0519 #11

Closed charisad closed 1 year ago

charisad commented 1 year ago

I keep getting this error from Mastercard, "FILE AMOUNT, CHECKSUM IS NOT ZEROES, AND DOES NOT EQUAL THE TOTAL OF AMOUNT, TRANSACTION ( 00000000 P0301 DE4) FROM EACH DETAIL MESSAGE.", but the total amount tallies with the individual transaction amounts. Kindly assist. Attached is a zip file having the ipm and csv files. MCIPM_230428_00150_outgoing.zip

adelosa commented 1 year ago

This error is not generated by cardutil but by the Mastercard pre-edit or testing tool.

I am not able to see an issue with the generated IPM file including the trailer record. Below is the cardutil debug output for the trailer record which shows all the values are returned correctly. Settings are encoding CP500 and 1014 Blocking.

You will need to check that your settings with Mastercard are correct.

DEBUG:cardutil.mciipm:record_length=112
DEBUG:cardutil.mciipm:112: b'\xf1\xf6\xf4\xf4\x80\x00\x01\x00\x00\x01\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\xf6\xf9\xf5\xf0\xf7\xf8\xf0\xf1\xf0\xf5\xf0\xf2\xf5\xf0\xf0\xf2\xf2\xf3\xf0\xf4\xf2\xf8\xf0\xf0\xf0\xf0\xf0\xf0\xf1\xf5\xf9\xf9\xf5\xf0\xf0\xf1\xf5\xf0\xf0\xf1\xf9\xf1\xf0\xf0\xf1\xf2\xf0\xf3\xf0\xf1\xf0\xf1\xf6\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf1\xf5\xf8\xf2\xf9\xf3\xf1\xf0\xf3\xf0\xf6\xf0\xf0\xf8\xf0\xf0\xf0\xf0\xf0\xf0\xf3\xf6\xf0\xf0\xf0\xf0\xf0\xf0\xf3\xf6'
DEBUG:cardutil.iso8583:Processing message: len=112 contents:
00000000: F1 F6 F4 F4 80 00 01 00  00 01 00 00 02 00 00 00  ................
00000010: 00 00 00 00 F6 F9 F5 F0  F7 F8 F0 F1 F0 F5 F0 F2  ................
00000020: F5 F0 F0 F2 F2 F3 F0 F4  F2 F8 F0 F0 F0 F0 F0 F0  ................
00000030: F1 F5 F9 F9 F5 F0 F0 F1  F5 F0 F0 F1 F9 F1 F0 F0  ................
00000040: F1 F2 F0 F3 F0 F1 F0 F1  F6 F0 F0 F0 F0 F0 F0 F0  ................
00000050: F0 F0 F1 F5 F8 F2 F9 F3  F1 F0 F3 F0 F6 F0 F0 F8  ................
00000060: F0 F0 F0 F0 F0 F0 F3 F6  F0 F0 F0 F0 F0 F0 F3 F6  ................
DEBUG:cardutil.iso8583:processing bit 24
DEBUG:cardutil.iso8583:field_data=b'\xf6\xf9\xf5'
DEBUG:cardutil.iso8583:processing bit 48
DEBUG:cardutil.iso8583:field_data=b'\xf0\xf1\xf0\xf5\xf0\xf2\xf5\xf0\xf0\xf2\xf2\xf3\xf0\xf4\xf2\xf8\xf0\xf0\xf0\xf0\xf0\xf0\xf1\xf5\xf9\xf9\xf5\xf0\xf0\xf1\xf5\xf0\xf0\xf1\xf9\xf1\xf0\xf0\xf1\xf2\xf0\xf3\xf0\xf1\xf0\xf1\xf6\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf1\xf5\xf8\xf2\xf9\xf3\xf1\xf0\xf3\xf0\xf6\xf0\xf0\xf8\xf0\xf0\xf0\xf0\xf0\xf0\xf3\xf6'
DEBUG:cardutil.iso8583:pds_field_tag=[0105]
DEBUG:cardutil.iso8583:pds_field_length=[25]
DEBUG:cardutil.iso8583:pds_field_data=[0022304280000001599500150]
DEBUG:cardutil.iso8583:pds_field_tag=[0191]
DEBUG:cardutil.iso8583:pds_field_length=[1]
DEBUG:cardutil.iso8583:pds_field_data=[2]
DEBUG:cardutil.iso8583:pds_field_tag=[0301]
DEBUG:cardutil.iso8583:pds_field_length=[16]
DEBUG:cardutil.iso8583:pds_field_data=[0000000001582931]
DEBUG:cardutil.iso8583:pds_field_tag=[0306]
DEBUG:cardutil.iso8583:pds_field_length=[8]
DEBUG:cardutil.iso8583:pds_field_data=[00000036]
DEBUG:cardutil.iso8583:processing bit 71
DEBUG:cardutil.iso8583:field_data=b'\xf0\xf0\xf0\xf0\xf0\xf0\xf3\xf6'
{'MTI': '1644', 'DE24': '695', 'DE48': '010502500223042800000015995001500191001203010160000000001582931030600800000036', 'PDS0105': '0022304280000001599500150', 'PDS0191': '2', 'PDS0301': '0000000001582931', 'PDS0306': '00000036', 'DE71': 36}
DEBUG:cardutil.mciipm:record_length=0
adelosa commented 1 year ago

Just checking -- The title indicates an error

PDS 0301 NOT INCLUDED IN FILE TRAILER (ERROR CODE 0519) 

This seems like a different error than what was provided in the body

FILE AMOUNT, CHECKSUM IS NOT ZEROES, AND DOES NOT EQUAL THE TOTAL OF AMOUNT, TRANSACTION ( 00000000 P0301 DE4) FROM EACH DETAIL MESSAGE.

Was the 0519 error on the run without a value.. You need to provide a zero value for PDS301, not remove it completely.

charisad commented 1 year ago

Just checking -- The title indicates an error

PDS 0301 NOT INCLUDED IN FILE TRAILER (ERROR CODE 0519) 

This seems like a different error than what was provided in the body

FILE AMOUNT, CHECKSUM IS NOT ZEROES, AND DOES NOT EQUAL THE TOTAL OF AMOUNT, TRANSACTION ( 00000000 P0301 DE4) FROM EACH DETAIL MESSAGE.

Was the 0519 error on the run without a value.. You need to provide a zero value for PDS301, not remove it completely.

the error code is 0519 - FILE AMOUNT, CHECKSUM IS NOT ZEROES, AND DOES NOT EQUAL THE TOTAL OF AMOUNT, TRANSACTION ( 00000000 P0301 DE4) FROM EACH DETAIL MESSAGE.

adelosa commented 1 year ago

Thanks for confirming.

adelosa commented 1 year ago

Have you resolved your issue?

charisad commented 1 year ago

Have you resolved your issue?

Hi Anthony, I received the reconciliation file today, the issue has been resolved after making all the PDS 0301 Data field zeros. Thanks for the support always.