DOCUMENT NOT GETTING PUBLISHED

harshal bundelkhandi asked on December 19, 2015 12:32

Hello Support ,

please see attached screenshot for better understanding the my issue.

I am working on one website while i am creating new document in tree getting issue in this.unable to open the document .i am using with kentico version 7.0 please suggest me why this issue is occurring & it will resolved. Regards, HarshalImage TextImage Text

Correct Answer

Juraj Ondrus answered on December 22, 2015 07:09

Hi,
Thank you for the kind words.

I would recommend to follow the API examples. There are various sections - depending whether you are working with documents under workflow or not. The workflow API covers also the non workflow cases and is recommended to use - in case you will turn the workflow on in the future, you will not have to update the code.

0 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on December 19, 2015 14:42

Hi,

You can tell by the icons next to the document what current state it is in.

More details in Kentico 7 here: http://devnet.kentico.com/docs/7_0/devguide/index.html?document_status_icons.htm

In this case:

  • gray means - This icon appears next to documents that are archived. Archived documents are no longer visible on the live site, but are still present in the content tree and can be restored when needed. You can archive a document by clicking the Archive button on the Properties -> Workflow tab.

  • lock - This icon indicates that the document is currently checked-out, i.e. that it is being edited by another user. You can't edit a document while it is checked out, you have to wait until the user finishes editing and checks the document back in. See Development -> Workflow and versioning -> Content locking for more details.

  • greenish/blue - This icon appears next to documents that have been submitted to a Translation service and are waiting for the translation to be completed.

Greets,

David

0 votesVote for this answer Mark as a Correct answer

harshal bundelkhandi answered on December 21, 2015 08:50

Hi David,

Thanks for valuable feedback

can you suggest how can i resolve this issue.

i am using kentico 7 ultimate version license key.

so Translation services options are disabled.

any updation in DB or any Configuration.

please let me know

Thanks, Harshal

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 21, 2015 09:32

Hi,

This error usually means DB inconsistency. Is there any custom code in place that is working with documents?

Could you please check the DB tables for storing content and make sure that the record in CMS_Tree points to correct record in CMS_Document and from this table there is a relation ship pointing to the coupled data table?

0 votesVote for this answer Mark as a Correct answer

harshal bundelkhandi answered on December 21, 2015 12:43 (last edited on December 21, 2015 12:44)

Hi,

Thanks for valuable Feeback.

yes i am using with Custom code. can you please suggest me in this.

getting stuck with Custom Code development.

Regards, Harshal

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 21, 2015 13:05

Hi,

In this case I would recommend to check the DB records and debug your code to see which part is not done correctly. It depends what code and API you are using. I would recommend following the API examples.

0 votesVote for this answer Mark as a Correct answer

harshal bundelkhandi answered on December 21, 2015 13:46

Can you please share API example that you asking.

thanks for quick response.

I am creating one custom module. doing this it will generate the Document & pages in various directories as per our requirement.

i am working on My DOCUMENT TYPE CLASS TABLE , CMS_ATTACHMENT TABLE,CMS_DOCUMENT TABLE,CMS_TREE Table DB TABELS.

from my custom module it will generating document but not publishing please see previous screenshot that i have attached

Thanks Juraj you always help me out. giving valuable suggestions & hints in kentico development

Regards, Harshal

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.