cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

im createcontent command throw error "The command line is too long" with html content.

NehaAdhikari
Participant

im createcontent command throw error "The command line is too long" with html content.

Hi,

 

I am working on a python script where I need to migrate data from rst files into PTC.

I am using im createcontent command for this

I am converting rst file into html and then trying to insert the data into ptc using "im createcontent" command from CLI but  is throwing error  "The command line is too long" .

Please assist me with the resolution of this error, or if there is some better approach to do so.

Thanks in Advance.

5 REPLIES 5

Re: im createcontent command throw error "The command line is too long" with html content.

What PTC's software are you using?

Re: im createcontent command throw error "The command line is too long" with html content.

PTC Integrity 10

but I am running it from command prompt

Re: im createcontent command throw error "The command line is too long" with html content.

An example of the CLI syntax that you are using, which is causing the problem, would be needed, in order to know what the issue is.

 

You may want to open a Support case for this.

 

Relevant online help, for the im createcontent command:

http://support.ptc.com/cs/help/integrity_hc/integrity1221_hc/en/#page/IntegrityHelp%2Fim_createconte...

 

My guess, is that you're probably passing in the richcontentfield value on the command line directly, in the command, and it's probably too long for the CLI.

 

 

 

Re: im createcontent command throw error "The command line is too long" with html content.

Hi @NehaAdhikari ,

 

This is not issue with Integrity and this is python limitation. Try some alternatives like ,

- Try executing sub process instead of simple popen. Note the maximum character supported is somewhere 20000

- Try reading the content from file. You have the option "-F" in createcontent command. So store your rich content within it and try passing the same

 

Regards,

Sathish Kumar Kamaraj

Re: im createcontent command throw error "The command line is too long" with html content.

Hello, Skamaraj
I posted a Reply to ask about the -F option in the answer.
I want to upload the contents of the file as richContent by using the -F option.
There is an error that exceeds the size limit to use as a Cli, so I want to process it by putting Markdown language in a file and reading the file.
Thanks in Advance.

Tags (1)
Announcements