Skip to content

Commit d83feb8

Browse files
authored
Merge pull request #16 from forcedotcom/onboarding-readme-updates-2
More README and troubleshooting doc updates
2 parents 33d9687 + 6dd27a2 commit d83feb8

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ datacustomcode deploy --path ./payload --name my_custom_script
7979
> [!TIP]
8080
> The `deploy` process can take several minutes. If you'd like more feedback on the underlying process, you can add `--debug` to the command like `datacustomcode --debug deploy --path ./payload --name my_custom_script`
8181
82+
You can now use the Salesforce Data Cloud UI to find the created Data Transform and use the `Run Now` button to run it.
83+
Once the Data Transform run is successful, check the DLO your script is writing to and verify the correct records were added.
8284

8385
## API
8486

@@ -130,12 +132,6 @@ Options:
130132
- `--client-secret TEXT`: Connected App Client Secret
131133
- `--login-url TEXT`: Salesforce login URL
132134

133-
#### `datacustomcode zip`
134-
Zip a transformation job in preparation to upload to Data Cloud.
135-
136-
Options:
137-
- `--path TEXT`: Path to the code directory (default: ".")
138-
139135
#### `datacustomcode deploy`
140136
Deploy a transformation job to Data Cloud.
141137

@@ -172,6 +168,12 @@ Options:
172168
- `--config-file TEXT`: Path to configuration file
173169
- `--dependencies TEXT`: Additional dependencies (can be specified multiple times)
174170

171+
#### `datacustomcode zip`
172+
Zip a transformation job in preparation to upload to Data Cloud.
173+
174+
Options:
175+
- `--path TEXT`: Path to the code directory (default: ".")
176+
175177
## Prerequisite details
176178

177179
### Creating a connected app
@@ -189,3 +191,7 @@ Options:
189191
7. Go back to `Setup`, then `OAuth and OpenID Connect Settings`, and enable the "Allow OAuth Username-Password Flows" option
190192

191193
You now have all fields necessary for the `datacustomcode configure` command.
194+
195+
## Other docs
196+
197+
[Troubleshooting](./docs/troubleshooting.md)

docs/troubleshooting.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Troubleshooting
2+
3+
## Common errors
4+
5+
### Python version
6+
7+
```zsh
8+
$ pip3 install salesforce-data-customcode
9+
ERROR: Ignored the following versions that require a different python version: 0.1.0 Requires-Python <3.12,>=3.10; 0.1.2 Requires-Python <3.12,>=3.10
10+
ERROR: Could not find a version that satisfies the requirement salesforce-data-customcode (from versions: none)
11+
```
12+
13+
You are not using a supported version of python. For example, this package does not support version `3.9.6`. You must upgrade to 3.11, or use
14+
[pyenv](https://github.com/pyenv/pyenv) to configure 3.11.
15+
16+
### JDK version
17+
18+
```zsh
19+
pyspark.errors.exceptions.base.PySparkRuntimeError: [JAVA_GATEWAY_EXITED] Java gateway process exited before sending its port number.
20+
```
21+
22+
This error indicates your machine either doesn't have a JDK configured, or an incompatible version of JDK is configured (e.g. 11).
23+
24+
Ensure that:
25+
- `JAVA_HOME` is setup properly and you can run `java -version` successfully
26+
- You have openJDK zulu 17 installed: https://www.azul.com/downloads/?package=jdk#zulu

0 commit comments

Comments
 (0)