MSG: [DM_SYSOBJECT_E_RENDITION_FMT_SAMEAS]error:

TECHSOLUTIONWORLD
edited October 18, 2013 in Documentum #1

Hi All

when i am trying to load rendition i am getting below error and rendition is not getting loaded.

THREAD: main; MSG: [DM_SYSOBJECT_E_RENDITION_FMT_SAMEAS]error:  "Rendition format text must be different than the original format text for EHS-02-033-00 sysobject unless the page modifier is specified."; ERRORCODE: 100; NEXT: null

Code snapshot:

IDfSysObject renditionToBeAddedto = (IDfSysObject) session2.getObject(documentID);

renditionToBeAddedto.addRendition("E:\\Export_rendition_test\\"+objectId+".pdf", "pdf");

this is because my native content and the rendition is in same format PDF.

Can some one help me how to overcome this issues ?

Thanks in Advance.

Tagged:

Comments

  • miles
    miles Member
    edited October 18, 2013 #2

    Normally rendered format is not the same as the original one.

    I think you should set "page_modifier" value using addRendtionEx2 method

    and try getContentEx2 or getFileEx2 with pageModifier argument when you export the content.

  • derekz
    derekz Member
    edited October 18, 2013 #3

    +1 - miles is correct. But before you start using page_modifier, you should really think what you're trying to accomplish. If this PDF you're adding is a rendition of the main object, then usually that (main content or primary rendition) object would be some other document format - like MS Word. But it seems that in your case your rendition PDF format is clashing with the primary content format - which begs the question why you'd have a rendition of the same format as the primary - there are valid cases where this is fine - for example if your primary PDF has 300dpi resolution and you want to add PDF of a different resolution (which usually will be smaller in terms of file size) - if that is the case, then as miles suggests, use page_modifier (which is nothing more than just a free-form string) to accomplish that - and you probably should set page_modifier to some value reflecting that (ie. page_modifier = "WebReadyPreview")