ofbiz UOM Conversion Relationship Not Found [单位转化关系没有找到] 问题解决:

在使用Ofbiz订单功能时遇到"UOM Conversion Relationship Not Found"错误,导致无法快速运送整个订单。问题根源在于会计全局设置中默认货币未匹配订单货币。解决方案包括:1. 修改PartyAcctgPreference中的baseCurrencyUomId为实际使用的货币,如CNY。2. 在数据库的uom_conversion_dated表中添加缺失的货币转换记录,确保包含CNY到USD的转换。通过这些步骤,成功解决了单位转化关系找不到的问题。
摘要由CSDN通过智能技术生成

最近在使用Ofbiz 的订单功能时,点击“快速运送整个订单”功能,一直提示:UOM Conversion Relationship Not Found [单位转化关系没有找到] 问题

具体异常如下:

java.lang.Exception: Error in simple-method [Convert UOM values [file:/E:/eclipse/works/ofbiz-release13.07/framework/common/script/org/ofbiz/common/CommonServices.xml#convertUom]]: ; [单位转化关系没有找到]
    at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) [bin/:?]
    at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:319) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:578) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:271) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:290) [bin/:?]
    at org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:79) [bin/:?]
    at org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:48) [bin/:?]
    at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:400) [bin/:?]
    at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:232) [bin/:?]
    at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:98) [bin/:?]
    at org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:217) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.method.conditional.CompareFieldCondition.exec(CompareFieldCondition.java:137) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:61) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.method.conditional.EmptyCondition.exec(EmptyCondition.java:80) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.method.conditional.EmptyCondition.exec(EmptyCondition.java:84) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.method.conditional.EmptyCondition.exec(EmptyCondition.java:84) [bin/:?]
    at org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:117) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:307) [bin/:?]
    at org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:454) [bin/:?]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值