---
schema_version: "1"
id: 0f4c1b47c9fa533824dc227d0a1a62920f2f8bc304be73ef9deb3565c6450251
title: Digital Commerce SDK Troubleshooting
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-digital-commerce-sdk-troubleshooting.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-digital-commerce-sdk-troubleshooting.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3bc7a246ea81e6681ce1f184f63423096a8e59d199120c5271be9b22a2e2032a
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Digital Commerce SDK Troubleshooting

This topic provides hints and tips for troubleshooting and fixing common issues while using the Vlocity SDK.

## Example: SDK returns 0 or null, or does not return correct data

In the following code sample, the SDK does not return correct data even though the fields have data in the Salesforce cache:

![Code sample - SDK does not return correct data](https://developer.salesforce.com/docs/media/sdk_ex1.png)

The API response is as follows:

![Code sample - API response](https://developer.salesforce.com/docs/media/sdk_ex1a.png)

## Solution

The root cause of this issue is that the SDK maps fields in the following format:

```nolang
namespace__fieldname
```

You should ensure that the namespace specified in the SDK matches the one defined for the org.

```nolang
this.digitalCommerceSDK.namespace = "vlocity_cmt";
```

After setting the correct namespace, the SDK will return correct values from related fields.

![Code sample - SDK returns correct values from related fields](https://developer.salesforce.com/docs/media/sdk_ex1b.png)
