Hi, the mapping doesn't really ask for the code, it just copies the text and BC then validates it against the Country/Region table, where the key is the Code. That's why Germany fails.
You can try without code first. On Integration Table Mappings choose Mapping, then Fields, and on the country line there is a Transformation Rule column. Make a new rule with type Field Lookup, pointing to the Country/Region table, source field Name, target field Code. I didn't test this exact case on the sync, so try it in sandbox. The catch is the name must match exactly what BC has, "Deutschland" or a typo won't be found. And if the mapping is bidirectional BC will send DE back to CRM, so check the direction.
If that's not enough, a small extension. Subscribe to OnTransferFieldData in codeunit Integration Record Synch. and do the lookup yourself.
Glad to help - follow up if anything is unclear.
► If this solved it, marking it verified helps others too.
Regards,
Grigorios Mavrogeorgis
Business Central Consultant & AL Developer
Work: Gmsoft Limited
Blog: insidebusinesscentral
LinkedIn: linkedin.com/in/gregorymavrogeorgis