Hi BC gurus,
Have any of you come across a bank statement format when both Debit and Credit columns have a value:
Debt |
Credit |
0 |
1810000 |
1185000 |
0 |
552.74 |
0 |
0 |
3165.64 |
When importing such a statement the “0”s in the Credit column overwrite the imported Debit.
I tried to create a Transformation Rule to replace “0” with blank but couldn’t yet find the way for it to work only for “0” amounts.
Have you ever encountered such a thing, any ideas on how to make it work without customization?
Thanks!
Yes, this is a common scenario when working with bank statements that contain both Debit and Credit columns, especially in CSV or Excel formats, where zero values can overwrite actual values during import in Business Central.
When importing, "0" in Credit column is being read as an actual value and overwriting the Debit amount — or vice versa. You're trying to ignore "0" values only during the import mapping phase, ideally without customization.
Step 1 Column Definition:
In Column Definitions, only one amount definition is found. To modify the Column Definition to recognize 2 columns for the amounts, add Column 14 for Credits. To save changes, length must be added to each column definition. When Assisted Setup creates definitions, it does not assign a length to all the columns, but saving as a user, length is required.
Mapping 2 columns to one field in BC
Field Mapping needs to be updated to accept an amount from either of the amount columns into the one field in BC.
Hi LanaAbs,
Did you ever manage to figure this one out?
I'm having the same issue.
Thanks... joe
I am already doing this. But as I mentioned, when Credit Amount is being imported, the "0" there overwrites the imported Debit amount.
You do need to combine the 2 columns into 1 column and use the positive and negative amounts.
What about using code to net the two columns into a new field and working from positive and negative figures?
No, then it replaces all zeros with blank, i.e. if there's an amount 30000, it will be transformed into 3.
Will a transformation rule to set 0 to blank work?
Thank you Josh. Unfortunately the supplied link is not helping.
As I said, the problem is when Debit is xxxxx and Credit is "0" (not blank)
In Mapping I specify both Debit and Credit to go into "STatement Amount" and they are market as optional.
So after Debit Amount is imported, and the turn goes to Credit Amount, the "0" overwrites the imported Debit Amount.
This thread has the answer: community.dynamics.com/.../633678
Jeffrey Bulanadi
3,878
Sohail Ahmed
3,583
Super User 2025 Season 2
Jainam M. Kothari
3,175
Super User 2025 Season 2