RE: How do we export through cli?

How do we export through cli?

WilliamS Beginner Asked on July 17, 2019 in Tools & Utilities.
Add Comment
1 Answers

Answer:

This command will export objects in studio and scheduler project, including entire layer or project.

Below is the command for export:

-dicmd export [-u userName -w userPassword] -p ProjectName [-l LayerName] [-o DOBJ|DATAPOINT|NSEQ|EXPR|UDF|DATASUBFLOW|DATAFLOW|DATASTREAM|JOBFLOW|SCHTASK|SCHCAL|SCHEMAIL|SCHFILE|SCHEDULER|PROJECTPARAMS] [-t NZ|TD|OR|FF|PG|DB|HV|MS|BI|CO|SF|ED|GP|HQ|HD|JS|HB|XD|SP|TW|FB|SK|JM|KK|CS|SY|SS|TS|SN|MY|BQ|RT|AV] [-c DataPointName] [-g GroupName] [-n ObjectName] -f OutJSONFileName

Example, need to export for datapoint

– dicmd export -u Administrator -w Administrator -p new_prj -o DATAPOINT -t TD -g TERADATA -n td_conn -f td_conn

If we miss any of the argument, then below mentioned error will appear.

-while exporting the file [ Invalid command Syntax: Required arguments are -p, -o, -t, -g -n [, -f]]

with exit code: 1

Example, export for dataflow

-dicmd export -u Administrator -w Administrator -p new_prj -l layer_1 -o DATAFLOW -n DATA_FLOW_NAME_1 -f DF_1

Suppose, if we don’t have dataflow name which we mentioned in command in a project then below mentioned error occurs.

-while exporting the file [ ESM00055: Design DATA_FLOW_NAME does not exist in layer_1 of new_prj.]

Below mentioned error will appear when any of argument miss instead of required arguments while exporting dataflow

while exporting the file [ Invalid command Syntax: Required arguments are -p, -l, -o, -n [, -f]] with exit code: 1.

And not only for dataflow, the same error will show when execute with job flow.

Expert Answered on July 17, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.