You have no items in your shopping cart.

Friday, December 27, 2024 8:54:33 PM

The declared value is missing.

Posted: 5 years ago

#10148 Quote

EduardoBacarin

Posted: 5 years ago

#10148 Quote
I have installed and configured DHL plugin in my nopcommerce website and the Shipping Method by DHL doesn't appear.
I have enabled debugging and I receive that error:

Error. GetShippingOptions. The declared value is missing.

What can I do to solve that?


The Full Log:

2019.10.23 18:56:34:8965*******
DHL shipping service. (base in store) usedMeasureWeight=grams
2019.10.23 18:56:34:8971*******
DHL shipping service. (base in store) usedMeasureDimension=millimetres
2019.10.23 18:56:34:8974*******
DHL shipping service. weightUnit=KG, dimensionUnit=MM
2019.10.23 18:56:34:9077*******
DHL shipping service (in base dimension). widthTmp=127.288368640423, lengthTmp=127.288368640423, heightTmp=127.288368640423, weightTml=2760.0000
2019.10.23 18:56:34:9079*******
DHL shipping service (in DHL dimension). widthTmp=127.288368640423, lengthTmp=127.288368640423, heightTmp=127.288368640423, weightTml=1251.914941200000
2019.10.23 18:56:34:9083*******
DHL shipping service (in DHL dimension - CM KG or IN LB). widthTmp=12.7288368640423, lengthTmp=12.7288368640423, heightTmp=12.7288368640423, weightTml=1251.914941200000
2019.10.23 18:56:34:9085*******
DHL shipping service (int). width=13, length=13, height=13, weight=1252
2019.10.23 18:56:34:9097*******
DHLWebServiceClient.GetResponseXDocument. xmlRequest=<?xml version="1.0" encoding="UTF-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
<GetQuote>
<Request>
<ServiceHeader>
<MessageTime>2019-10-23T18:56:34 00:00</MessageTime>
<MessageReference>1234567890123456789012345678901</MessageReference>
<SiteID>v62_vtylmds3h0</SiteID>
<Password>6wrOi8Tkz5</Password>
</ServiceHeader>
</Request>
<From>
<CountryCode>MX</CountryCode>
<Postalcode>64520</Postalcode>
<City>Monterrey</City>
</From>
<BkgDetails>
<PaymentCountryCode>MX</PaymentCountryCode>
<Date>2019-10-23</Date>
<ReadyTime>PT18H56M</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<Height>13</Height>
<Depth>13</Depth>
<Width>13</Width>
<Weight>1252</Weight>
</Piece>
</Pieces>
<PaymentAccountNumber>980261747</PaymentAccountNumber>
<IsDutiable>Y</IsDutiable>
<NetworkTypeCode>AL</NetworkTypeCode>
</BkgDetails>
<To>
<CountryCode>US</CountryCode>
<Postalcode>33034</Postalcode>
<City>Homestead</City>
</To>
</GetQuote>
</p:DCTRequest>

2019.10.23 18:56:34:9099*******
DHLWebServiceClient.GetResponseXDocument. uri=https://xmlpi-ea.dhl.com/XMLShippingServlet
2019.10.23 18:56:36:0660*******
DHLWebServiceClient.GetResponseXDocument. xDocument=<res:DCTResponse xmlns:res="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-Response.xsd">
    <GetQuoteResponse>
        <Response>
            <ServiceHeader>
                <MessageTime>2019-10-23T20:56:34.959+02:00</MessageTime>
                <MessageReference>1234567890123456789012345678901</MessageReference>
                <SiteID>v62_vtylmds3h0</SiteID>
            </ServiceHeader>
        </Response>
        <Note>
            <Condition>
                <ConditionCode>340015</ConditionCode>
                <ConditionData>The declared value is missing.</ConditionData>
            </Condition>
            <Condition>
                <ConditionCode>220001</ConditionCode>
                <ConditionData>Failure - request</ConditionData>
            </Condition>
        </Note>
    </GetQuoteResponse></res:DCTResponse>
<!-- ServiceInvocationId:20191023205634_7837_b8e0f809-3948-4ea2-a9fb-5b7f259691f1 -->

2019.10.23 18:56:36:0663*******
Error. GetShippingOptions. The declared value is missing.

Posted: 5 years ago

#10150 Quote

Support

Posted: 5 years ago

#10150 Quote
The problem is in your dimensions.

You use grams.
I'll solve this issue.
1000 grams = 1 KG.

Posted: 5 years ago

#10151 Quote

Support

Posted: 5 years ago

#10151 Quote
I can't solve this issue myself.

Open your  Measures list in nop admin mode and check how you convert Gramm to KG.
You need to use this conversation
1000 Gramm = 1KG
1Gramm = 0.001KG.

