Node SDF CLI file:import non-interactive "The file...
# ask-stanley-ai
p
Node SDF CLI file:import non-interactive "The file cabinet path must start with either of the following"
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like you're trying to use the SDF CLI to upload files to the NetSuite File Cabinet. However, you're encountering an issue because your local directory structure doesn't mirror the File Cabinet's structure. The SDF CLI expects the files to be in a specific folder structure, rooted at
/FileCabinet
. If your local directory structure doesn't match this, you might encounter errors. One solution could be to adjust your local directory structure to match the expected structure. For example, if you have a file at
/Customizations/JS/ClientSide/somefile.js
, you could move it to
/FileCabinet/SuiteScripts/Customizations/JS/ClientSide/somefile.js
. When running the
sdfcli
command, you should do so from the folder that contains the
FileCabinet
folder. Then, you can use the
uploadfiles
command with the paths of the files you want to upload. For example, you could use
/FileCabinet/SuiteScripts/Customizations/myscriptfile.js
. If you're trying to upload files in bulk via a CSV import, it's important to note that CSV uploads don't get put into the File Cabinet if you're using the native Import Assistant. However, you can access the File Cabinet using the
N/folder
module. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830746591
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822653949
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817689717
Please provide your feedback on this answer.