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

Resolution
To resolve this error:
- Edit the Dynamic NAV SOAP connector.
- Mark this checkbox for Use NTLM.
- Click on Validate and Save

- Click on Data Souce then Bulk Source.
- And click on Query.
- Then Create a Bulk Query.

- Preview the query with no error.
We must use NTLM if the NAV SOAP connection requires NTLM authentication.