Reporting (Timesheet Project Aggregation) tasks "waiting to be processed" forever...
Project Server 2010 /SP2/SEM
A few days ago, a job of the type Reporting (Timesheet Project Aggregation) in the queue got "stuck" (by which I mean it shows processing but at 0%) and some, but not all,
subsequent Reporting (Timesheet Project Aggregation) jobs now automatically go to "waiting to be processed" and nothing happens. I tried canceling the original job (shows up as number one if you
select "show related jobs") and it cancels all the "waiting to be processed" jobs, but that number 1 job doesn't change.
The timesheet line information that we use for reporting does seem to be hitting the database, and the users aren't seeing any errors in their timesheets, but the queue is becoming more and more junked up with these things every day.
Also, there are jobs of this type that are completing without a problem. It doesn't seem to be tied to a specific project they are putting hours against or any other type of pattern that I can detect.
This screenshot only shows some of the jobs, there are a whole lot more in there.
Has anyone seen anything like this before? There is woefully little information out there about particular queue job types and what they mean, and google has not been forthcoming. I'd appreciate any ideas!
Elli J Project Solutions Specialist Blog: http://projectserverpants.wordpress.com/
Hi Elli
Are you performing Reporting database refresh? I see the jobs are in "Timesheet' Queue, are you able to process other timesheet jobs?
Did you check restarting SharePoint Timer Service and Project Server Queue service?
==Anil==
Similar Messages
-
Hi all,
I am using project server 2007 in virtual environment. Before some time, my project server queue service was not starting & it gave Error: 1053. Then server team made some small changes in registry & resolved the problem. After that queue service
was in running condition. But when any job goes into queue, it processed the job first, then after some processing, it goes into "waiting to be processed", and after some time it again starts processing. So, the project server queue is working very
very slow. I restarted queue, event, sql, timer services, but no benefit.
In log it is showing "Queue unable to interact with SQL.".
Please Help....
Thanks.
Thanks & Regards Pradeep GangwarHi Hrishi,
ULS log is as below:
===========================================================
02/12/2013 10:19:20.99 OWSTIMER.EXE (0x0460)
0x089C
Windows SharePoint Services Timer
5uuf Monitorable
The previous instance of the timer job 'Shared Services Provider Synchronizing Job', id '{AD482C7A-A6D5-4313-A4B6-3F5A78730F61}' for service '{54B6D7E9-6F24-459E-92AC-E11FB157B119}' is still running, so the current instance will be skipped. Consider
increasing the interval between jobs.
02/12/2013 10:20:10.58 w3wp.exe (0x04C0)
0x13FC
Windows SharePoint Services General
8m90 Medium
105 heaps created, above warning threshold of 32. Check for excessive SPWeb or SPSite usage.
02/12/2013 10:20:29.99 OWSTIMER.EXE (0x0460)
0x089C
Windows SharePoint Services Timer
5uuf Monitorable
The previous instance of the timer job 'Config Refresh', id '{5BA90EA2-D960-4F00-BF99-2C9C96056FB1}' for service '{46CB2006-65AC-40C6-9B5D-E2924F18B8CD}' is still running, so the current instance will be skipped. Consider increasing the interval
between jobs.
==========================================================
And in Event Viewer, it is showing:
==========================================================
Log Name: Application
Source: Office SharePoint Server
Date: 12-02-2013 10:14:02
Event ID: 7761
Task Category: Project Server Queue
Level: Error
Keywords: Classic
User: N/A
Computer: xyz
Description:
Standard Information:PSI Entry Point:
Project User: domain\epmadmin
Correlation Id: a5e020df-ee43-417f-b47c-a1f1142fe2cf
PWA Site URL: http://xyz/PWA
SSP Name: SharedServices1
PSError: Success (0)
An unxpected exception occurred in the Project Server Queue. Queue type (Project Queue/Timesheet Queue): ProjectQ. Exception details: CompleteGroup failed.
===========================================================================================================================================================
Log Name: Application
Source: Office SharePoint Server
Date: 12-02-2013 10:14:02
Event ID: 7758
Task Category: Project Server Queue
Level: Error
Keywords: Classic
User: N/A
Computer: xyz
Description:
Standard Information:PSI Entry Point:
Project User: domain\epmadmin
Correlation Id: a5e020df-ee43-417f-b47c-a1f1142fe2cf
PWA Site URL: http://xyz/PWA
SSP Name: SharedServices1
PSError: Success (0)
Queue SQL call failed. Error: System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_MSP_QUEUE_PROJECT_GROUP_ARCHIVE'.
Cannot insert duplicate key in object 'dbo.MSP_QUEUE_PROJECT_GROUP_ARCHIVE'.
===========================================================================================================================================================
Log Name: Application
Source: Office SharePoint Server
Date: 12-02-2013 10:14:02
Event ID: 7754
Task Category: Project Server Queue
Level: Error
Keywords: Classic
User: N/A
Computer: xyz
Description:
Standard Information:PSI Entry Point:
Project User: domain\epmadmin
Correlation Id: a5e020df-ee43-417f-b47c-a1f1142fe2cf
PWA Site URL: http://xyz/PWA
SSP Name: SharedServices1
PSError: Success (0)
Queue unable to interact with SQL. Queue type (Project Queue, Timesheet Queue etc):
ProjectQ Exception: Microsoft.Office.Project.Server.BusinessLayer.Queue.QueueSqlException: CompleteGroup failed --->
System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_MSP_QUEUE_PROJECT_GROUP_ARCHIVE'.
Cannot insert duplicate key in object 'dbo.MSP_QUEUE_PROJECT_GROUP_ARCHIVE'.
==========================================================
Thanks & Regards Pradeep Gangwar -
Line Classification Reporting in Project Server 2010
I’m trying to understand the Line Classification (LC) functionality and reporting in Project Server 2010 having not used this before.
I have added a new LC titled ‘Billable’ to the system and then added a task to my timesheet with the new Billable LC and then logged time to both the Standard and Billable LCs of the same task (not sure why MS have decided to call this Billing Category
– rather confusing). I was expecting that when the timesheet was approved the hours in both the Standard and Billable LCs would be combined and the total show-up on the task in the MS Project Professional plan but this appears not to be
the case, only the hours logged to the Standard LC show in the project plan.
Is this correct or am I missing a step to get the new LC hours into reporting?
Thank you.Hi Jane,
I'll try to be more explicit. Hours logged against other LC than standard will NOT be lost, they will simply not be pushed to the project plan. Only those against standard LC will be pushed as actual work after PM approval.
That being said, ALL actuals regardless of the LC will be in the Reporting DB and OLAP cubes for example. Meaning that using for example one of the 3 timehseet OLAP cubes, you'll be able to report actual hours against LC, periods, projects, resources, managers...
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
Project Server 2010 Jobs All 'Waiting To Be Processed'
Hello,
We have installed Project Server 2010 for evaluation and are running into an issue when creating new projects in the Project Center. The installation included SharePoint 2010 and is a single-machine install (i.e. DB and WFE on same machine).
We can access the site without any problem and when accessing the Project Center and electing to create a new project from Basic Project Plan template, the interface processes the request and then informs us that the request was taking a long time to process
and to check the Manage Queue Jobs interface for status.
Reviewing the queued jobs reveals four queued tasks for Project Create, Project Publish Notifications, Project Publish and Start Workflow, all with a Job State of 'Waiting To Be Processed'. When we originally ran into this issue, we realized that the
User Profile Synchronization Service was configured to run with the Network Service account and that the two relevant ForeFront Identity Manager services were not running. We had read that this may cause the queue to not process requests, so we reconfigured
the system to use a domain account and started the User Profile Synchronization Service Application (which in turn started the ForeFront Identify Manager services).
However, this did not help and the jobs (as well as new jobs) are still waiting to be processed. We don't see any errors listed in the queue and can't really find relevant errors in the SharePoint logs or event viewer.
Has anyone else run into this problem who can provide some insight? Thanks.
JohnAnother thing to check John, and you may well find evidence in the ULS logs, is that the queue service is really running. Just looking in Services isn't enough. When the queue service starts it will check for the presence of PWA sites within
each and every (probably just one) Project Service Application you have running. It will then spawn an extra process for each Service Application it finds that has one or more PWA instances. So you should always see at least two Microsoft.Office.Project.Server.Queuing.exe
processes running within Task Manager -and if you just see one the looking in the ULS logs should give an indication why it didn't start up (re-starting will give you a fresh entry in the log - which will be easier than searching through lots of logs.
Best regards,
Brian.
Blog |
Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter |
Project Developer Center |
Project Server Help | Project Product Page -
Dealing with the AggregateException thrown when calling task.Wait().
I am new to the Task facility and am curious on best practice here. I am dispatching tasks something like:
Task task = Task.Run(
() =>
try
this.MyMethod(paramA, paramB);
catch
taskCancellationTokenSource.Cancel();
throw;
finally
semaphore.Release();
So if needed, the cancellation token can end things quickly and drop me quicker into the final bit of cleanup:
foreach (Task task in tasks)
try
task.Wait();
catch (AggregateException e)
foreach (Exception ie in e.InnerExceptions)
Logger...
throw;
catch (Exception e)
Logger...
throw;
Obviously this brings out only the first nested exception. What is the general way of handling this? How should rethrow in this scenario allowing me to log and track everything that may have occurred?
Thanks!Hi
Ritmo2k,
>>Obviously this brings out only the first nested exception. What is the general way of handling this? How should rethrow in this scenario allowing me to log and track everything that may have occurred?
Per my understanding, you could catch System.Exception and switch on the types
catch (Exception ex)
if (ex is Exception || ex is AggregateException)
Logger...
return;
throw;
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Ressource Problem: Export with graphical reports from projects with integrated sub-projects
Hi all,
i have the following problem with the exported data of the graphical reports possibility.
Expected output:
OLAP Cube with processes and ressources
Setup:
Project Server 2010 with Enterprise ressource pool
One main project with 6 integrated sub-projects
Every ressource is assigned to just one sub-project or the main project
Problem:
The data (work and cost) in the OLAP Cube exported from the main project is 7 times (some reports 49 times) higher than the data in the main project
Tested scenarios:
Export just processes -> data is correct
Export just ressources -> data is 7 times higher
Generate another main project with 2 sub-projects and no ressources in the main project - Export of processes and ressources -> data is 2 times higher
Because of the tested scenarios I expect that this is a problem caused by ressources and integrated sub-projects.
I hope that this community is able to help me to solve this problem.
Thanks & all the bests,
HolgerUsing the "Baseline work report", I can't reproduce your issue:
I have 1 task in each project (2 projects) with a resource assigned on each task (80hrs). The report correctly shows me 160 hrs.
Which Project 2010 SP and CU do you have? I'd suggest you to install the
latest version and see if it helps.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Project Server 2013: Project progress task available to only assigned resources.
I have a project in project server 2013. In that I am preparing the project plan. Now I want that only the respective person to whom I have assigned the task can modify the % complete. Not even the owner can edit it.
Shruti Vyas
Advaiya Solutions Pvt. Ltd.
Associate Development Services.Project owner can modify the the plan either from PWA or from MPP.
As far as % complete is concerned for assignment only Resource who will be assigned to the task can fill the actual for the task either from Task page or from Timesheet page if Single Entry Mode is enabled. No one else can fill the actual for the task from
Timesheet page and task page. AS assignment will be available to the only that resource who is assigned to the task.
But Project owner can do the modify the project plan any time either from MPP or from PWA you can not restrict him/her. But as far as % complete is concerned do the setting
To prevent the project manager from updating a team member's actual time worked, select the Only allow task updates via Tasks and Timesheets check box. it will be
available on server setting --> Task setting and display
http://technet.microsoft.com/en-us/library/gg982960(v=office.14).aspx
kirtesh -
Is there any standard report on project commitment ? Project commitment carries PR/ PO created for the project and does not include already paid items / quantities.
Hi,
You can check these reports...
Purchase Requisitions
ME2J - For Project
ME5K - For Account Assignment
Purchase Orders
ME2J - For Project
ME2K - For Account Assignment
ME3K - Outline Agreements
MBBS - Valuated Project Stock
& CJI5
Regards -
Hello,
I am creating report using "Business Intelligence Development Studio", creating "Report Server Project" connected to TFS database.
I have created Variance report and the output of report as below sample:
Project Assigned To Planned Effort Completed Remaining Variance
P1 X 20
10 5 5
P2 Y 10
10 0 0
P3 Z 5
0 5 0
By default I made Assigned To as parameter field and its showing data for selection in a drop down box (X, Y and Z) and data also filtered correctly.
Q. how can I fill resource names in a drop down of my own choice (in this scenario, I want to display only X and Y) and display data based on the selected resource? By default parameter displays all the resources which I don't want.
I did the below but could not get correct result:
1. Right Click on "Assigned To" parameter, Clicked on "Available Values" and Selected "Specify values" instead of "Get values from query"
2. Added X as Label and Value as 2 (Employee ID as mentioned in dbPerson table)
Drop down displays X but when I clicked on report, it gives an error...
Appreciate your help on this.
Regards
Abdul KalamHi Abdul,
From the document, we know that CONSTRAINED flag is used to reduce the risk of injection attacks via the specified string. If a string is provided that is not directly resolvable to qualified
or unqualified member names, the following error appears: "The restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated."
So you need to make sure the members are passed properly to the STRTOSET function. For more details, please see the following links:
http://ch1n2.wordpress.com/2010/02/21/the-restrictions-imposed-by-the-constrained-flag-in-the-strtoset-function-were-violated/
http://www.bp-msbi.com/2010/04/passing-unconstrained-set-and-member-parameters-between-reports-in-reporting-services/
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Error generating report job with the task name 'FSRM_Report_Task
Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand).
We get the following in the event logs:
Log Name: Application
Source: SRMREPORTS
Date: 09/06/2014 08:09:55
Event ID: 752
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: FILESERVER2.curriculum.riddlesdown.local
Description:
Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
Context:
- Exception encountered = Invalid argument: StorageType = '101'
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SRMREPORTS" />
<EventID Qualifiers="0">752</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-06-09T07:09:55.000000000Z" />
<EventRecordID>42920</EventRecordID>
<Channel>Application</Channel>
<Computer>FILESERVER2.curriculum.riddlesdown.local</Computer>
<Security />
</System>
<EventData>
<Data>Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
Context:
- Exception encountered = Invalid argument: StorageType = '101'
</Data>
</EventData>
</Event>
We have uninstalled and reinstalled the FSRM role service but are still having the same problem.
Anybody have any ideas?Hi,
From the error message, it failed because of "invalid argument: storagetype = '101' ".
101 means the storage type is "system" + "cache". Is there any change on your storage before the issue occurs? For example whether the source storage is changed?
FsrmStorageModuleType enumeration
http://msdn.microsoft.com/en-us/library/dd392346(v=vs.85).aspx
If you have any feedback on our support, please send to [email protected] -
Sales Order reporting in Projects.
Hi All,
I had created the PO received the goods against the same. Move Ordered the Goods & Updated the summary of the concerned Project. Hence could see the required purchase commitments against the projects.
I had created a sales order. Assigned it against a project number. Now I want to see the effect of Sales in the projects. What are the remaining steps I am required to take up in order to complete the process?
I have till now created a Sales Order only.
Looking forward to your contributions.
Thanks
Tarun.Hi
If you have a complex scenarios where part of the project execution is done within Manufacturing, and part of the projects is out of the manufacturing area, you may want to consider implementing Oracle Projects Costing and Billing, and enable Project Manufacturing for your inventory & WIP organizations.
If everything is executed within the manufacturing cycle, and you are not using Oracle Projects, then you would build your solution for reporting by projects based on GL. In that case, you might need to create a project segment in the accounting KFF. Then you need to configure all the accounting entries of costs and billing to track the project number. Even without using Oracle Projects, it might be useful to enable Project Manufacturing. You will use the Seiban numbers as projects, without cost collection into PA. Doing that will allow you to enter the seiban/project number on the sale order. You would be able to track inventory by project, and plan the WIP jobs by project. Use the Cost Management Accounting Generation Client Extension to control the accounting of the various inventory transactions, and populate the project number value. If you use WIP jobs, note that there is no client extension to control the accounting of WIP. You might consider using separate WIP ACCOUNTING CLASS for each one of your project. You would also need to struggle with the Receivables Auto Accounting for invoices and revenue generation. There you might need to use the item parameter, assuming you could set up separate delivered items per project.
Dina -
How to assign project specific task with the newly created projects ?
Hi All,
I need help. I need to assign project specific tasks (which i will be taking from staging table) other than the default task which are assigned during project creation. How do I proceed with this within same package. I am attaching the code of my package below...
CREATE OR REPLACE PACKAGE body xxpa_proj_conv_pkg as
PROCEDURE xxpa_create_project_proc(O_ERRBUF OUT VARCHAR2,O_RETCODE OUT VARCHAR2)
is
variables need to derive global parameters
v_responsibility_id NUMBER; --- PA Supervisor responsibility id
v_user_id NUMBER;
deriving global parameters-
-- Variables needed for API standard parameters
v_api_version_number NUMBER := 1.0;
v_commit VARCHAR2(1) := 'F';
v_return_status VARCHAR2(1);
v_init_msg_list VARCHAR2(1) := 'F';
v_msg_count NUMBER;
v_msg_index_out NUMBER;
v_msg_data VARCHAR2(2000);
v_data VARCHAR2(2000);
v_workflow_started VARCHAR2(1) := 'Y';
v_pm_product_code VARCHAR2(10);
---variables for catching errors---
v_error_flag number:=0;
-- Predefined Composite data types
v_project_in PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
v_project_out PA_PROJECT_PUB.PROJECT_OUT_REC_TYPE;
v_key_members PA_PROJECT_PUB.PROJECT_ROLE_TBL_TYPE;
v_class_categories PA_PROJECT_PUB.CLASS_CATEGORY_TBL_TYPE;
v_tasks_in_rec PA_PROJECT_PUB.TASK_IN_REC_TYPE;
v_tasks_in PA_PROJECT_PUB.TASK_IN_TBL_TYPE;
v_tasks_out_rec PA_PROJECT_PUB.TASK_OUT_REC_TYPE;
v_tasks_out PA_PROJECT_PUB.TASK_OUT_TBL_TYPE;
v_CREATED_FROM_PROJECT_ID varchar2(20);
v_CARRYING_OUT_ORGANIZATION_ID varchar2(20);
v_person_id NUMBER;
v_project_role_type VARCHAR2(20);
API_ERROR EXCEPTION;
v_a NUMBER;
cursor for project in data
CURSOR cur_project_in_data IS SELECT * FROM XXPA_PROJECT_IN_STG;
cursor for task data
CURSOR cur_task_in_data IS SELECT * FROM XXPA_TASK_IN_STG;
------------------------Cursors used for validations----------------------------------
cursor for product code used for validation
cursor cprc is select distinct PROJECT_RELATIONSHIP_CODE from PA_PROJECT_CUSTOMERS;
cursor for distribution rule-
cursor cdr is select DISTRIBUTION_RULE from PA_DISTRIBUTION_RULES;
cursor for project status code
cursor cpsc is SELECT PROJECT_STATUS_CODE, PROJECT_STATUS_NAME FROM PA_PROJECT_STATUSES WHERE STATUS_TYPE = 'PROJECT';
cursor for template/created from project id
cursor ccpid is select project_id from pa_projects where template_flag='Y';
BEGIN
select user_id, responsibility_id into v_user_id, v_responsibility_id
from PA_USER_RESP_V
where user_name like 'amit_kumar%'
and responsibility_name like'PA SupervisorS';
-- --Fnd_global.apps_initialize(user_id,resp_id, resp_appl_id);
-- Fnd_global.apps_initialize(v_user_id,v_responsibility_id,275);
-- -------calling global parameters---
pa_interface_utils_pub.set_global_info
p_api_version_number =>v_api_version_number,
p_responsibility_id =>v_responsibility_id,
p_user_id =>v_user_id,
p_msg_count =>v_msg_count,
p_msg_data =>v_msg_data,
p_return_status =>v_return_status
dbms_output.put_line ('Set Global status ->' || v_return_status);
----Cursor for PRODUCT RELATED DATA-----------
FOR REC IN cur_project_in_data LOOP
-----PASSING VALUES TO THE COMPOSITE DATA TYPE(PROJECT_IN_REC_TYPE)-------
----retrieving product code-----
select lookup_code into v_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Oracle Project Manufacturing';
-----retrieving and validating created from project id----
BEGIN
select project_id
into v_CREATED_FROM_PROJECT_ID
from pa_projects_all
where name=rec.created_from_project_name;
EXCEPTION
when others then
O_Retcode := '1';
O_Errbuf :='Incorrent CREATED_FROM_PROJECT_NAME';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where created_from_project_name = rec.CREATED_FROM_PROJECT_NAME;
END;
-----retrieving & validating carrying out organization id-----
BEGIN
select distinct(CARRYING_OUT_ORGANIZATION_ID)
into v_CARRYING_OUT_ORGANIZATION_ID
from pa_projects_prm_v
where CARRYING_OUT_ORGANIZATION_NAME=rec.carrying_out_organization_name;
EXCEPTION
when others then
O_Retcode := '1';
O_Errbuf :='Incorrent Carrying Out Organization name';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where carrying_out_organization_name = rec.carrying_out_organization_name;
END ;
v_project_in.pm_project_reference := rec.segment1;
v_project_in.project_name := rec.PROJECT_NAME;
v_project_in.created_from_project_id := v_CREATED_FROM_PROJECT_ID;
v_project_in.carrying_out_organization_id := v_CARRYING_OUT_ORGANIZATION_ID;
v_project_in.project_status_code := rec.PROJECT_STATUS_CODE;
v_project_in.description := rec.PROJECT_DESCRIPTION;
v_project_in.start_date := rec.PROJECT_START_DATE;
v_project_in.completion_date := rec.PROJECT_COMPLETION_DATE;
v_project_in.distribution_rule := rec.DISTRIBUTION_RULE;
v_project_in.project_relationship_code := rec.PROJECT_RELATIONSHIP_CODE;
-------------------------Validation of incoming project data--------------------------------
v_error_flag := 1;
project relationship code validation
BEGIN
for prc in cprc
loop
if (rec.PROJECT_RELATIONSHIP_CODE=prc.PROJECT_RELATIONSHIP_CODE) or (rec.PROJECT_RELATIONSHIP_CODE is null)--can be overridden from template
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
project distribution rule validation
BEGIN
for dr in cdr
loop
if (rec.DISTRIBUTION_RULE=dr.DISTRIBUTION_RULE) or (rec.DISTRIBUTION_RULE is null) null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
project status code validation
BEGIN
for sc in cpsc
loop
if (rec.PROJECT_STATUS_CODE=sc.PROJECT_STATUS_CODE) or (rec.PROJECT_STATUS_CODE is null) null since the value can be taken from template too
then
v_error_flag :=0;
else null;
end if;
end loop;
END;
dbms_output.put_line ('Error at PROJECT_STATUS_CODE>' ||v_error_flag);
validation logic for project start date
BEGIN
if TRUNC(rec.PROJECT_START_DATE) >= TRUNC(rec.PROJECT_COMPLETION_DATE)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project start date cannnot be greater than completion date';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
END;
validation logic for project completion date
BEGIN
if (TRUNC(rec.PROJECT_COMPLETION_DATE)<=TRUNC(rec.PROJECT_START_DATE))
then
if ( rec.PROJECT_STATUS_CODE='CLOSED' and rec.PROJECT_COMPLETION_DATE>sysdate)
THEN
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='completion date cannot be greater than sysdate for closed projects';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
END IF;
v_error_flag := 1;
O_Retcode := '1';
O_Errbuf :='Project closed date cannot be less than start date';
end if;
END;
--------Update staging table for the error records--------
BEGIN
if v_error_flag =1
then
O_Retcode := '1';
O_Errbuf :='Incorrect project relationship code';
Fnd_File.Put_Line (Fnd_File.LOG, O_Errbuf);
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET ERROR_FLAG ='1' ,last_updation_date='sysdate' where PROJECT_RELATIONSHIP_CODE = rec.PROJECT_RELATIONSHIP_CODE;
end if;
END;
-----------------------End of validation of incoming project data----------------------------------
---------------Project Task DATA-----------------
v_a:=0;
FOR tsk IN cur_task_in_data LOOP
v_tasks_in_rec.pm_task_reference :=tsk.task_reference ;
v_tasks_in_rec.task_name :=tsk.task_name;
v_tasks_in_rec.pm_parent_task_reference :=tsk.parent_task_reference ;
v_tasks_in_rec.task_start_date :=tsk.task_start_date ;
v_tasks_in_rec.task_completion_date :=tsk.task_completion_date ;
v_tasks_in(v_a) := v_tasks_in_rec;
v_a:=v_a+1;
end loop;
---------------end of task details------------------
--INIT_CREATE_PROJECT
pa_project_pub.init_project;
---------------------CREATE_PROJECT--------------------------
pa_project_pub.create_project(
p_api_version_number=> v_api_version_number,
p_commit => v_commit,
p_init_msg_list => v_init_msg_list,
p_msg_count => v_msg_count,
p_msg_data => v_msg_data,
p_return_status => v_return_status,
p_workflow_started => v_workflow_started,
p_pm_product_code => v_pm_product_code,
p_project_in => v_project_in,
p_project_out => v_project_out,
p_key_members => v_key_members,
p_class_categories => v_class_categories,
p_tasks_in => v_tasks_in,
p_tasks_out => v_tasks_out);
if v_return_status = 'S'
then
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Success' where segment1 = v_project_out.pa_project_number; ---P->pending & S-> Success
dbms_output.put_line('New Project Id: ' || v_project_out.pa_project_id);
dbms_output.put_line('New Project Number: ' || v_project_out.pa_project_number);
else
UPDATE XXPA.XXPA_PROJECT_IN_STG
SET INTERFACE_STATUS ='Pending' where segment1 = v_project_out.pa_project_number;
raise API_ERROR;
end if;
END LOOP;
Commit;
------Handling Exception--------
EXCEPTION
WHEN api_error THEN
dbms_output.put_line('An error occured during project creation');
IF (v_msg_count > 0 ) THEN
FOR i IN 1..v_msg_count LOOP
apps.PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_encoded => 'F',
p_msg_index => i,
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message v_data ->'||v_data);
dbms_output.put_line('Error message v_msg_data ->'||v_msg_data);
dbms_output.put_line('Error message v_msg_index_out ->'||v_msg_index_out);
dbms_output.put_line('Error message p_msg_index ->'||i);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
WHEN OTHERS THEN
dbms_output.put_line('An error occured during conversion, SQLCODE ->'|| SQLERRM);
IF (v_msg_count >=1 ) THEN
FOR i IN 1..v_msg_count LOOP
PA_INTERFACE_UTILS_PUB.get_messages(
p_msg_count => v_msg_count,
p_msg_index => i,
p_encoded => 'F',
p_msg_data => v_msg_data,
p_data => v_data,
p_msg_index_out => v_msg_index_out);
dbms_output.put_line('Error message ->'||v_data);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
end; --end procedure
END xxpa_proj_conv_pkg;
* Please tell me how to assign project specific task with the newly created projects??? *
Also please tell me how to assign multiple * Project_Relationship_Code * (ex: END CLIENT, GENERAL CONTRACTOR, PRIMARY) for a particular project during project creation?Are you not storing the project number in the staging table designed for storing the task data? You can use create_project API to create the project and tasks at the same time with one single call. You may want to try that option
-
How to get the usage of SSRS reports in project server 2010
Hi
Can any body tell me how to get the usage of the SSRS reports in Project Server 2010.
Thanks
Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.Hello,
See the links below on how to get the usage for SSRS reports:
http://sqlbadboy.wordpress.com/2013/09/12/reporting-services-reports-whos-using-them/
http://www.mssqltips.com/sqlservertip/1908/analyze-report-execution-and-usage-statistics-in-sql-server-reporting-services/
http://www.mssqltips.com/sqlservertip/1306/how-to-know-what-reporting-services-reports-are-being-used/
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
RE: Reporting after many forte tasks run in batch mode?
Actually, if you're looking for MAKEAPPDISTRIB (I assume that's how you
create distributable) you can see if the command was succesfull or not.
<<deployrep.js>> This Jscript will look for this string and it will
generate a report based on the next line in the log file.
The script assumes you have an environment variable (DESCARTES_ROOT) that
points to a folder (let's say "D:\TEST"). Under that folder you have a log
folder ("d:\test\log") which holds the deploy.log log file. You can easily
change the script to reflect your systems settings.
The generated report looks like that : <<deployrep.txt>>
Norocel Popa
Forte SysEng
(519)746-8110 x 2292
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, March 16, 1999 11:58 AM
To: Forte-Users (Adresse de messagerie)
Subject: Reporting after many forte tasks run in batch mode ?
Hi,
I would like to know if overnight builds went okay, and therefore need to
parse the log(s).
The issue is that I don't have a proper string to look for (i.e. for
grep).
If I consider 'ERROR", then the following message won't be understandable.
There might a way to cheat with the indentation (i.e. the lines with only
two first blank chars)..
Has anyone experimented such a need ?
J-Paul Gabrielli
DTS
SYSTEM ERROR: Service object MySuperApplicationServer.MySuperMgrSO has
not been partitioned. Therefore, you cannot move it to an existing
partition.
Class: qqsp_UsageException
Error #: [1602, 606]
Detected at: qqcf_StandardConfig::MoveServiceObject at 3
Error Time: Tue Mar 16 17:39:26
Exception occurred (locally) on partition "Fscript_cl9_Client",
(partitionId = B84E6180-D639-11D2-82F2-1863030AAA77:0x244:0x1,
taskId =
[B84E6180-D639-11D2-82F2-1863030AAA77:0x244:0x1.1]) in application
"fscript", pid 22713 on node rambo in environment SuperEnv.Hi,
To trap error message from Forte log, I usually do this
egrep '(EXCEPTION|Exception|exception|ERROR|Error|error)' filename
This takes a regular expression to 'egrep' all occurrences of "exception" or
"error" not matter they are in upper case or lower case.
Hope this help.
Regards,
Peter Sham.
-----Original Message-----
From: [email protected] [SMTP:[email protected]]
Sent: Wednesday, March 17, 1999 12:58 AM
To: Forte-Users (Adresse de messagerie)
Subject: Reporting after many forte tasks run in
batch mode ?
Hi,
I would like to know if overnight builds went okay, and
therefore need to parse the log(s).
The issue is that I don't have a proper string to look for
(i.e. for grep).
If I consider 'ERROR", then the following message won't be
understandable.
There might a way to cheat with the indentation (i.e. the
lines with only two first blank chars)..
Has anyone experimented such a need ?
J-Paul Gabrielli
DTS
SYSTEM ERROR: Service object
MySuperApplicationServer.MySuperMgrSO has
not been partitioned. Therefore, you cannot move it to an
existing partition.
Class: qqsp_UsageException
Error #: [1602, 606]
Detected at: qqcf_StandardConfig::MoveServiceObject at 3
Error Time: Tue Mar 16 17:39:26
Exception occurred (locally) on partition
"Fscript_cl9_Client",
(partitionId =
B84E6180-D639-11D2-82F2-1863030AAA77:0x244:0x1, taskId =
[B84E6180-D639-11D2-82F2-1863030AAA77:0x244:0x1.1]) in
application
"fscript", pid 22713 on node rambo in environment
SuperEnv.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
Query Purchasing Report per Project
Dear all,
I want to make query that can give me information about purchasing report per project. The data should come from AP invoice and AP credit memo (item and service type). I use project code field in the form to filter data.
Thanks before for your kind helpHai!
Try this
Declare @project as nvarchar(30)
set @Project = (select max(S0.PrjCode) from OPRJ S0 where S0.PrjCode='[%0]')
Select
a.Itemcode,
max(a.Name) Name,
sum(a.quantity) Quantity,
sum(a.price) Price,
sum(a.linetotal) Line_Total from (
SELECT
T1.ItemCode,
max(T1.Dscription) Name,
sum(T1.Quantity) Quantity,
sum(T1.Price) Price,
sum(T1.LineTotal) LineTotal
From
PCH1 T1,OPRJ P0
where
T1.Project=P0.PrjCode and
T1.Project = @Project
Group By
T1.ItemCode
UNION All
SELECT
T1.ItemCode,
max(T1.Dscription) Name,
sum(T1.Quantity) Quantity,
sum(T1.Price) Price,
sum(T1.LineTotal) Line_Total
From
RPC1 T1,OPRJ P0
where
T1.Project=P0.PrjCode and
T1.Project = @Project
Group By
T1.ItemCode) a
Group By
a.ItemCode
Regards,
Thanga Raj.K
Maybe you are looking for
-
Mapping of field with MinOccurs 0 in SAP XI 2.0 SP5
Hi, Our Scenario is File -> Adapter -> XI -> Idoc Adapter -> SAP We are trying to push IDoc and the mapping tool is giving an error. I am providing the error that I am getting. The snippet of the XSD for the IDoc is given below: <xsd:element name=
-
Need help in exporting multipage pdf into images
I come from Flash/Flex background and new to InDesign Server. My requirement is to convert a pdf file consisting of "n" pages into "n" jpeg images. Is it achievable using Indesign Server? What is the api I should use for achieving this? I am able to
-
Hide 'Home Logout Preferences....' links in a OAF page.
Hi guys: I need to develop a customization as following: Add controlling logic on a standard OAF page's button before submit, if the data cannot pass the check logic, it will open a new window and show the failed data. now , I have customized a new O
-
File.applicationDirectory.resolvePath fails to return the correct path in iOS
I have click.mp3 file in "assets/sounds/" directory. When I try to load a sound like below, both works fine when testing on my PC but when deployed on iOS(my iPad2), #1 works but #2 will result in no sound. Am I doing something wrong? I'm using Adobe
-
Credentials error accessing to iTunes store
I receive an error message when I try to connect to the Italy iTunes Store. The Apple TV reports an error "username or wrong password inserted" (the message is in Italian). This issue is since 10 days. Before it worked. From my iMac I have no problem