Article ID: 123272, created on Oct 27, 2014, last review on Oct 27, 2014

  • Applies to:
  • Business Automation 5.5

Symptoms

DomainNamesAvailability_API call fails with an exception:

U3lzdGVtIEVycm9yCgpEYXRhIHBhY2tldCB0eXBlIGVycm9yLiBUeXBlOiAxIEluZGV4OiA3Cgo=

which is:

System Error
Data packet type error. Type: 1 Index: 7

The API call used is similiar to:

<?xml version="1.0" encoding="UTF-8" ?>
<methodCall>
  <methodName>Execute</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>Server</name>
            <value>DOMAINGATE</value>
          </member>
          <member>
            <name>Method</name>
            <value>DomainNamesAvailability_API</value>
          </member>
          <member>
            <name>Params</name>
            <value>
              <array>
                <data>
                  <value>
                    <i4>10</i4>
                  </value>
                  <value>
                    <i4>1</i4>
                  </value>
                  <value>mydomain</value>
                  <value>
                    <i4>1</i4>
                  </value>
                  <value>
                    <i4>1</i4>
                  </value>
                  <value>
                    <i4>0</i4>
                  </value>
                  <value>
                    <i4/>
                  </value>
                  <value>
                    <i4>0</i4>
                  </value>
                  <value/>
                </data>
              </array>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Cause

An empty value <i4/> is passed. Since the CountIPlan is passed as 0, the next parameter is CountTransferKey. Passing an empty value for this parameter causes an exception.

Resolution

Use 0 instead of empty value.

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 801221f8cd76fba7300d1e6817c8e08b 92711db0799e8aefe8e51f12dace0496

Email subscription for changes to this article
Save as PDF