Now Nopcommerce converted 2760GRAMM  => 1252KG

Please do it and write me about result.

Posted: 5 years ago

#10152 Quote

EduardoBacarin

Posted: 5 years ago

#10152 Quote
I have changed the measures and still havin the same error, you can see if I do something wrong? I've changed all measures (grams to kg, lb and oz) using grams by my primary measure.

2019.10.24 18:00:42:6967*******
DHL shipping service. (base in store) usedMeasureWeight=grams
2019.10.24 18:00:42:6972*******
DHL shipping service. (base in store) usedMeasureDimension=millimetres
2019.10.24 18:00:42:6974*******
DHL shipping service. weightUnit=KG, dimensionUnit=MM
2019.10.24 18:00:42:7242*******
DHL shipping service (in base dimension). widthTmp=120.0000, lengthTmp=80.0000, heightTmp=62.7258432012728, weightTml=321.0000
2019.10.24 18:00:42:7246*******
DHL shipping service (in DHL dimension). widthTmp=120.0000, lengthTmp=80.0000, heightTmp=62.7258432012728, weightTml=321.000000000000
2019.10.24 18:00:42:7249*******
DHL shipping service (in DHL dimension - CM KG or IN LB). widthTmp=12.0000, lengthTmp=8.0000, heightTmp=6.27258432012728, weightTml=321.000000000000
2019.10.24 18:00:42:7251*******
DHL shipping service (int). width=12, length=8, height=7, weight=321
2019.10.24 18:00:42:7267*******
DHLWebServiceClient.GetResponseXDocument. xmlRequest=<?xml version="1.0" encoding="UTF-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
<GetQuote>
<Request>
<ServiceHeader>
<MessageTime>2019-10-24T18:00:42 00:00</MessageTime>
<MessageReference>1234567890123456789012345678901</MessageReference>
<SiteID>v62_vtylmds3h0</SiteID>
<Password>6wrOi8Tkz5</Password>
</ServiceHeader>
</Request>
<From>
<CountryCode>MX</CountryCode>
<Postalcode>64520</Postalcode>
<City>Monterrey</City>
</From>
<BkgDetails>
<PaymentCountryCode>MX</PaymentCountryCode>
<Date>2019-10-24</Date>
<ReadyTime>PT18H0M</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<Height>7</Height>
<Depth>8</Depth>
<Width>12</Width>
<Weight>321</Weight>
</Piece>
</Pieces>
<PaymentAccountNumber>980261747</PaymentAccountNumber>
<IsDutiable>Y</IsDutiable>
<NetworkTypeCode>AL</NetworkTypeCode>
</BkgDetails>
<To>
<CountryCode>US</CountryCode>
<Postalcode>33034</Postalcode>
<City>Homestead</City>
</To>
</GetQuote>
</p:DCTRequest>

2019.10.24 18:00:42:7270*******
DHLWebServiceClient.GetResponseXDocument. uri=https://xmlpi-ea.dhl.com/XMLShippingServlet
2019.10.24 18:00:43:7179*******
DHLWebServiceClient.GetResponseXDocument. xDocument=<res:DCTResponse xmlns:res="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-Response.xsd">
    <GetQuoteResponse>
        <Response>
            <ServiceHeader>
                <MessageTime>2019-10-24T20:00:42.412+02:00</MessageTime>
                <MessageReference>1234567890123456789012345678901</MessageReference>
                <SiteID>v62_vtylmds3h0</SiteID>
            </ServiceHeader>
        </Response>
        <Note>
            <Condition>
                <ConditionCode>340015</ConditionCode>
                <ConditionData>The declared value is missing.</ConditionData>
            </Condition>
            <Condition>
                <ConditionCode>220001</ConditionCode>
                <ConditionData>Failure - request</ConditionData>
            </Condition>
        </Note>
    </GetQuoteResponse></res:DCTResponse>
<!-- ServiceInvocationId:20191024200042_42d7_c9ea4811-17b3-46d2-aa6f-70f189976455 -->

2019.10.24 18:00:43:7183*******
Error. GetShippingOptions. The declared value is missing.

Posted: 5 years ago

#10153 Quote

Support

Posted: 5 years ago

#10153 Quote
You did wrong rate from GRAMM to KG.
You set rate 1.
Your product has weight 321 GRAMM.
Nopcommerce converts the weight to KG and we has 321 KG.
You wanted to send 321 KG.

Correct value is 0.321 KG.
Fix this issue with rates between Gramm and Kg.

Posted: 5 years ago

#10154 Quote

Support

Posted: 5 years ago

#10154 Quote
Pay attention to "Ratio to primary weight". Set it 0.001

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved