Cannot create collection or query assets...
I'm trying to create Collection and Query assets but having no luck. I've gone in as site admin and enabled both assets...giving them "New" and "Find" in the start menu...but nothing. Is this a bug or is there another step required? Thanks! (This works fine with other assets)
As a small update...I can create a collection and query in the Contributor interface...but the documentation states being in the Admin interface. Perhaps this is just outdated documentation? The form for creating a new collection looks different in the documentation than the actual form I'm seeing. If anyone can confirm this I'd appreciate it!
Similar Messages
-
Unable to create collection form query
Hi all,
I am trying to create a collection from query. The code is under on load - before header process and is as follows:
declare
x varchar2(4000);
begin
x:= 'select mecnum from C_MECS where MECNUM = ';
x := x||v('P13_X');
if apex_collection.collection_exists(p_collection_name=>'COLLECTIONVIEWMEC') then
apex_collection.delete_collection(p_collection_name=>'COLLECTIONVIEWMEC');
end if;
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
p_collection_name => 'COLLECTIONVIEWMEC',
p_query => x);
end;
P13_X is a text item populated from the previous page. But I am having trouble and am getting an error: Ora-00904"P36006" invalid identifier. Any help is greatly appreciated. Thanks in advance, regards,
Suma.Must confess to not actually using collections yet (don't burn me for that!)
What I would be tempted to do it to replace your two lines of defining x with
x:= 'select mecnum from C_MECS where MECNUM = &P13_X.';
And then possibly setting this into another page item and verifying the query is syntatically correct
:P13_TEMP_ITEM_SQL_QUERY := x;
Phil -
Cannot create collective PO for pull scenario
Hello,
We want to realize the basic distribution scenario (R43 in Retail Best Practice) which involves creating initial STOs from DC to stores and further creating collective PO. It looks like all basic setup has been done. Nevertheless the WF10 returns "No documents selected" error. Can anybody help please ?
Best regards,
OlegHi Oleg,
Check the following :
1. Supply source of the store must be "2" ( Internal).
2. Supplying site must be assigned at the site master level, either at the site level or site/merchandise category level.
3. Distribution profile in the respective DC ( based on point 2) must be Flowthrough ( Check config for the profile).
Regards
Prabhu -
Create collection from query with bind variable
Apex 4.0.2
Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?
Thanks
procedure create_collection_from_query_b(
-- Create a named collection from the supplied query using bulk operations. The query will
-- be parsed as the application owner. If a collection exists with the same name for the current
-- user in the same session for the current Flow ID, an application error will be raised.
-- This procedure uses bulk dynamic SQL to perform the fetch and insert operations into the named
-- collection. Two limitations are imposed by this procedure:
-- 1) The MD5 checksum for the member data will not be computed
-- 2) No column value in query p_query can exceed 2,000 bytes
-- Arguments:
-- p_collection_name = Name of collection. Maximum length can be
-- 255 bytes. Note that collection_names are case-insensitive,
-- as the collection name will be converted to upper case
-- p_query = Query to be executed which will populate the members of the
-- collection. If p_query is numeric, it is assumed to be
-- a DBMS_SQL cursor.
-- example(s):
-- l_query := 'select make, model, caliber from firearms';
-- apex_collection.create_collection_from_query_b( p_collection_name => 'Firearm', p_query => l_query );
p_collection_name in varchar2,
p_query in varchar2,
p_names in wwv_flow_global.vc_arr2,
p_values in wwv_flow_global.vc_arr2,
p_max_row_count in number default null)
;VANJ wrote:
Apex 4.0.2
Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?Not tried it, but guessing something like
apex_collection.create_collection_from_query_b(
p_collection_name => 'foobar'
, p_query => 'select f.foo_id, b.bar_id, b.baz from foo f, bar b where f.foo_id = b.foo_id and f.x = to_number(:p1_x) and b.y = :p1_y'
, p_names => apex_util.string_to_table('p1_x:p1_y')
, p_values => apex_util.string_to_table(v('p1_x') || ':' || v('p1_y'))) -
How to create a select query to compare a collection via jpa?
I'm new to jpa (java persistence) and its query language.
If I've an entity named "Person" with a collection of Addresses (a one-to-manay relationahip), how do I create a Select query to get a person by using a collection of Addresses as its input parameter?
Would "SELECT p FROM Person p JOIN p.addresses = :addresses" work?Hi,
You can try the below logic:
STATISTICS.date_reg} >= '27-may-2011' and { STATISTICS.date_reg} < ' 27-June-2011'
I guess you are trying to apply this condition.
Here in selection formula you need not to give select and from.
Cheers,
Kiran -
ERROR: Cannot create authcontext with null org-Naming query failed code:21
I use OpenSSO Enterprise 8.0 Update 1 Patch1 Build 6.1(2009-June-9 12:56)
I try to evaluate the Apache 2.2 web agent.
It's been installed without errors, and both the OpenSSO and Apache server restarted.
The agent profile's been created. Also, I use the default (OpenDS) configuration repository
for OpenSSO, but an external (DSEE) user data directory.
I think I did all the required steps with regards to both directories, since I don't see any error
in the LDAP logs, each entry seems to be found as expected, the BIND operations are all
successfull.
Also, I use a sub-realm rather than the default top realm, and thus, I've modified the agent configuration
(in the agent profile) so that the login URL is now ... /UI/Login?realm=myrealm
When I try to access the Apache homepage, I get an error 500. The most recent OpenSSO server log file
(...../opensso/debug/Authentication) contains the following message:
ERROR: Cannot create authcontext with null org
The most recent agent log file (....../apache22_agent/Agent_001/logs/debug/amAgent) has the following error:
2009-07-07 17:08:11.992 Error 10513:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
I don't know what else I can do to debug this problem and find a solution. Any idea ?Thank you Shubba,
With all available log details enabled, I now have the following messages on the agent side:
2009-07-09 10:14:51.731MaxDebug 5613:80149a50 all: No value specified for key com.sun.identity.agents.config.profile.attribute.mapping, using default value .
2009-07-09 10:14:51.731 Debug 5613:80149a50 NamingService: BaseService::doRequest(): Using server: http://portable.antibes.net:8080/opensso/namingservice.
2009-07-09 10:14:51.731MaxDebug 5613:80149a50 NamingService:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RequestSet vers="1.0" svcid="com.iplanet.am.naming" reqid="10">
<Request><![CDATA[
<NamingRequest vers="3.0" reqid="2" sessid=""AQIC5wM2LY4SfcyaGFgc5h9Y7/kpf4f//ml82oVfNlbWxQE=@AAJTSQACMDE=#""> <GetNamingProfile> </GetNamingProfile> </NamingRequest>]]> </Request>
</RequestSet>
2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest Request line: POST /opensso/namingservice HTTP/1.0
2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Cookie and Headers =Host: portable.antibes.net
2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Content-Length =Content-Length: 334
2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Header Suffix =Accept: text/xml
Content-Type: text/xml; charset=UTF-8
2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Total chunks: 7.
2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Sent 7 chunks.
2009-07-09 10:14:51.728 Debug 5613:80149a50 NamingService: HTTP Status = 500 (Internal Server Error)
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading headers.
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Server: Apache-Coyote/1.1
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Content-Type: text/html;charset=utf-8
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Date: Thu, 09 Jul 2009 08:14:51 GMT
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Connection: close
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading body content of length: 13830487939496281954
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 all: Connection::waitForReply(): returns with status success.
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Completed processing the response with status: success
2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: <html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: AMSetupFilter.doFilter
com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:117)
</pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
com.iplanet.services.comm.server.PLLRequestServlet.doPost(PLLRequestServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
2009-07-09 10:14:51.729 Warning 5613:80149a50 NamingService: BaseService::doHttpPost() failed, HTTP error = 500
2009-07-09 10:14:51.729 Debug 5613:80149a50 NamingService: NamingService()::getProfile() returning with error code HTTP error.
2009-07-09 10:14:51.729 Error 5613:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
In my Tomcat server (OpenSSO server web container), I have the following errors:
Jul 9, 2009 10:12:35 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 22746 ms
[Fatal Error] :2:46: Element type "NamingRequest" must be followed by either attribute specifications, ">" or "/>".
java.lang.NullPointerException
at com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
at com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
at com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
at ...
It seems like the problem comes from the couple of closing square brackets in the NamingRequest tag:
</NamingRequest>]]>
I don't know where it comes from, so if you've an idea I'd enjoy .
Cheers, -
Error message:FRM-12001: Cannot Create the record group(check your query)
Requirement: Need to get employee name and number in the LOV in search criteria.
So I created LOV "full_name" and Record group Query under Employee Name property palette with
select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number
from apps.per_all_people_f papf, apps.per_person_types ppt
where sysdate between papf.effective_start_date and papf.effective_end_date AND papf.person_type_id=ppt.person_type_id AND ppt.system_person_type IN ('EMP', 'OTHER', 'CWK','EMP_APL')
AND PPT.default_flag='Y' and papf.BUSINESS_GROUP_ID=1
order by papf.full_name
I was unable to save and getting error message "FRM-12001: Cannot Create the record group(check your query)".
I cant use PER_ALL_PEOPLE_F.FULL_NAME since full name here is last_name||title||middle_names||firstname.
But my requiremnet is papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name .
Can any one of you help me.First, Magoo wrote:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name ( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
for l_rec in ( select decode ( p_title, null, null, p_title || ' ' ) ||
p_last_name || ', ' || p_first_name ||
decode ( p_mid_names, null, null, ' ' || p_mid_names ) full_name
from dual ) loop
return ( l_rec.full_name );
end loop;
end;</font></pre>
Magoo, you don't ever need to use Select from Dual. And the loop is completely unnecessary, since Dual always returns only one record. This would be much simpler:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name
( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
Return ( Ltrim( Rtrim ( p_title
||' ' ||p_last_name
||', '||p_first_name
||' ' ||p_middle_names )));
end;</font></pre>
And second:
user606106, you did not mention how you got your record group working. However, you DO have an issue with spaces. If you change this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number </font></pre>
to this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select Ltrim(Rtrim(papf.title||' '||papf.last_name||', '
||papf.first_name||' '||papf.middle_names)) AS emp_full_name,
papf.employee_number</font></pre>
it should work. The Ltrim(Rtrim()) removes leading and trailing spaces from the resulting full name. -
FRM-12001: Cannot create the record group (check your query).
I WANT TO ADD A RECORD GROUP IN PRI BUILD FORM THE QUARY IS VERY SIMPLE LIKE
SELECT item_code
FROM items
WHERE active = 'Y'
AND item_code like 'FAJ%'
BUT THE SYSTEM SHOW THE ERROR MESSAGE
Cannot create the record group (check your query).Make sure the user connected to the database from the forms builder has the privilege of select from the table, or there's a synonym.
Try your query from SQL*Plus connected with the same user.
Tony -
Help with Jsp: logic:iterate Cannot create iterator for this collection
Hello,
I am developing a jsp with struts. This is the snap of the code:
<logic:iterate id="prod" collection="productList" >
<tr align="center">
<td><html:text property="prodDesc" size="50" indexed="true"/></td>
<td>
<html:select property="prodUnit" indexed="true">
<option selected>-</option>
<OPTION VALUE='NMB'>NMB
<OPTION VALUE='TEN'>TEN
<OPTION VALUE='TPR'>TPR
<OPTION VALUE='GWH'>GWH
</html:select>
</td>
<td><html:text property="prodQty" size="20" indexed="true"/></td>
<td><html:text property="prodVal" size="20" indexed="true"/></td>
</tr>
</logic:iterate>"productList" is defined as an array of Product[], "prod" is defined as a single Product object in the form. But when i run the page, it gives me this errors:
"javax.servlet.jsp.JspException: Cannot create iterator for this collection".
I also tried to make "productList" an ArrayList type, but it game me this same error.
We are using Websphere 4.0 with Struts 1.1.
Anyone can help?
Thanks a lot.
All the best,
warrenHi , I have similar problem. wonder anyone can help me. I have a datastructure. ArrayList contains list of Hashtable; each Hashtable has two key-value sets ; for each key-value set , value is a ValueObject.
My jsp works ok. but when I click on the radio butten for one radio group, it sets not only the porperty on that row, but the rows belows ,which suppose to be another radio group , because I am using indexed="true". each row should be a individual group seperated by the name poDisplayVO[i] , as show in the html generated .
<!-- JSP -->
<logic:iterate id="poDisplayVO"
name="testForm"
property="poDisplayVOList"
type="java.util.Hashtable">
<tr>
<td>
<bean:write name="poDisplayVO" property="name"/>
</td>
<td>
<% String val = ((java.util.Hashtable)poDisplayVO).get("subjAreaName").toString();%>
<html:radio indexed="true" name="poDisplayVO" property="fosVO.select" value="<%=val %>" />
<bean:write name="poDisplayVO" property="subjAreaName"/>
</td>
<td>
<html:radio indexed="true" name="poDisplayVO" property="fosVO.select" value="no" /> NO
</td>
<td>
<html:radio indexed="true" name="poDisplayVO" property="fosVO.select" value="yes" /> YES
</td>
</tr>
</logic:iterate>
<! ------------------------ html genterated ------------------------------------------------>
the HTML generated as folllows:
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="Accounting">
Accounting
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[0].fosVO.select" value="yes"> YES
</td>
</tr>
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="Bookkeeping">
Bookkeeping
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[1].fosVO.select" value="yes"> YES
</td>
</tr>
<tr>
<td>
Accounting Studies
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="Computerized Accounting(Duplicate)">
Computerized Accounting(Duplicate)
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="no"> NO
</td>
<td>
<input type="radio" name="poDisplayVO[2].fosVO.select" value="yes"> YES
</td>
</tr>
<! ------------------------ action form-----------------------------------------------
public ArrayList getPoDisplayVOList() {
return poDisplayVOList;
public void setPoDisplayVOList(ArrayList list) {
poDisplayVOList = list;
public Hashtable getPoDisplayVO(int i) {
Object obj = poDisplayVOList.get(i);
if (obj == null)
obj = new Hashtable();
poDisplayVOList.add(obj);
return (Hashtable)poDisplayVOList.get(i);
public void setPoDisplayVO(Hashtable programDisplayVO, int i) {
poDisplayVOList.add(i, programDisplayVO);
} -
ServletException: Cannot create iterator for this collection
hi,
i am using struts action class with struts tags to display
data in jsp page.
in struts class i am return arraylist ,
same list i am displaing in jsp.
if Arraylist have data ,i am not getting error.
but if arraylist empty ,i am getting ServletException: Cannot create iterator for this collection
<logic:iterate id="result" name="fileList" >
<td><bean:write name="result" property="fileName"/></td>
</logic:iterate
can any one help how to avoid this exception?
thanks
siavYou could use <bean:size> to get the size of the list
and conditionally execute the logic:iterate,
something like this :
That will work, but not necessary. If the collection is empty, the iterate tag just skips - it doesnt throw an exception (tested)
The problem I guess is that the bean with the specified name is not a Collection. It may be a property of the bean that is a collection in which case the tag should have a property attribute.
ram. -
Cannot create a calendar collection because there are too many already present in
My OS X Server (Yosemite) error log is throwing this error:
2014-10-22 00:03:07+0800 [-] [caldav-2] [-] [twistedcaldav.storebridge.CalendarCollectionResource#error] Cannot create a calendar collection because there are too many already present in <twistedcaldav.directory.calendar.DirectoryCalendarHomeResource object at 0x10743a750>
...when I attempt to add more than 50 lists in the Reminders app. I had a similar issue in Mavericks. Is this "50" number available to modify in a config file somewhere?
My plan is to manage GTD-type projects in my Reminders apps (on iOS and OS X), but this limit is keeping me from creating a list for EVERY project I have.Woohoo! I set the integer to "500" and I now have over 200 lists added, and syncing, to my Reminders app and related tools.
Here's exactly what I did after reading the response from Linc Davis:
Stop the Calendar service
Create /Library/Server/Calendar and Contacts/Config/caldav-user.plist
Edit contents of "caldav-user.plist", setting your desired integer value:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MaxCollectionsPerHome</key>
<integer>500</integer>
</dict>
</plist>
4. Start the Calendar service
Enjoy your many more lists.
Note that a file created in a place other than ~/ may have permissioning issues. To get around this, I made a copy of /Library/Server/Calendar and Contacts/caldavd-system.plist, then renamed and edited that file with nano in terminal. -
How to create Collection Based on Status Message
It's possible create a collection based on Status Message?
If yes, please post how
tks
Allanthe query given by matthew is WQL but not SQL.you cannot run the WQL query in SQL which do not support.
The error what you get is expected .some of the wmi entries that exist in sms provider may not appear in sccm query design.
Do not click on show query design as sms_statusmessage attributes cannot be retrived .After you
created the WQL Query ,just paste in query box and click Ok (Ignore the error message box).
wait for sometime and see if that display any computers.
Eswar Koneti | Configmgr blog:
www.eskonr.com | Linkedin: Eswar Koneti
| Twitter: Eskonr -
How to create an ABAP Query with OR logical expression in the select-where
Hi,
In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
Please help me on this.. Points will be rewarded.
Thanks a lot.
Regards,
Question ManHi Bhupal, Shanthi, and Saipriya,
Thanks for your replies. But that didn't answer my question.
Bhupal,
You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
Shanthi,
Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
Saipriya,
Like what I have said, this is a standard SAP code so we can't do your suggestion.
I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
Thanks a lot.
Points will be rewarded.
Regards,
Question Man -
Cannot create mysites from powershell: Original XSLT List View Web Part not found
I have a bizarre problem in my SharePoint 2013 farm. This does not occur in my test farm, only in the farm we were going to go live with.
I'm on windows Server 2012, SQLServer 2012 SP1, SharePoint 2013 April CU. 1 appserver/centraladmin server, 2 web servers.
When I log into our mysitehost and click newsfeed, it will create a mysite (even though first it displays "we are sorry there was a problem creating your site")
But from powershell, whether I use $UserProfile.CreatePersonalSite() or New-SPSite, I get the following error:
Original XSLT List View Web Part not found
So far I've only found one other person with this:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2503e42c-e114-4e89-8e00-89fe70f0b154/cannot-create-sharepoint-mysite-programmatically
This is a brand new farm, created with the same scripts I created my test farm with, and same version of SharePoint. Only the service accounts are different. (Farm account has admin on the servers right now since I was setting up profile service).
Some other errors from the same correlation ID that look related:
It can't seem to find the listemplate 101
And something looks wrong with the MySiteDocumentLibrary feature
I have tried the following:
1. run psconfig.exe on each server
2. install-spfeature -AllExistingFeatures
3. looped through the directory under Features and for each called Install-SPFeature $dirname -Force
4. uninstalled and reinstalled MySiteDocumentLibrary feature
5. blew away the whole farm (removed all servers from farm, deleted all databases) and recreated it.
6. tried creating the UPA from the CentralAdmin gui.
The only real difference I can think of between the working farm and non working farm is, I installed the working farm using RTM, then as they came out added the March PU and April CU. For this farm I installed RTM and March and April, and then ran my build
farm script.
I am at a loss. What do I need to do, re-install the binaries? That's all I can think of. What I love is that our test / POC system worked fine, and now 2 weeks before go-live I'm seeing errors on the production servers I've never seen before. Using the
same scripts no less.
Feature Activation: Feature 'Fields' (ID: 'ca7bd552-10b1-4563-85b9-5ed1d39c962a') was activated
Feature Activation: Feature 'CTypes' (ID: '695b6570-a48b-4a8e-8ea5-26ea7fc1d162') was activated
No document templates uploaded for list "$Resources:core,global_onet_solutiongallery_list;" -- none found for list template "100"
Failed to find <ListTemplate> tag corresponding to ID "101", tried both onet.xml for site definition ID "0" language "1033" and global site definition. Operation failed.
No document templates uploaded for list "$Resources:core,stylelibraryList;" -- none found for list template "121".
System.Runtime.InteropServices.COMException: A user may not remove his or her own account from a site collection.<nativehr>0x81020051</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPUserCollection.UpdateMembers
Feature Activation: Feature 'MySitePersonalSite' (ID: 'f661430e-c155-438e-a7c6-c68648f1b119') was activated
Feature Activation: Activating Feature 'MySiteDocumentLibrary'
Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'MySiteDocumentLibrary'
SharePoint Foundation Upgrade MySiteDocumentLibraryFeatureReceiveraj08n INFO Creating new My Documents library
Unknown SPRequest error occurred. More information: 0x80070002
SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://contoso/personal/cbuchholz/DOCUMENTS ,METADATAFLAGS=59
System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.GetSPObjectFromUrl ...
<nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named "/personal/cbuchholz/DOCUMENTS"
Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/personal/cbuchholz/DOCUMENTS"." and the returned error with code 0x80070002.
Attemping to add webpart id 0F6072F2-E804-4CFD-837E-BB37332B9D1C to web http://contoso/personal/cbuchholz
Adding XsltListViewWebPart calling SPRequest::CreateListViewPart. Web part id 0F6072F2-E804-4CFD-837E-BB37332B9D1C, web http://contoso/personal/cbuchholz
Feature receiver assembly 'Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryFeatureReceiver', method 'FeatureActivated' for feature 'e9c0ff81-d821-4771-8b4c-246aa7e5e9eb' threw an exception: System.InvalidOperationException: Original XSLT List View Web Part not found at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.ReplaceListViewWebPart
Feature Activation: Threw an exception, attempting to roll back. Feature 'MySiteDocumentLibrary'
Exception in EnsureFeaturesActivatedAtSite: System.InvalidOperationException: Original XSLT List View Web Part not found
Failed to activate site-collection-scoped features for template 'SPSPERS#2' in site collection 'http://contoso/personal/cbuchholz'
Failed to apply template "SPSPERS#2" to web at URL "http://contoso/personal/cbuchholz
I've had other problems in this farm: the bug where when you add Administrators to a Search Service via the Manage Service Applications page, it removes the SPSearchDBAdmin role from the search service process account. That one did not happen in the other farm.
At least other people have that one and I could just use the farm admin instead (still troublng of course).Ok,
Here is the problem:
When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
I searched all over and cannot find this documented anywhere.
Who do I contact to have Microsoft document this?
It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :) -
Help needed on creating a SAP query
Hi All,
Can somebody give me the step by step procedures of creating a SAP query and Infoset.
My requirement is to display asset master details with Asset number or Asset class as input.
Any pointers or links to create an infoset and query will br highly helpful.
Thanks,
ArunHere are couple of fields you might be needed :
AGKO Cleared Accounts
ANAR Asset Types
ANAT Asset type text
ANEK Document Header Asset Posting
ANEP Asset Line Items
ANEV Asset downpymt settlement
ANKT Asset classes- Description
ANLA Asset Master Record Segment
ANLB Depreciation terms
ANLC Asset Value Fields
ANLH Main asset number
AT02T Transaction Activity Category- Description
AT02A Transaction Code for Menu TIMN
AT10 Transaction type
AT10T Name of Transaction Type
BKDF Document Header Supplement for Recurring Entry
BKORM Accounting Correspondence Requests
BKPF Accounting Document Header
BLPK Document log header
BLPP Document log item
BLPR Document Log Index and Planned Order (Backflush)
BNKA Bank master record
BP000 Business Partner Master (General Data)
BPBK Doc.Header Controlling Obj.
BPEG Line Item Total Values Controlling Obj.
BPEJ Line Item Annual Values Controlling Obj.
BPEP Line Item Period Values Controlling Obj.
BPGE Totals Record for Total Value Controlling obj.
BPJA Totals Record for Annual Total Controlling Obj.
BSAD Accounting- Secondary Index for Customers (Cleared Items)
BSAK Accounting- Secondary Index for Vendors (Cleared Items)
BSAS Accounting- Secondary Index for G/L Accounts (Cleared Items)
BSEC One-Time Account Data Document Segment
BSEG Accounting Document Segment
BSID Accounting- Secondary Index for Customers
BSIK Accounting- Secondary Index for Vendors
BSIM Secondary Index, Documents for Material
BSIS Accounting- Secondary Index for G/L Accounts
CEPC Profit Center Master Data Table
CEPCT Texts for Profit Center Master Data
COBRA Settlement Rule for Order Settlement
COBRB Distribution Rules Settlement Rule Order Settlement
COKA CO Object- Control Data for Cost Elements
COSP CO Object- Cost Totals for External Postings
COSS CO Object- Cost Totals for Internal Postings
CRCO Assignment of Work Center to Cost Center
CSKA Cost Elements (Data Dependent on Chart of Accounts)
CSKB Cost Elements (Data Dependent on Controlling Area)
CSLA Activity master
FEBEP Electronic Bank Statement Line Items
FPLA Billing Plan
FPLT Billing Plan- Dates
GLPCT EC-PCA- Totals Table
KNA1 General Data in Customer Master
KOMK Pricing Communication Header
MAHNV Management Records for the Dunning Program
REGUT TemSe - Administration Data
SKA1 G/L Account Master (Chart of Accounts)
SKAT G/L Account Master Record (Chart of Accounts- Description)
SKB1 G/L account master (company code)
T003T Document Type Texts
T007S Tax Code Names
T087J Text
TAPRFT Text tab. for investment profile
TKA01 Controlling Areas
TKA09 Basic Settings for Versions
TKVS CO Versions
TZB0T Flow types text table
TZPAT Financial Assets Management product type texts
VBSEGS Document Segment for G/L Accounts Document Parking
VTBFHA Transaction
VTBFHAPO Transaction Flow
VTBFHAZU Transaction Activity
VTBFINKO Transaction Condition
VTIDERI Master Data Listed Options and Futures
VTIFHA Underlying transaction
VTIFHAPO Underlying transaction flows
VTIFHAZU Underlying transaction status table
VTIOF Options Additional Data
VWPANLA Asset master for securities
Maybe you are looking for
-
Help! - I can't get my airport extreme 802.11n to work
Hi everyone, So yesterday I purchased and attempted to set up my new 802.11n AirPort Extreme, however I could never seem to get it to establish a connection (even though the ethernet clearly works, as I am typing this message with it now connected di
-
Get the handler for GUIBB Feeder class from Genil implementation class
Hello, In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the fee
-
Creator 2 Problem - Docked Windows Keep Popping Up
I'm having an issue with the released version 2. I have all of my windows, i.e. Palette and Navigator on the left and Projects and Properties on the right, docked and minimized. Then, when I move to the tab of another file, these windows pop to the f
-
Problem with from_TZ function
I am getting different results for the below query when DST is about to end: same on 1 day before and on Next Day after DST Ends but different on DST Ending Day. On 24th Oct 2009 12pm afternoon, when DST is still there: sdp1:/#date Sat Oct 24 12:01:0
-
ORA 16038 log 1 sequence# 158249 cannot be archived
hi im getting this error on my database when opening ORA-16038: log 1 sequence# 158249 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online log 1 thread 1: '/bill01/app/oracle/oradata/billing/redo01.log i have tried to fr