Posted on 23/03/2022 11:43:07
							
							
						 
						Hi Dmitrij,
We are using v1.2.0.15 currently. There is no variant information in the request. The error indicates an issue with a value that I found in the "VAT Bus. Posting Group". Whan I reduced the length of this value to 10 characters it works ok. So I don't think it is related to the variant field, but perhaps another temporary field in the code? Is there somethign else with the VariantId that I am missing?
The problem occurs when I am getting a single product for live price (with or without the extra parameters it is the same result):
<GetEcomData AccessUserCustomerNumber="CUST-00123">
  <tables>
    <Products type="filter">
      <Product>
        <ProductId>AU00001</ProductId>
       </Product>
    </Products>
  </tables>
</GetEcomData>
which returns fine normally like:
<?xml version="1.0" encoding="utf-16"?>
<tables version="1.0">
  <table tableName="EcomProducts">
    <item table="EcomProducts">
      <column columnName="ProductId"><![CDATA[AU00001]]></column>
      <column columnName="ProductVariantId"><![CDATA[]]></column>
      <column columnName="ProductIdentifier"><![CDATA[]]></column>
      <column columnName="ProductNumber"><![CDATA[AU00001]]></column>
      <column columnName="ProductName"><![CDATA[Cheesepop Emmenthal 65g cup]]></column>
      <column columnName="ProductPrice"><![CDATA[3.5]]></column>
      <column columnName="ProductStock"><![CDATA[1,652]]></column>
      <column columnName="ProductCurrencyCode"><![CDATA[]]></column>
    </item>
  </table>
</tables>
 
But when I increase the length of the "VAT Bus. Posting Group" code to 11 characters it gives this error I mentioned.
"The length of the string is 11, but it must be less than or equal to 10 characters."
 
Prehaps an update to v1.2.0.17 may help. But I don't want to ask them to do that unless I know this will solve the problem.
 
Regards, Jon.