MS Project import - Constraint Dates in cProjects
Hi experts,
We are using the most basic configuration in cProjects for importing MSProjects to cProjects. However ,we have a requirement.
We would like that "Must Start" and "Must finish" dates for tasks would not be filled in cProjects when importing from MSProject.
In other words, we would like to upload an MSProject to cProjects without constraint dates.
Is this possible?
Thanks and best regards,
Fernando
Hi Vivek,
I have reverted the settings to the original and the dates are being populated.
I added back the following settings:
for the project definition:
FINISH_DATE PDCP Project Definition (cProjects) FINISH_DATE_FIX
START_DATE PDCP Project Definition (cProjects) START_DATE_FIX
for tasks:
START PTCP Tarea (cProjects) START_DATE_FIX
FINISH PTCP Tarea (cProjects) FINISH_DATE_FIX
for phases:
FINISH PPCP Fase (cProjects) FINISH_DATE_FIX
START PPCP Fase (cProjects) START_DATE_FIX
and now the dates are populated ok, but I still have the dates with constraints. Is there any other mapping I can try?
Or any other cProjects Object Field Name for the mappings?
P.S. Does anyone know the difference between CONSTRAINT_TYPE and START_DATE_FIX or the difference between CONSTRAINT_TYPE_FIN and FINISH_DATE_FIX?
Thanks again,
Fernando
Similar Messages
-
Import table data in right order to avoid violating foreign key constraints
Gentlemen
I am trying to import table data into an existing 10g schema using datapump import in table mode.
However, in order to avoid violating foreign key constraints, the tables must be loaded in a specified order. I tried specifying the order in the TABLES parameter:
TABLES=table1,table2,table3 etc.
However, datapump seems to chose its own order leading to errors like the following:
ORA-31693: Table data object "SCHEMAX"."TABLE3" failed to load/unload and is being skipped due to error:
ORA-02291: integrity constraint (SCHEMAX.TABLE3_TABLE1#FK) violated - parent key not found
I want to try to avoid having to disable all foreign keys because there are hundreds of them.
Any advice?
Yours
Claus Jacobsen, DenmarkThanks Anantha.
Since I am only loadding data (the constraints are already defined in the target database), I am not sure whether this approach would work. Meanwhile I have solved the problem of moving data from one system to another using another, tedious and far from elegant approach that I would prefer to not eloborate on:-)
However, I have also discovered another probable reason why the foreign key constraints were violated, other than wrong order of table data loading. It turns out almost every single table in the schema contains a trigger supposed to generate a unique row ID from a sequence on insert such as:
CREATE OR REPLACE TRIGGER "SCHEMAX"."TABLEX#B_I_R"
BEFORE INSERT
ON TABLEX
FOR EACH ROW
DECLARE
BEGIN
SELECT tablex_seq.nextval INTO :NEW.ID FROM dual;
END;
If the import mechanism fires this trigger, and the sequences in the source and the target systems are not synchronized, then I guess that referred records a more than likely to end up with wrong ID's compared to the row ID's in the referring rows?
Spooky. Anybody can confirm this theory?
Yours
Claus
Message was edited by:
user586249 -
Can't find last import from iPhone!
Noticed as I imported I had that view where there was only one project symbol, not all my projects showing by date, but even so pictures were imported. It took the time to do them, so where aare they? I have closed and restarted to get back fll view of all dated projects, but nothing can be found from today...have i posted it right...?? no response from apple guys...
-
Transferring the data from cProject to PS Project
Hi,
When we create a PS project from cProject some of the field values are not flowing.
1. PS Project is not taking any cProject Project type. Is there any BAdI or Configuration Option available to change this behaviour?
2. Person Responsible of the Project is not replicated in PS Project from cProject. Can We flow this detail from cProject to PS project?
pls help me to solve these behaviours.
Thanking you
regards,
Ramesh NachimuthuHI Ramesh,
Both are unfortuenately not possible.
1. PS Project is not taking any cProject Project type. Is there any BAdI or Configuration Option available to change this behaviour?
>> the PS project type is determined by project profile. And PS Project profiel is determined by customizing, tocde IAOM0, Business Scenario 'CPROJECTS'. In other words, only a PS project type is available.
2. Person Responsible of the Project is not replicated in PS Project from cProject. Can We flow this detail from cProject to PS project?
>> The reponsible of cProject is a BP, and the PS Project responsible is a person maintained in HR. They can have no relationship between them, though the name is the same. The corresponding information is not tranfered to the PS and there is no mapping logic applied so far.
Kind regards,
Zhenbo -
MS Project import - Scheduling
Hello
I have some problems with the MS Project Import.
The help i find is not really exactly.
Who to schedule during a MS Project import.
I mapped the fields for the import so for example the project definition object:
FINISH_DATE PDCP cProjects Project Definition FINISH_DATE_FIX
START_DATE PDCP cProjects Project Definition START_DATE_FIX
My project in MS Project has the start 11.11.2009 and the scheduled end 08.12.2009.
But when I import a project in cProjects I have a start date 09.07.2009, calculated start 09.07.2009 and calculated end 10.07.2009
on every object (task, project definition...) I have the wrong date after import.
what is the problem?
Edited by: Denis Müller on Jul 9, 2009 7:30 AMHi
There are two options
Either you go for
1. mapping duration of Task or Phases with acivity duration in MSP and pass only start date,
system will calculate end date
or
2. try by using constraints, CONSTR_TYPE_FIN and CONSTRAINT_TYPE for start and end date,
for this you need Ms project to maintain values
let all know th support pack you are on
Niranjan
Let me know if it helps
Edited by: Niranjan Dandekar on Jul 9, 2009 11:38 AM
Edited by: Niranjan Dandekar on Jul 9, 2009 11:45 AM -
Using importdata to import xml data into dynamic PDF form
Hi again,
Me and my colleagues have a problem using the importData service to import some xml data into an empty PDF form (represented as an XFA input variable).
In the server log I get the error that Only XDP data is supported for XFA forms, however I only have the xml data and not the entire xdp available.
Is this really not possible to to (like importing xml data to a form is possible in the Designer when creating forms).
I hope the scenario is understandable
Sincerely
Kim Christensen
Dafolo A/S
Denmark
PS: During the various projects I am working on I keep running into problems...however I am totally new to LiveCycle so I consider this very informative learning steps and appreciate all your help :-)Hi again,<br /><br />I have been experimenting a little with both the renderPDFForm and importData services. However I don't seem to be ble to make them work as I need them to.<br /><br />My scenario is simple, I have one (call it a template xdp/PDF form) and lots of data in xml files (around 1000), that I need to import into the template. Therefore I have set up a "Watched Folder" to take the xml as a document (I guess this is a requirement) and then I need either the renderPDF or importData services to import the xml data into the template.<br /><br />I would like to know how I should setup the services to make this work.<br /><br />When I try to use importdata I setup the following:<br /><br />PDF document: set to be the template i need to import the xml to)<br /><br />Input data: the document variable (an xml file) that is passed to the Watched Folder<br /><br />Data merged PDF: set to an out xfaform<br /><br />When I do this I get an Coercion error in the server log:<br /><br />2007-11-15 13:27:05,324 ERROR [com.adobe.workflow.AWS] stalling action-instance: 1506 with message: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br /> at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:656)<br /> at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:878)<br /> at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:803)<br /> at com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom(Abs tractDataTypeRuntimeHandler.java:64)<br /> at com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode (AbstractComplexDataTypeRuntimeHandler.java:47)<br /> at com.adobe.workflow.dom.VariableElement.setBoundValue(VariableElement.java:93)<br /> at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:729)<br /> at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:335)<br /> at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:46)<br />...<br />Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="false" senderPersistent="true" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.16.10.125" callbackId="0" senderCallbackId="7" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="8039" contentType="application/xml" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xml version="1.0" encoding="UTF-8"?><br /><form1><br /> <sub_BlanketTop /><br /> <sub_SubjectTop><br /> <f...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</s enderPullServantJndiName><attributes file="c:\NCRConvert\ProcessForm\stage\Wx450d4b32843a0b0bcb8ef99e\NCR-00564_dXAE3soH.xml"/ ></document> of type: com.adobe.idp.Document to type: interface org.w3c.dom.Document<br /> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)<br /> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br /><br />However it is possible to manually import the xml data in Acrobat Professional without any problems.<br /><br />When I use the renderPDFForm with the following settings:<br /><br />Form to render: literal value that points to the template<br /><br />Form data: document variable from watched folder (xml)<br /><br />Content Root URI: repository://<br /><br />With these settings I also get a coercion error, however it does not seem to be exactly the same.<br /><br />Sincerely<br />Kim
-
Import Comments data and Dimension Members from csv file via Data Manager
Dear Experts,
I have two questions regarding the data manager.
Q1.Is it possible to import "Comments" from the csv file via Data Manager?
We'd like to import the amount with "Comments".
My image of csv file is like below;
ACCOUNT,CATEGORY,TIME,ENTITY,INPUTCURRENCY,AMOUNT,COMMENTS
1100000,ACTUAL,2010/06,LC,30000,This is comment
Q2.Is it possible to import the dimension "members" from the csv file via Data Manager?
We have a user-defined dimension named "Project"
and would like to import the members, instead of maintaining them in BPC administration manually.
I found an online help information which says "Import Master Data from a Data File Example",
but I could not find any relevant sample package for this.
(I tried to import the members by using "Import" package, but it failed...)
reference:http://help.sap.com/saphelp_bpc75/helpdata/en/86/8b1bfc12c94fb0b585cca70d6f1b61/content.htm
Thanks in advance for your help.
FumiHi Fumi,
In this case, I would suggest you to create a customized SSIS package which will fill-in the "Comment<APP>" table, according to the csv file you have. I do not know any standard package that allows you to import comment the way you would like...
Best Regards,
Patrick -
NULL error while importing the data
Hai everybody. In one of our branches there was some problem. To simulate the situation. i advised them to send the backupdata. While importing data from a dump file, i am getting the erro message
"cannot insert NULL into (“APGB5168”. “D010014”. “LBRCODE”)’.
Can i change the NULL constraint and import OR can i import first only the table strucuture and modify the constraint and can import the data afterwards.
Pl can any one suggest me how to import the data from this dump file so that i can simulate the situation.
Thanks - JayaDev(JD)Hi,
It means you have NOT NULL column and you are trying to insert NULL data.
Can i change the NULL constraint and import OR can i import first only the table strucuture and modify the constraint and can import the data afterwards.It all depends on you and your business needs. If you are sure that removing the constraint will have no harm on your application and data then you can, but think why it has NOT NULL constraint if data has NULL values. Either your table data is incorrect or your table design. Rectify the problem and take action accordingly.
Cheers,
Avinash -
Geting an error trying to import a data file into OWB repository
Hi,
We're using OWB 11.1.0.7.0
I'm trying to import a new data file and I'm getting an error.
When I go to The Project/Files/ I right click on the module I want to add the files to,
I get a 'Wizard' titled 'Welcome to the Import Metadata Wizard'.
I click next.
I get the 'Filter Information' screen that asks if I want to select 'All Data Files' or a specific file.
I pick 'All Data Files' and click 'next'.
I get the 'Object Selection' screen that has a left and right panel. The left side is titled 'Available' and the right side is titled Selected.
The 'Available' panel had the directory in Linux (/etl/datafeeds/dev) where our data files are stored with a plus sign next to it.
When I click the plus sign, I get an error message that says:
API2836: Directory
/etl/datafeeds/dev does not exist.Has anyone seen this? What is the work around? Is it a bug? How do I import a data file into OWB if this isn't the way to do it?
Thanks,Hi, is there any obligation to use import wizard?
can you use right click and import view/table?
Ugur MIHCI
www.ifslibrary.com -
MS Project 2010 Start dates change automatically
Hi,
I hope someone can help with this project problem, its driving me insane!
I have a set of activities which have a start date of 01/09/2014, there are no predecessors to these tasks but there are successors, and a date constraint date (the project start date is 16/06/2014, and these tasks cannot start until 01/09/2014).
When I mark the tasks as 100% complete the dates do not change (as expected), however once I have saved the file and closed it, something weird happens. When I reopen the file the start date (not baseline start) of these tasks has changed to the project
start date (16/06/2014). The % complete is still reading 100% complete and the task finish date has remained the same.
These tasks are milestones and have no duration.
Another aspect that I have discovered is when I take out the % complete (and it returns to 0%), the start dates change back to 01/09/2014.
Can anyone tell me if I have a setting somewhere which I need to change as its driving me insane, the more tasks that are marked as 100% complete, the more tasks I have that change to the project start date, so the problem is getting worse as the days go
on!
Any help would be appreciated.
Thank you!Do you have the Project Status date set correctly, and is it set for the correct date? If its set back in June and under File, Options, Advanced the Move flags are selected you would get the behaviour you mention.
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
MS Project Import Problem - Task & Phase Names not importing
I have been trying to get the MS Project import working with Cprojects. So far the structure and all the fields & come across except for the Task or Phase Names, which are always blank.
I have followed the Note 958210 and the field mapping is the default one supplied, where the field Name in MSProject is mapped to the description field in Cprojects. I have also specified a phase type in field 20, as it says in the Note. E.g the project is structured as below:
Text20....................| Name
000000000000001....| PROJECT PREPARATION
..............................| -Project Management Preparation
..............................| -Business Model Definition
000000000000001....| BUSINESS PROCESS ANALYSIS
..............................| -Project Kick Off
..............................| -Business Process Analysis
Any ideas why these Names would not be coming across from MSProject?hi
check whether all the fields mapping is done. -
Using forms 6i, to import excel data to database not a valid month problem
Hi all,
i am fetching data from excel dynamically to oracle table, all data is of general type
here i am passing value V3 varchar2(100) but actual database column field is DATE.
my insert code is given below
[code]
PACKAGE BODY PK_EXCEL_TO_DB IS
PROCEDURE PR_DO_INSERT(i_vcColumn1 IN VARCHAR2,i_vcColumn2 IN VARCHAR2,i_vcColumn3 IN VARCHAR2,i_vcColumn4 IN VARCHAR2,i_vcColumn5 IN VARCHAR2,i_vcColumn6 IN VARCHAR2,i_vcColumn7 IN VARCHAR2,
i_vcColumn8 IN VARCHAR2,i_vcColumn9 IN VARCHAR2,i_vcColumn10 IN VARCHAR2,i_vcColumn11 IN VARCHAR2,i_vcColumn12 IN VARCHAR2,i_vcColumn13 IN VARCHAR2,i_vcColumn14 IN VARCHAR2,
i_vcColumn15 IN VARCHAR2,i_vcColumn16 IN VARCHAR2,i_vcColumn17 IN VARCHAR2,i_vcColumn18 IN VARCHAR2,i_vcColumn19 IN VARCHAR2,i_vcColumn20 IN VARCHAR2,i_vcColumn21 IN VARCHAR2,
i_vcColumn22 IN VARCHAR2,i_vcColumn23 IN VARCHAR2,i_vcColumn24 IN VARCHAR2,i_vcColumn25 IN VARCHAR2,i_vcColumn26 IN VARCHAR2,i_vcColumn27 IN VARCHAR2,i_vcColumn28 IN VARCHAR2,
i_vcColumn29 IN VARCHAR2,i_vcColumn30 IN VARCHAR2,i_vcColumn31 IN VARCHAR2,i_vcColumn32 IN VARCHAR2,i_vcColumn33 IN VARCHAR2,i_lData IN tDataList) IS
vcInsert VARCHAR2(3500);
i INTEGER:=0;
flag boolean:= FALSE;
BEGIN
i:=i_lData.COUNT;
:BLK_MAIN.T4:= vcInsert;
vcInsert:='INSERT INTO CRM_DELT_IMPORT (';
if length(i_vcColumn1) > 0 then
flag:=TRUE;
vcInsert:=vcInsert||i_vcColumn1;
end if;
if length(i_vcColumn2) > 0 then
IF flag THEN
vcInsert:=vcInsert|| ','||i_vcColumn2;
else
vcInsert:=vcInsert||i_vcColumn2;
end if;
end if;
if length(i_vcColumn3) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn3;
end if;
if length(i_vcColumn4) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn4;
end if;
if length(i_vcColumn5) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn5;
end if;
if length(i_vcColumn6) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn6;
end if;
if length(i_vcColumn7) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn7;
end if;
if length(i_vcColumn8) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn8;
end if;
if length(i_vcColumn9) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn9;
end if;
if length(i_vcColumn10) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn10;
end if;
if length(i_vcColumn11) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn11;
end if;
if length(i_vcColumn12) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn12;
end if;
if length(i_vcColumn13) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn13;
end if;
if length(i_vcColumn14) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn14;
end if;
if length(i_vcColumn15) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn15;
end if;
if length(i_vcColumn16) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn16;
end if;
if length(i_vcColumn17) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn17;
end if;
if length(i_vcColumn18) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn18;
end if;
if length(i_vcColumn19) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn19;
end if;
if length(i_vcColumn20) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn20;
end if;
if length(i_vcColumn21) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn21;
end if;
if length(i_vcColumn22) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn22;
end if;
if length(i_vcColumn23) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn23;
end if;
if length(i_vcColumn24) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn24;
end if;
if length(i_vcColumn25) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn25;
end if;
if length(i_vcColumn26) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn26;
end if;
if length(i_vcColumn27) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn27;
end if;
if length(i_vcColumn28) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn28;
end if;
if length(i_vcColumn29) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn29;
end if;
if length(i_vcColumn30) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn30;
end if;
if length(i_vcColumn31) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn31;
end if;
if length(i_vcColumn32) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn32;
end if;
if length(i_vcColumn33) > 0 then
vcInsert:=vcInsert|| ','||i_vcColumn33;
end if;
vcInsert:=vcInsert||') values(';
if length(i_vcColumn1) > 0 then
vcInsert:=vcInsert||''''||i_ldata(i).V1||'''';
end if;
if length(i_vcColumn2) > 0 then
IF flag THEN
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V2||'''';
else
vcInsert:=vcInsert|| ''''||i_ldata(i).V2||'''';
end if;
end if;
if length(i_vcColumn3) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V3||'''';
--vcInsert:=vcInsert|| ','||''''||to_date(to_date(i_ldata(i).V3,'dd-mon-yy HH12:MI:SS'),'dd-mon-yy HH12:MI:SS')||'''';
-- vcInsert:=vcInsert|| ','||''''|| to_date('i_ldata(i).V3','dd-mon-yy HH12:MI:SS')||''''; --to_date('18-JUN-2013 12:00:00', 'DD-MON-YYYY HH24:MI:SS')
end if;
if length(i_vcColumn4) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V4||'''';
end if;
if length(i_vcColumn5) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V5||'''';
end if;
if length(i_vcColumn6) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V6||'''';
end if;
if length(i_vcColumn7) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V7||'''';
end if;
if length(i_vcColumn8) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V8||'''';
end if;
if length(i_vcColumn9) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V9||'''';
end if;
if length(i_vcColumn10) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V10||'''';
end if;
if length(i_vcColumn11) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V11||'''';
end if;
if length(i_vcColumn12) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V12||'''';
end if;
if length(i_vcColumn13) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V13||'''';
end if;
if length(i_vcColumn14) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V14||'''';
end if;
if length(i_vcColumn15) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V15||'''';
end if;
if length(i_vcColumn16) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V16||'''';
end if;
if length(i_vcColumn17) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V17||'''';
end if;
if length(i_vcColumn18) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V18||'''';
end if;
if length(i_vcColumn19) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V19||'''';
end if;
if length(i_vcColumn20) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V20||'''';
end if;
if length(i_vcColumn21) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V21||'''';
end if;
if length(i_vcColumn22) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V22||'''';
end if;
if length(i_vcColumn23) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V23||'''';
end if;
if length(i_vcColumn24) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V24||'''';
end if;
if length(i_vcColumn25) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V25||'''';
end if;
if length(i_vcColumn26) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V26||'''';
end if;
if length(i_vcColumn27) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V27||'''';
end if;
if length(i_vcColumn28) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V28||'''';
end if;
if length(i_vcColumn29) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V29||'''';
end if;
if length(i_vcColumn30) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V30||'''';
end if;
if length(i_vcColumn31) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V31||'''';
end if;
if length(i_vcColumn32) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V32||'''';
end if;
if length(i_vcColumn33) > 0 then
vcInsert:=vcInsert|| ','||''''||i_ldata(i).V33||'''';
end if;
vcInsert:=vcInsert||')';
FORMS_DDL(vcInsert);
:BLK_MAIN.T4:= vcInsert;
--END LOOP;
STANDARD.COMMIT;
END;
END;
[/code]
How can i pass '13-06-13 05:54:33' to database table.
if i put condition
vcInsert:=vcInsert||','||''''||TO_CHAR('i_ldata(i).V3','DD-MON-RR HH12:MI:SS')||''''
i get the error
to_char many declaration..
if i remove this i got error
ORA-01843: no a valid month
Since i am dynamically importing the excel data, every time the position of the date fild is going to change. For static its ok that i know that V3 is going to be a date.
But for dynamic date may be at position V22 or at any place.
please suggest something.
Regards
Samhii Marwin
Thanks for the reply. Yes i understand what exactly you are saying.
That's why i have created a test table. All fields in the table are of varchar2 type and no constraints were given to the table and import the data to test table.
Once the data is imported to test table, then i am inserting data to my original table i.e CRM_DELT_IMPORT. I have written the following code for that.
But when i press the button i got the error
FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-00001
my CRM_DELT_IMPORT have composit key on ("ROUTE_ID", "DELDATE", "DELSNO", "PROFILE_ID")
I also inserted few records with normal insert on SQL prompt , records gets inserted in to the table.
But when i use the form for insert and click on button of insert i get the error.
I also check that records gets imported in test table but not get inserted into CRM_DELT_IMPORT table (with the help of form. )
(can i use IGNORE_ROW_ON_DUPKEY_INDEX here? and how?)
Please help me in this problem.
Thanks again.
Regards
Sam
My code on when-button-pressed is
DECLARE
CURSOR IMP IS
SELECT ROUTE_ID, to_date(DELDATE,'DD-MM-RR HH24:MI:SS')DELDATE, DELSNO, DEL_BOY,
PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY, EXP_TIME, ACT_FR,
ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE,
TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS')DEVICE_DATE, substr(DEV_TIME,12,19)DEVICE_TIME
FROM TEST;
IMP_REC IMP%ROWTYPE;
BEGIN
OPEN IMP;
FETCH IMP INTO IMP_REC;
WHILE IMP%FOUND
LOOP
INSERT INTO CRM_DELT_IMPORT(ROUTE_ID, DELDATE, DELSNO, DEL_BOY, PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY,
EXP_TIME, ACT_FR, ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE, DEV_DATE, DEV_TIME)
VALUES(IMP_REC.ROUTE_ID, IMP_REC.DELDATE, IMP_REC.DELSNO, IMP_REC.DEL_BOY, --to_date(DELDATE,'DD-MM-RR HH24:MI:SS')
IMP_REC.PROFILE_ID, IMP_REC.TRNTYPE, IMP_REC.RECNO, IMP_REC.EXP_FR,IMP_REC.EXP_PA,IMP_REC.EXP_SK,IMP_REC.EXP_EMPTY,IMP_REC.EXP_TIME,IMP_REC.ACT_FR,
IMP_REC.ACT_PA,IMP_REC.ACT_SK,IMP_REC.ACT_EMPTY,IMP_REC.ACT_TIME,IMP_REC.LATITUDE,IMP_REC.LONGITUDE,IMP_REC.IS_FREE,IMP_REC.RATE_LITER,IMP_REC.AMT_DEBIT,
IMP_REC.DEVICE_ID,IMP_REC.PROF_NAME,IMP_REC.ADDR1,IMP_REC.ADDR2,IMP_REC.LANDMARK,IMP_REC.PLAN_ID,IMP_REC.DEL_MODE,IMP_REC.NEW_CHANGE,IMP_REC.NO_DEL_CODE,
IMP_REC.DEVICE_DATE,IMP_REC.DEVICE_TIME); ---TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS'), substr(DEV_TIME,12,19)
END LOOP;
COMMIT;
CLOSE IMP;
END; -
Split imported XML data into multiple text fields
I should first describe my final project because it is very possible that I am going about this entirely wrong!
I am trying to create an interactive PDF file which is the floor plan of our office, when you mouse over the office spaces it would popup the info for the person in that office, in fact when you click on the office space it would show additional info like computer MAC and jack numbers
I placed the floor plan as a layer and them created a second layer with no fill/no stroke rectangles over the offices and made them buttons (office01, office02)
I then made text fields with the info for the people, one for regular info and one for extra info (office01-data, office01-Xdata) I made these text fields buttons as well and had them "hidden until triggered"
These info fields are all on top of one another, as in the are all the same size and in teh same location
Then I went to the office buttons and created events "On Roll Over" "Show/Hide Buttons and Forms" and changed the visibility of the corresponding info button.
This works like a charm!
I hope I am clear up to this point.... my problem now is I would like to import this data both regular and extra from an excel spreadsheet or an XML file.
That way when we get new staff or people move offices or whatever I can update the spreadsheet or XML file, rerun my InDesign file and create a new interactive PDF
I have created the XML file
<staffMap>
<staff>
<name>John Doe</name>
<computerName<gfth56df</computerName>
<phoneMAC>00:08:00:AB:CD:EF</phoneMAC>
</staff>
<staff>
<name>John Smith</name>
<computerName<gfth06cb</computerName>
<phoneMAC>00:08:00:11:22:33</phoneMAC>
</staff>
</staffMap>
Created a new InDesign document
Imported the XML and placed it in a text field
saved as a template and closed it
Reopen and import the XML data again... and it brings it all into the text field... wonderful and useful but not what I need.
Is it possible to import the XML data into separate test fields, or into some other separate field that I can make into a button and show/hide?
I may end up just entering all the data directly into InDesign as I know this will work, it just does not seem like the right way to do it.
Thanking you all in advanceI am still looking to get some help with this.
I would love to know if it is not possible or any ideas at all -
Task Constraint Date in Reporting Database
Hi,
I want to access Task Constraint Date to create a custom report from the Repoting Database of Ms Project Server 2010. However, i don't see this field in the database. Could you please help me in accessing this fied from Reporting database?Hi,
The task constraints are not in the Reporting DB. You have to query the publish DB for that, specifically the TASK_CONSTRAINT_TYPE
field in dbo.MSP_Tasks table.
See
here
for the values of the constraint types in the DB.
Please refer to this
similar thread.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Inability to import Excel data with xlsx or xlsm extensions
Inability to import Excel data with xlsx or xlsm using Microsoft Project Standard V14 Import Wizard.
Get error message"Project cannot recognize this file format. Do you want to open this file in text only?" when using xlsm.
Nothing no wizard or data when when trying xlsx.
Windows XP/Office 2007. SP1 for MSP2010 installed.
Thank you in advance. PetePete H --
No, it is not possible to import Excel files with either the xlsx or the the xlsm file extension. This is simply a limitation of the Import/Export Wizard. Sorry. Hope this helps.
Dale A. Howard [MVP]
VP of Educational Services
msProjectExperts
http://www.msprojectexperts.com
http://www.projectserverexperts.com
"We write the books on Project Server"
Maybe you are looking for
-
Hi, I have an Adobe CC single App subscription at €25. per month, why do I now have to pay another 12.99 to get Lightroom CC? any help would be appreciated, thanks.
-
HI, We have created a Internal order 55555 and Purchase order xxxxxxxxxx.This IO is assigned in the account assignment while creating PO. After this we made a down payment request and this down payment is cleared by a payment document. But later
-
In which table can maintain the SAP MM Display changes?
hi, I have One doubt. Regarding In MM... In which Table can Maintain the Changes of Material?
-
Iphoto 08 image export limitation (!?)
Hi, It used to be that you could export all your images out of iPhoto if need be. Why is it now limiting me to 60 photos at a time? And, if there's no way to do it in program, what is good work-around? Appreciate any insight here. Thx!
-
Nothings in a folder after downloading mavericks , its was ALL thrown in files
downloaded mavricks ,now i have no folders !!!! its all one big mess I,am a photographer and i have thousands of images thrown in one big pile....OMG HELP