When using the ContentletAPI.findContentletByIdentifier() method I get this error:
com.dotmarketing.portlets.contentlet.business.DotContentletStateException: Can't find contentlet: 41c722b0-4766-45ee-b185-9df939840926 lang:1 live:true
However, if I run the exact same query in the query tool, it finds the content.
What gives?
Nathan I. Keiter
|
Lead Network Applications Programmer
|
Benefits Advisory Council Member
|
I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993
--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+unsubscribe@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c783b54315e4498c964e07650c8d272b%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.
Ok, so it turns out the content I was looking for wasn’t live.
Thanks Will.
Nathan I. Keiter
|
Lead Network Applications Programmer
|
Benefits Advisory Council Member
|
I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993
From: dot...@googlegroups.com [mailto:dot...@googlegroups.com]
On Behalf Of Will Ezell
Sent: Wednesday, December 20, 2017 7:29 PM
To: dot...@googlegroups.com
Subject: Re: [dotcms] [4.1.1] Java API can't find contentlet, but query tool can?
Maybe try with the pluses:
+identifier:41c722b0-4766-45ee-b185-9df939840926 +lang:1 +live:true
Also, check permissions.
On Wed, Dec 20, 2017 at 7:16 PM, Nathan Keiter <nke...@gettysburg.edu> wrote:
When using the ContentletAPI.findContentletByIdentifier() method I get this error:
com.dotmarketing.portlets.contentlet.business.DotContentletStateException: Can't find contentlet: 41c722b0-4766-45ee-b185-9df939840926 lang:1 live:true
However, if I run the exact same query in the query tool, it finds the content.
What gives?
Nathan I. Keiter
|
Lead Network Applications Programmer
|
Benefits Advisory Council Member
|
I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box
2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone:
717.337.6993
--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to
dot...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dotcms/c783b54315e4498c964e07650c8d272b%40exch13c.ms.gettysburg.edu.
For more options, visit
https://groups.google.com/d/optout.
--
--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAPL0VyFPBcCiVifsJHcdFn-ocmpq8U7bRT%3D0Pro7rcnec2JeBQ%40mail.gmail.com.