Digital Commerce SDK Troubleshooting
This topic provides hints and tips for troubleshooting and fixing common issues while using the Vlocity SDK.
In the following code sample, the SDK does not return correct data even though the fields have data in the Salesforce cache:
The API response is as follows:
The root cause of this issue is that the SDK maps fields in the following format:
You should ensure that the namespace specified in the SDK matches the one defined for the org.
After setting the correct namespace, the SDK will return correct values from related fields.