Back

Failed to Retrieve Data From Source: Index and Length Must Refer to a Location Within the String. Parameter name: Length

Published: May 23, 2025
Post Author Written by Maksudul Haq

We may encounter a NAV (On-Premise) SOAP data source query preview error :

Failed to retrieve data from source: Index and length must refer to a location within the string. Parameter name: length

NAV SOAP query error

Resolution

To resolve this error:

  1. Edit the Dynamic NAV SOAP connector.
  2. Mark this checkbox for Use NTLM.
  3. Click on Validate and Save
NTLM use box
  1. Click on Data Souce then Bulk Source.
  2. And click on Query.
  3. Then Create a Bulk Query.
SOAP preview data
  1. Preview the query with no error.

We must use NTLM if the NAV SOAP connection requires NTLM authentication.

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.