I tried importing an Advanced PDF template to edit...
# suitescript
s
I tried importing an Advanced PDF template to edit. When deploying through suitecloud object:update, I am getting an error:
The following objects were not updated from the account to your project:
- custtmpl_xxxxx.template: Invalid Record Type
Have I missed to do something?
m
When deploying PDF templates, you need to download both the
<filename>.xml
and the
<filename>.template.xml
. Both of these should be included in the
objects
section of your
deploy.xml
.
s
yes they are
my deploy.xml is the auto-generated one.
<deploy>
<configuration> <path>~/AccountConfiguration/*</path> </configuration> <files> <path>~/FileCabinet/*</path> </files> <objects> <path>~/Objects/*</path> </objects> <translationimports> <path>~/Translations/*</path> </translationimports> </deploy>
@Mike Robbins Should I modify anything?
sorry nvm. I thougt object:update is the deploy for objects. it is still project:deploy.
m
If the only objects you have in your project are for the PDF template, then you shouldn’t need to modify anything. If you have many objects but only want to deploy the PDF template, then you should change the
<objects>
section and include a
<path>
for the
.xml
and
.template.xml
files for your PDF template. Then run
project:deploy
.