简体   繁体   English

标准客户DIXF实体使用错误的城市更新地址,因为我们对不同的城市使用相同的邮政编码。 斧头2012R2

[英]Standard Customer DIXF entity updating address with wrong city because we have same zipcodes for Different cities . Ax 2012R2

We have same zipcode for different cities zipcode1 city1 zipcode1 city2 zipcode1 city3 我们对不同的城市使用相同的邮政编码。邮政编码1城市1邮政编码1城市2邮政编码1城市3

When i am loading address with city as City2, DIXF is loading address with City as City1. 当我正在加载City为City2的地址时,DIXF正在加载City为City1的地址。 Its picking first record in that list. 它在该列表中选择第一条记录。

How can i fix this??? 我怎样才能解决这个问题??? Any help would be appreciated. 任何帮助,将不胜感激。 Thanks. 谢谢。

I have found the issue. 我发现了问题。 In AX while using dixf its checking zipcode based on zipcode, country in csv but its not considering city. 在AX中,当使用dixf时,其检查邮政编码基于CSV中的国家/地区,而在csv中却未考虑城市。 So its inserting first zipcode that its finding and city attached to that is getting Updated. 因此,它的插入内容和所在城市的第一个邮政编码正在更新。 I made a fix for that by writing job and updating LogisticsPostalAddress record(city,zipcode fields) for that Customer based on csv. 我通过写作业并基于csv更新该客户的LogisticsPostalAddress记录(城市,邮政编码字段)来解决此问题。

Job I wrote gets city,zipcode, state, country from csv and finds zipcode (logisticsaddresszipcodetable) by using state,zipcode,country,city. 我写的工作从csv获取城市,邮政编码,州,国家/地区,并通过使用州,邮政编码,国家/地区和城市来查找邮政编码(物流地址邮政编码表)。 Same for city i found using state, zipcode, city, country. 我发现使用州,邮政编码,城市,国家的城市也是如此。 Then i updated it in LogisticsPostalAddress Table for that customer. 然后,我在LogisticsPostalAddress表中为该客户更新了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM