Error at 100 pieces
-
Hi,
I get an error when I increase my cart item count to 100. Works with up to 99 pieces. I have the plugin in test mode at the moment. Can you help me figure out what’s wrong? Any help appreciated. Thanks.
Request and response are here.
REQUEST
<?xml version="1.0" encoding="UTF-8"?> <p:DCTRequest xmlns:p="https://www.dhl.com" xmlns:p1="https://www.dhl.com/datatypes" xmlns:p2="https://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.dhl.com DCT-req.xsd "> <GetQuote> <Request> <ServiceHeader> <MessageTime>2018-03-27T19:12:02</MessageTime> <MessageReference>1234567890123456789012345678901</MessageReference> <SiteID>XXX</SiteID> <Password>XXX</Password> </ServiceHeader> </Request> <From> <CountryCode>FI</CountryCode> <Postalcode>XXX</Postalcode><City>XXX</City> </From> <BkgDetails> <PaymentCountryCode>FI</PaymentCountryCode> <Date>2018-03-27</Date> <ReadyTime>PT10H21M</ReadyTime> <DimensionUnit>CM</DimensionUnit> <WeightUnit>KG</WeightUnit> <Pieces> <Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>2</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>3</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>4</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>5</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>6</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>7</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>8</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>9</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>10</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>11</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>12</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>13</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>14</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>15</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>16</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>17</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>18</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>19</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>20</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>21</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>22</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>23</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>24</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>25</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>26</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>27</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>28</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>29</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>30</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>31</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>32</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>33</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>34</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>35</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>36</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>37</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>38</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>39</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>40</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>41</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>42</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>43</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>44</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>45</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>46</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>47</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>48</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>49</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>50</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>51</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>52</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>53</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>54</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>55</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>56</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>57</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>58</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>59</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>60</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>61</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>62</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>63</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>64</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>65</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>66</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>67</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>68</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>69</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>70</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>71</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>72</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>73</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>74</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>75</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>76</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>77</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>78</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>79</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>80</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>81</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>82</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>83</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>84</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>85</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>86</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>87</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>88</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>89</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>90</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>91</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>92</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>93</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>94</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>95</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>96</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>97</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>98</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>99</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece><Piece><PieceID>100</PieceID><PackageTypeCode>BOX</PackageTypeCode><Weight>0.1</Weight></Piece> </Pieces> <PaymentAccountNumber>XXX</PaymentAccountNumber> <IsDutiable>Y</IsDutiable> <NetworkTypeCode>AL</NetworkTypeCode> </BkgDetails> <To> <CountryCode>CO</CountryCode> <City>MEDELLIN</City> </To> <Dutiable><DeclaredCurrency>EUR</DeclaredCurrency><DeclaredValue>600</DeclaredValue></Dutiable> </GetQuote> </p:DCTRequest>
RESPONSE
<?xml version="1.0" encoding="UTF-8"?><res:ErrorResponse xmlns:res='https://www.dhl.com' xmlns:xsi='https://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'https://www.dhl.com err-res.xsd'> <Response> <ServiceHeader> <MessageTime>2018-03-27T21:12:04+01:00</MessageTime> <MessageReference>1234567890123456789012345678901</MessageReference> <SiteID>XXX</SiteID> <Password>XXX</Password> </ServiceHeader> <Status> <ActionStatus>Error</ActionStatus> <Condition> <ConditionCode>111</ConditionCode> <ConditionData>Error in parsing request XML:Error: The content of element type "Pieces" must match "(Piece,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?,Piece?)". at line 24, column 14</ConditionData> </Condition> </Status> </Response></res:ErrorResponse><!-- ServiceInvocationId:20180327211204_97ed_a13d283b-b683-48df-a682-ae6154c919c7 -->
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error at 100 pieces’ is closed to new replies.