Create Collab project using EDK
Hi,
How do I create a collab project using EDK methods using a Project template which is created earlier? In other words, while creating project using EDK, how to specify the project template that needs to be used for this new project?
Thanks in advance,
coveroper wrote:
Hi all,
Create a project using API pa_project_pub.create_project, then the following error is shown:
"You have submitted invalid parameters to this process, preventing its successful completion. Please contact your system administrator"
I hava recompled the $PA_TOP/patch/115/sql/PAPMPRPS.pls and $PA_TOP/patch/115/sql/PAPMPRPB.pls, the error was shown again.
how to fix it? many thanks.
Env: EBS 12.1.3
CarlPlease see if these docs help.
AMG Invalid Parameters Error Calling PA_PROJECT_PUB.Create_Project [ID 315668.1]
Saving Financial Plan Percent Complete update leads to an Error: PA_INV_PARAM_PASSED [ID 847364.1]
Thanks,
Hussein
Similar Messages
-
Delete a collab project using Server API 5.0
Is there a way to delete a collab project using the Server API 5.0? I know I can delete a project using the EDK but I need to delete a project using the Server API. Can anyone help please?
Thanks in advance.Thanks Imah.
The EDK java doc said I could use RemoteSessionFactory.getExplicitLoginContext to access Collaboration Server API but I am getting the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/plumtree/openfoundation/util/XPMalformedURLException
Any idea why? I am using EDK 5.2.0
I could open this URL ("http://hostname/ptapi/QueryInterfaceAPI.asmx") in a browser.
The code is as followed:
try {
IRemoteSession rSession = RemoteSessionFactory.getExplicitLoginContext(new URL("http://hostname/ptapi/QueryInterfaceAPI.asmx"),"Administrator", "");
} catch (Exception e){
System.out.println(e.toString());
Can anyone help please? Thanks. -
I need help - I created a project using Imovie version 11 and when I went to view it on my tv using apple TV the uality was real bad? Why is this?
I connected an HDMI cable to a connector that I bought at an Apple store. The connector connects the HDMI cable to the IPad Mini and the HDMI connects to the TV
-
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
I created a new project using iMovie. I was trying to make changes and when I went to play it back I only get music and no pictures/video. What can be done to fix this? I don't want to loose the whole project.
There are various causes for this error, see [[Firefox is already running but is not responding]] for details.
-
Unable to create team project using Agile or CMMI templates
I am getting error on creation of team project using CMMI or Agile templates. It works good with Scrum templates. Please check out the following exception details:
Module: Work Item Tracking
Exception Message: TF237091: Actual reporting settings for the field Microsoft.VSTS.Scheduling.OriginalEstimate are different from those specified in the XML. Changing these settings is prohibited. (type ProvisionValidationException)
Exception Stack Trace: at Microsoft.TeamFoundation.WorkItemTracking.Client.ClientMetadataProvisioningHelper.ThrowValidationException(String message)
at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageField.Update(XmlElement fieldElement)
at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageFieldCollection.ProcessFieldDefinitions(UpdatePackageRuleContext context, XmlElement fieldsNode, UpdatePackage batch)
at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.WITImporter.Translate()
at Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.Submit(ActionType action, Snapshot snapshot, Int32 projectId, WITImporter importer)
--- end Exception entry ---
2015-01-05T09:46:35 | Module: Work Item Tracking | Thread: 42 | Uploaded WorkItemType definition from C:\Users\dkabali\AppData\Local\Temp\TPW_tmpF771.tmp\WorkItem Tracking\TypeDefinitions\Task.xml.
---begin Exception entry---
Time: 2015-01-05T09:46:35
Module: Engine
Event Description: TF30162: Task "WITs" from Group "WorkItemTracking" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Work item type validation failed. The operation cannot be completed.
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
-- Inner Exception --
Exception Message: Work item type validation failed. The operation cannot be completed. (type WitPcwFatalException)
Exception Stack Trace: at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.UploadTypeDefinition(String file, Boolean execute)
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.Execute()
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
--- end Exception entry ---
FYI, I am using TFS 2013 Update 4. I reverted all my customizations done to scrum template. I didnt do any changes for the other templates. I am wondering how to solve this error. It is okay to install the fresh templates to work on or upgrade to a
new update. I am already using the latest TFS 2013 update 4 and I thought I should know about this error before re-install. Please help
I got stuck on this error. Please advise the related things need to be considered while doing customizations. I have to do lot of customizations that should work fine without any errors. So, Please advise the things to be taken care in process customizations.Hi Divya,
Since we haven't heard from you for a long time, I assume the issue is resolved, I mark useful reply as answer. If you have any concerns, please feel free to reopen
it or submit a new question. Thanks for your understanding.
Best regards,
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. -
Re: Can't create application project using libraries with the SunStudio Tool C.
If function "test" is called from a module written in a different language, you might be seeing a difference in the external (linker) name created for the function by different languages.
To mix C, C++ and Fortran, follow the rules in the Fortran Programming Guide, chapter 11 "C-Fortran Interface", for calling functions written in C, or for creating subroutines and functions to be called from C.
In C++ code, declare or define the function as extern "C". Then the external name of the function will be spelled the same in all three languages.
Example, where test() is written in Fortran and called from C++:
f1.f
SUBROUTINE test
BIND(C) test
f2.cc
extern "C" void test()
int main()
test();
}In addition, don't forget you need to add the option -xlang=f90 or -xlang=f95 to the CC command that links the final program.
Edited by: clamage45 on Apr 16, 2009 11:09 AMsorry my fault, the subprojects were still configured to GNU in the "Tool Collection" in the output I posted.
i now opened each subproject and made sure it is set to SunStudio just like my main project, but I still have the same error. here is my output:
Running "/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean" in /home/felix/SunStudioProjects/SubProjects_Example/main
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
cd ../hello1lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
ariel --> 1 job
rm -f -r build/Debug
rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
CCadmin -clean
cd ../hello2lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
ariel --> 1 job
rm -f -r build/Debug
rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
CCadmin -clean
cd ../hello3lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
ariel --> 1 job
rm -f -r build/Debug
rm -f dist/Debug/SunStudio-Linux-x86/libhello3lib.so
CCadmin -clean
cd ../hello4lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
ariel --> 1 job
rm -f -r build/Debug
rm -f dist/Debug/SunStudio-Linux-x86/libhello4lib.so
CCadmin -clean
ariel --> 1 job
rm -f -r build/Debug
rm -f dist/Debug/SunStudio-Linux-x86/main
CCadmin -clean
Clean successful. Exit value 0.
Running "/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug" in /home/felix/SunStudioProjects/SubProjects_Example/main
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
cd ../hello1lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk dist/Debug/SunStudio-Linux-x86/libhello1lib.a
ariel --> 1 job
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/hello1.o hello1.cc
ariel --> Job output
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/hello1.o hello1.cc
ariel --> 1 job
mkdir -p dist/Debug/SunStudio-Linux-x86
rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
ar rv dist/Debug/SunStudio-Linux-x86/libhello1lib.a build/Debug/SunStudio-Linux-x86/hello1.o
ranlib dist/Debug/SunStudio-Linux-x86/libhello1lib.a
ariel --> Job output
mkdir -p dist/Debug/SunStudio-Linux-x86
rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
ar rv dist/Debug/SunStudio-Linux-x86/libhello1lib.a build/Debug/SunStudio-Linux-x86/hello1.o
ar: creating dist/Debug/SunStudio-Linux-x86/libhello1lib.a
a - build/Debug/SunStudio-Linux-x86/hello1.o
ranlib dist/Debug/SunStudio-Linux-x86/libhello1lib.a
cd ../hello2lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
ariel --> 1 job
ariel --> 2 jobs
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk dist/Debug/SunStudio-Linux-x86/libhello2lib.a
ariel --> 1 job
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/hello2.o hello2.cc
ariel --> Job output
mkdir -p build/Debug/SunStudio-Linux-x86
CC -c -g -o build/Debug/SunStudio-Linux-x86/hello2.o hello2.cc
ariel --> 1 job
mkdir -p dist/Debug/SunStudio-Linux-x86
rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
ar rv dist/Debug/SunStudio-Linux-x86/libhello2lib.a build/Debug/SunStudio-Linux-x86/hello2.o
ranlib dist/Debug/SunStudio-Linux-x86/libhello2lib.a
ariel --> Job output
mkdir -p dist/Debug/SunStudio-Linux-x86
rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
ar rv dist/Debug/SunStudio-Linux-x86/libhello2lib.a build/Debug/SunStudio-Linux-x86/hello2.o
ar: creating dist/Debug/SunStudio-Linux-x86/libhello2lib.a
a - build/Debug/SunStudio-Linux-x86/hello2.o
ranlib dist/Debug/SunStudio-Linux-x86/libhello2lib.a
cd ../hello3lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
(...) -
How to create j2me project using jump developer desktop
Hi,
iam not understanding how to launch sun emulator when i execute
my j2me project in jump developer desktop,
and it asks for the main() function to execute,
and i write main() the control stops in main() and
the control doesn`t go to startApp().........
can any one plz help me to come out of this????
Thanks
MrajSanjay,
You might get more help on the XML forum: General XML
Jim P. -
How to create a project templace using a API?
Hi all,
I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
thanks for your any effort.
CarilHi Caroline:
If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
Thanks.
Bhanu -
Error while creating Project using API - PA_PROJECT_PUB.CREATE_PROJECT
I am working on Projects conversion and currently trying to create a project using the API.
I have recetified all the errors it was giving and struck at 1 error. please find the error message below.
"You have submitted invalid parameters to this process, preventing its successful completion. Please contact your system administrator."
It gives me this error and I was not able to know the cause for this error. Please let me know how to bypass this error and go ahead with projects conversion???
Attached below is my package:
Thanks,
Kesava
=====================================================================================================================
CREATE OR REPLACE PACKAGE xxbwp.xxbwp_pa_proj_conv_pkg AUTHID CURRENT_USER
IS
PROCEDURE xxbwp_pa_proj_conv_proc(errbuf OUT VARCHAR2
,retcode OUT VARCHAR2);
END xxbwp_pa_proj_conv_pkg;
CREATE OR REPLACE PACKAGE BODY xxbwp.xxbwp_pa_proj_conv_pkg
IS
PROCEDURE xxbwp_pa_proj_conv_proc(errbuf OUT VARCHAR2
,retcode OUT VARCHAR2)
IS
v_data VARCHAR2(2000);
v_index_out NUMBER;
v_msg_count NUMBER;
v_msg_data VARCHAR2(2000);
v_return_status VARCHAR2(1);
v_api_version_number NUMBER := 1.0;
v_commit VARCHAR2(1) := apps.fnd_api.g_false;
v_init_msg_list VARCHAR2(1) := apps.fnd_api.g_false;
v_workflow_started VARCHAR2(1) := 'Y';
v_pm_product_code VARCHAR2(30) := NULL;
v_op_validate_flag VARCHAR2(1) := 'Y';
v_project_in apps.pa_project_pub.project_in_rec_type;
v_project_out apps.pa_project_pub.project_out_rec_type;
v_customers_in apps.pa_project_pub.customer_tbl_type;
v_key_members apps.pa_project_pub.project_role_tbl_type;
v_class_categories apps.pa_project_pub.class_category_tbl_type;
v_tasks_in apps.pa_project_pub.task_in_tbl_type;
v_tasks_in_rec apps.pa_project_pub.task_in_rec_type;
v_tasks_out apps.pa_project_pub.task_out_tbl_type;
v_org_roles apps.pa_project_pub.project_role_tbl_type;
v_structure_in apps.pa_project_pub.structure_in_rec_type;
v_ext_attr_tbl_in apps.pa_project_pub.pa_ext_attr_table_type;
v_deliverables_in apps.pa_project_pub.deliverable_in_tbl_type;
v_deliverable_actions_in apps.pa_project_pub.action_in_tbl_type;
-- Variables declaration related to project_in_rec_type
l_pm_project_reference VARCHAR2(25);
l_pa_project_id NUMBER;
l_pa_project_number VARCHAR2(25);
l_segment1 VARCHAR2(25);
l_project_name VARCHAR2(30);
l_description VARCHAR2(250);
l_long_name VARCHAR2(240);
l_department_mapping VARCHAR2(50);
l_department_mapping_c VARCHAR2(50);
l_department_mapping_e VARCHAR2(50);
l_created_from_project_id NUMBER;
l_carrying_out_organization_id NUMBER;
l_proj_start_date DATE;
l_completion_date DATE;
l_temp_project_type VARCHAR2(30);
l_company_id VARCHAR2(10);
l_company_id_c VARCHAR2(10);
l_company_id_e VARCHAR2(10);
l_proj_type VARCHAR2(30);
l_cnt NUMBER := 0;
l_task_cnt NUMBER := 0;
l_responsibility_id NUMBER;
l_application_id NUMBER;
l_user_id NUMBER;
l_global_info_msg_count NUMBER;
l_global_info_msg_data VARCHAR2(2000);
l_global_info_return_status VARCHAR2(1);
CURSOR C1 IS
SELECT *
FROM xxbwp.xxbwp_pa_proj_conv_tbl
WHERE proj_type = 'STORAGE';
begin
FOR C1_REC in C1
LOOP
SELECT APPS.pa_projects_s.nextval
INTO l_pa_project_id
FROM DUAL;
BEGIN
SELECT description
INTO l_proj_type
FROM apps.fnd_lookup_values
WHERE lookup_type = 'BWP_PROJECT_TYPES_LKP'
AND lookup_code = C1_REC.proj_type
AND 1 = 1;
END;
BEGIN
SELECT project_id, project_type, carrying_out_organization_id
INTO l_created_from_project_id, l_temp_project_type, l_carrying_out_organization_id
FROM apps.pa_projects_all
WHERE project_type = l_proj_type
AND template_flag = 'Y';
END;
BEGIN
SELECT rt.responsibility_id, rt.application_id
INTO l_responsibility_id, l_application_id
FROM apps.fnd_responsibility_tl rt
WHERE rt.responsibility_name = 'BWP PA Projects Superuser';
EXCEPTION WHEN OTHERS THEN
RETURN;
END;
BEGIN
SELECT u.user_id
INTO l_user_id
FROM APPS.fnd_user u
WHERE u.user_name = 'CHUNDURK';
EXCEPTION WHEN OTHERS THEN
RETURN;
END;
-- Set the environment
APPS.pa_interface_utils_pub.set_global_info
(p_api_version_number => 1.0
,p_responsibility_id => l_responsibility_id
,p_user_id => l_user_id
,p_resp_appl_id => l_application_id
,p_msg_count => l_global_info_msg_count
,p_msg_data => l_global_info_msg_data
,p_return_status => l_global_info_return_status);
--Assign values to project_in_rec_type
v_project_in.pm_project_reference := C1_REC.PROJ_NUM;
v_project_in.pa_project_id := l_pa_project_id;
v_project_in.pa_project_number := C1_REC.PROJ_NUM;
v_project_in.project_name := C1_REC.PROJ_NAME;
v_project_in.description := NULL;
v_project_in.long_name := C1_REC.PROJ_LONG_NAME;
v_project_in.created_from_project_id := l_created_from_project_id;
v_project_in.carrying_out_organization_id := l_carrying_out_organization_id;
v_project_in.start_date := C1_REC.trans_start_date;
v_project_in.completion_date := C1_REC.trans_end_date;
v_project_in.scheduled_start_date := C1_REC.trans_start_date;
v_project_in.scheduled_finish_date := C1_REC.trans_end_date;
v_project_in.project_status_code := 'APPROVED';
FOR x IN (SELECT person_id, project_role_type, start_date_active, end_date_active
FROM apps.pa_project_players
WHERE project_id = 262)
LOOP
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,'PERSON ID '||x.person_id);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,'PROJECT ROLE TYPE '||x.project_role_type);
l_cnt := l_cnt + 1;
v_key_members(l_cnt).person_id := x.person_id;
v_key_members(l_cnt).project_role_type := x.project_role_type;
v_key_members(l_cnt).start_date := x.start_date_active;
v_key_members(l_cnt).end_date := x.end_date_active;
END LOOP;
-- Retrieving and assigning tasks from template to a project
FOR x IN (SELECT task_id, parent_task_id, task_name, long_task_name, task_number, description,
billable_flag, cint_eligible_flag, chargeable_flag
FROM apps.pa_tasks t
WHERE t.project_id = l_created_from_project_id
START WITH parent_task_id IS NULL CONNECT BY PRIOR task_id = parent_task_id)
LOOP
l_task_cnt := l_task_cnt + 1;
v_tasks_in_rec.pm_task_reference := x.task_id;
v_tasks_in_rec.task_name := x.task_name;
v_tasks_in_rec.long_task_name := x.long_task_name;
v_tasks_in_rec.pa_task_number := x.task_number;
v_tasks_in_rec.task_description := x.description;
v_tasks_in_rec.task_start_date := C1_REC.trans_start_date;
v_tasks_in_rec.task_completion_date := C1_REC.trans_end_date;
v_tasks_in_rec.scheduled_start_date := C1_REC.trans_start_date;
v_tasks_in_rec.scheduled_finish_date := C1_REC.trans_end_date;
v_tasks_in_rec.pm_parent_task_reference := x.parent_task_id;
v_tasks_in_rec.billable_flag := x.billable_flag;
v_tasks_in_rec.cint_eligible_flag := x.cint_eligible_flag;
v_tasks_in_rec.chargeable_flag := x.chargeable_flag;
v_tasks_in_rec.tasks_dff := 'Y';
v_tasks_in_rec.attribute1 := l_pa_project_id;
v_tasks_in(l_task_cnt) := v_tasks_in_rec;
END LOOP;
v_class_categories(0).class_category := 'Reimbursable';
v_class_categories(0).class_code := 'No';
APPS.FND_MSG_PUB.initialize;
apps.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_op_validate_flag => v_op_validate_flag
,p_project_in => v_project_in
,p_project_out => v_project_out
,p_customers_in => v_customers_in
,p_key_members => v_key_members
,p_class_categories => v_class_categories
,p_tasks_in => v_tasks_in
,p_tasks_out => v_tasks_out
,p_org_roles => v_org_roles
,p_structure_in => v_structure_in
,p_ext_attr_tbl_in => v_ext_attr_tbl_in
,p_deliverables_in => v_deliverables_in
,p_deliverable_actions_in => v_deliverable_actions_in
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_return_status||' '||v_msg_count);
IF v_msg_count > 0 THEN
FOR i in 1 .. v_msg_count
LOOP
apps.pa_interface_utils_pub.get_messages
(p_encoded => 'F'
,p_msg_count => v_msg_count
,p_msg_index => i
,p_msg_data => v_msg_data
,p_data => v_data
,p_msg_index_out => v_index_out);
APPS.fnd_file.put_line(APPS.FND_FILE.LOG,v_data);
END LOOP;
END IF;
END LOOP;
end xxbwp_pa_proj_conv_proc;
end xxbwp_pa_proj_conv_pkg;
show errors;
Edited by: user644005 on Sep 11, 2009 11:02 AMHi Kesava,
I notice that in the package you used the application user_name=CHUNDUK calls the API pa_project_pub.create_project.
I wonder if you used chunduk as database user to execute the package Or you used APPS to execute the package?
The APi document states that it is a requirement to create a db username as the same name with the application username.
I have been running the problem to execute API 's delete project and try to figure what could be my problem.
TIA -
Hi,
We are using plumtree portal v5-0-3 and collaboration v-4.0.1. I have to create a portlet where users can use it to submit a request for a collaboration project to be created. Searching through Plumtree Developer Center, there are documents that show me how to create a collaboration project using edk library. The edk that comes with plumtree portal v5-0-3 doesn't contain the api(s) that I need (for example, com.plumtree.remote.prc.collaboration.project.*). However, the edk 5.2.0 does contain these api(s).
Are there any possible conflicts/problems if I use the edk 5.2.0 with our existing plumtree portal v5-0-3 and collaboration v4.0.1? If there are, is there any other way that I could get to these api(s) somehow to create collaboration projects?
Thank you in advance for helping!Thank you so much for responding so quickly!
Is there any api or way that I could use to create a collaboration project without using the Project Explorer? In our scenario, after a user uses the portlet that I describe earlier in the original disscussion message to request the creation of a project, an admin will take a look at the request and click a button to have the project created. This button will somehow trigger some scripts or codes instead of the admin using the Project Explorer to create the project.
Thanks again for your help! -
Creating new template using existing template
Is anyone aware of a way to create a new project template using an existing template? I am testing a few scenarios and want to quickly be able to create a template without setting one up from scratch.
I tried a few ways but could not find a way to do this - you can only create a project using a template, not another template.
Thanks,
SachinHi,
Find the template from setup->Projects->Templates and use copyto , new template will be created from existing one.
Barathidasan -
Cannot compile Java files or create Java Project
Hi,
I cannot compile java files and also didn't see any option
for creating java project using flex 2 builder.
Actually am trying to create a FDS project with an option to
compile on the server. I am using Weblogic 8.1 SP5 as my server.
thank you
sunhi
this is may jvm.config file. Can anyone tell me if it is
right because all the fields are blank.
# VM configuration
# Where to find JVM, if {java.home}/jre exists then that JVM
is used
# if not then it must be the path to the JRE itself
# If no java.home is specified a VM is located by looking in
these places in this
# order:
# 1) JAVA_HOME environment variables (same rules as java.home
above)
# 2) bin directory for java.dll (windows) or
lib/<ARCH>/libjava.so (unix)
# 3) ../jre
# 4) registry (windows only)
java.home=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK 2.0\jre
# Arguments to VM
java.args=-ea -Xmx384m
# Environment variables we care about, whitespace-separated
env=
# java.class.path - use this for adding individual jars or
# directories. When directories are included they will be
searched
# for jars and zips and they will be added to the classpath
(in
# addition to the directory itself), the jar to be used in
launching
# will be appended to this classpath
java.class.path=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK
2.0\jre
# where to find shared libraries, again use commas to
separate entries
java.library.path=
thanks
sun -
ILife 11 (iphoto 11) installed over a year ago with no issues. Have been creating Apple Books with no issues till now. iPhoto now will not create books, calenders or anything else. After I select "create" it does nothing. Used to work Ok. Program seems to stall and do nothing. I can still look at events and other picture files but it will now not create a "project" / "book" Anyone with a similar issue????
ILife 11 (iphoto 11) installed over a year ago with no issues. Have been creating Apple Books with no issues till now. iPhoto now will not create books, calenders or anything else. After I select "create" it does nothing. Used to work Ok. Program seems to stall and do nothing. I can still look at events and other picture files but it will now not create a "project" / "book" Anyone with a similar issue????
-
Hi
While trying to Create Projects using the API, I'm getting two types of errors -
The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
The second is : '
'API failed in one stage 1 Project: '<Project_Number>'
The class category is invalid.'
Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
Regards
VivekHI All
I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
Resolution:
Corrected the data file to be in Sync with the structure defined in the CTL and this loaded it successfully
2. Error 2: The class category is invalid.
The cause of this error was that in the Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
Hope this helps somebody else
Cheers
Turnbill
Maybe you are looking for
-
AI brushes and possible printing issues?
Hello fellow creatives! I have a project that I am considering doing 100% in illustrator CS6 for Mac. ( Three character illustrations ). The final files will be CMYK vector files. I will be drawing the illustrations in pencil. Scanning the pencils
-
Errors on my credit report Help please
When Citibank took over my Best Buy credit card from Capitol One, there appears to have been inaccurate reporting by the companies or the credit bureeaus are reporting it wrong, not sure which. Both cards show an open date of February 2007 Equifax
-
About the benefits .......
hi team, i need a information on the Exemption Employee (EE) costs plans and all eligiable plans in enrollement form... where we can see the all eligiable plans.... and from which table data is fetech. i need the some information on the ee costs plan
-
Hi!! I am using jdeveloper 11.1.1.5 I had dragged and dropped GlJrnlHd as a af:PanelForm And i had given rows = 2 and columns = 4 I need to provide space between 2 rows How can i acheive this could any body pls help me!!!
-
Migrating from Developer to JDeveloper
Is there a migration path from Developer to JDeveloper? I would like to move a Developer project to JDeveloper in order to get access to the Java code. With Developer all of the logic is hidden in the project and JAR files. The logic represented by t