Account Insert or Update
Hi,
We are currently doing a WebService Integration from Siebel Enterprise to CRM OnDemand.
When I send a Account Message for Account Insert or update, I donot get a response from OnDemand. When I login to OnDemand and go to Admin->WebServiceUtilization I can see an operation for this. When I Drill down on the Session Id, I see that there is no error message and the size of O/P message is 0
How can I debug this? I want to see what OnDemand receieved and why is it not inserting a Account Record? I am not able to debug anything.
The XML looks like this
<?xml version="1.0" encoding="UTF-8" ?>
<?Siebel-Property-Set EscapeNames="false"?>
- <SiebelMessage MessageId="1-3TCH" IntObjectName="AccountWS_AccountInsertOrUpdate_Input" MessageType="Integration Object" IntObjectFormat="Siebel Hierarchical">
- <AccountWS_AccountInsertOrUpdate_Input>
- <ListOfAccount>
- <Account>
<ExternalSystemId>987890</ExternalSystemId>
<Location>987890</Location>
<AccountName>Test OD</AccountName>
<AccountType />
<PrimaryBillToCity />
<PrimaryBillToCountry />
<PrimaryBillToPostalCode />
<PrimaryBillToStreetAddress />
<PrimaryBillToState />
</Account>
</ListOfAccount>
</AccountWS_AccountInsertOrUpdate_Input>
</SiebelMessage>
There is no SOAP header in this XML but the real XML that OnDemand receives has SOAP wrapper along with the Session Cookie.
Thanks,
Murali
hi,
i am also facing the same problem. the OD is not responding with any reply. i have created a proxy business service for this. but i am not sure what arguements to send with it.
Similar Messages
-
Insert OR Update with Data Loader?
Hello,
can i Insert OR Update at same time with Data Loader?
How can i do this?
Thanks.The GUI loader wizard does allow for this including automatically adding values to the PICKLIST fields.
However, if you mean the command line bulk loader, the answer is no. And to compound the problem, the command line version will actually create duplicates for some of the objects. It appears that the "External Unique Id" is not really "unique" (as in constrained via unique index) for some of the objects. So be very careful when you prototype something with the GUI loader and then reuse the map on the command line version.
You will find that some objects can work well with the command line loader (some objects will not).
Works well (just a few examples):
Account (assuming your NAME,LOCATION fields are unique).
Financial Product
Financial Account
Financial Transaction
Will definitely create duplicates via command line bulk loader:
Contact
Asset
Also be aware that you might hear that during a go-live that Oracle will remove the 30k record limit on bulks loads (temporarily). I have not had any luck with Oracle Support making that change (2 clients specifically in the last 12 months). -
Can we use both INSERT and UPDATE at the same time in JDBC Receiver
Hi All,
I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
user send the file which contains both new and old record and I need to save those in MS SQL database.
If the record exist then use UPDATE otherwise use INSERT.
I looked on sdn but didn't find any blog which perform both the things at the same time.
Interface Requirement
FILE -
> PI -
> JDBC(INSERT & UPDATE)
I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
Thanks,Hi ,
If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
"If the record exist then use UPDATE otherwise use INSERT."
Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ... where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows you proceed with "insert into tablename....." since there are no old records present in database.
Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database. A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server. If you need further help on how to write and call stored procedure in MS SQL you can look into these links
http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
[ This part you can ignore, Since its not sure that you will face this situation
Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
http://www.faqs.org/docs/ppbook/r27479.htm
http://msdn.microsoft.com/en-US/library/ms187373.aspx
http://msdn.microsoft.com/en-US/library/ms173763.aspx
http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
regards
Anupam -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
My apple ID was correctly changed but my @me account and @icloud account addresses need updated to reflect my married name.
I tried that without any luck. I was hoping I could get Apple to reset it for me or delete the account so I could recreate it or at least tell me what is listed as my birth date, the security question answer.
-
How to insert or update multiple values into a records of diff fields
Hai All
I have to insert or update or multiple values into a single records of diff fields from one to another table.
Table1 has 3 fields
Barcode bardate bartime
0011 01-02-10 0815
0022 01-02-10 0820
0011 01-02-10 1130
0022 01-02-10 1145
0011 01-02-10 1230
0022 01-02-10 1235
0011 01-02-10 1645
0022 01-02-10 1650
these are the times that comes in at 0815 and goes break at 1130 and comes in at 1230 and goes home at 1645
from these table i have to insert into another table called table2
and the fields are barcode, date,timein intrin,introut,tiomout
And the output want to like this
barcode timein intrin introut timeout date
0011 0815 1130 1230 1645 01-02-10
0022 0820 1145 1235 1650 01-02-10
If any give some good answer it will be help full..
Thanks & Regards
Srikkanth.MSQL> with table1 as (
2 select '0011' Barcode,'01-02-10' bardate,'0815' bartime from dual union
3 select '0022','01-02-10','0820' from dual union
4 select '0011','01-02-10','1130' from dual union
5 select '0022','01-02-10','1145' from dual union
6 select '0011','01-02-10','1230' from dual union
7 select '0022','01-02-10','1235' from dual union
8 select '0011','01-02-10','1645' from dual union
9 select '0022','01-02-10','1650' from dual
10 )
11 select barcode, bardate,
12 max(decode(rn,1,bartime,null)) timein,
13 max(decode(rn,2,bartime,null)) intrin,
14 max(decode(rn,3,bartime,null)) introut,
15 max(decode(rn,4,bartime,null)) timeout from (
16 select barcode, bardate, bartime,
17 row_number() over (partition by barcode, bardate
18 order by bartime) rn
19 from table1)
20 group by barcode, bardate;
BARC BARDATE TIME INTR INTR TIME
0011 01-02-10 0815 1130 1230 1645
0022 01-02-10 0820 1145 1235 1650Max
http://oracleitalia.wordpress.com -
How do I insert/Delete/Update a row to the DB Table from Business Component Browser
I am using the wizard and created a project containing Business component which contain some table.
When I run the project I could see "Oracle Business Component Browser(local)" and when I select some table from "View Object Member" I get a window displaying all the field of that table and I could browse all the info.
My Problem is when I try to insert a new record/Delete the existing record or update some record it never gets reflected to the DataBase.
When I try to insert a new row I did save and there was a dialog box displayed saying "Transaction ID is 1". But finally It's not reflected in the Database.
Can some one guide me how can I do insert/delete/update operation from Oracle Component Business Browser so that the changes reflect to the Original DataBase.
Thanks in advance
JitendraJitendra,
This may be a problem of caching. If you do an update,insert, or delete, and do not receive an error, then the transaction should indeed be posted.
I assume you are hitting the Save icon after your changes if you are getting a transaction ID. Are you checking for the updates through another session (i.e. SQL*Plus), or do you then requery the View Object in the tester? Do you exit the tester and come back in and not see the changes? -
Help me in creating a Trigger for Insert and Update Options
Hi
Please help me in creating a Trigger .
My requirement is that after insert or update on a Table , i want to fire an event .
I have started this way ,but doesn't know how to fully implement this .
say i have a dept table
CREATE TRIGGER DepartmentTrigger
AFTER INSERT ON Dept
BEGIN
INSERT INTO mytable VALUES("123","Kiran");
END DepartmentTrigger;
Please tell me how can i put the Update option also .
Thanks in advance .Please tell me how can i put the Update option also .Add "Or Update". ;-)
Here are a few suggestions, but you definitely need to refer to the manual page that the previous poster suggested.
CREATE OR REPLACE TRIGGER DepartmentTrigger
AFTER INSERT Or Update ON Dept
BEGIN
INSERT INTO mytable VALUES(:new.Dept,'DEPT ADDED OR CHANGED');
END DepartmentTrigger;
The "Or Replace" means you can replace the trigger while you're developing without having to type in a drop statement every time. Just change and rerun your script, over and over until you get it right.
Adding "Or Update" or "Or Delete" makes the trigger fire for those events too. Note, you may want seperate triggers in different scripts and with different names for each event. You have to decide if your design really does the same thing whether it's an insert or an update.
:new.Dept is how you would refer to the changed vale of the Dept column (:old.Dept is the prior value). I changed the double quotes on the string in the VALUES clause to single quotes.
Andy -
I have iPhoto v 9.1.4. Update available is 9.4.3. I keep getting this message: "You have updates available for other accounts. To update this application, sign into the account you used to purchase it". I have done this and I keep getting the same message over and over again. Please help me!
Please try each of the following steps you haven't already taken, until the issue is resolved. After each step, relaunch the App Store and try again.
1. Follow the instructions in this Apple Support article.
2. If any App Store purchases were made under a different Apple ID, or if the bundled iLife applications were accepted under a different ID, sign in to the App Store with that ID to update.
3. Alternatively, delete the probem applications and re-download them with the ID you're using now. If you haven't already purchased them with that ID, you'll have to do that first, because purchases can't be transferred from one account to another.
4. Select the Purchased tab in the App Store window. If you see an item in the list marked "You have 3 apps to accept," click Accept.
5. Triple-click anywhere in the line below on this page to select it:
/Library/Caches/com.apple.appstore/adoption.plist
Right-click or control-click the highlighted line and select
Services ▹ Reveal
from the contextual menu. A Finder window may open with a file selected. If it does, delete the selected file. You may be prompted for your login password.
Then repeat step 4.
6. Select
Store ▹ View My Account
from the App Store menu bar, then select View hidden purchases. If you're trying to update any hidden purchases, unhide them.
7. Launch iTunes and select
Store ▹ Authorize This Computer
from the menu bar.
8. If you've moved any App Store apps out of the Applications folder, or into a subfolder, put them back. Never move or copy those applications. If you have backup copies of the apps on another volume, unmount it and try to update again.
9. Contact Account and Billing Support. -
When I try to download the iMovie Update :
"You have updates available for other accounts.
To update this application, sign in to the account you used to purchase it." shows -but I don't know what other accounts it is talking about? I Only have 1 Apple Id !Maybe this will help. If you monitor the "More Like This" box, other solved threads appear. Opening them usually displays other threads.
http://support.apple.com/kb/TS4236 -
How can you create a simple insert or update trigger
I am trying to create a simple insert or update trigger to timestamp an xml document when I load it into my XML DB repository but I always get an error trying to compile the trigger.
"ORA-25003: cannot change NEW values for this column type in trigger"
Here is my PL/SQL:
CREATE OR REPLACE TRIGGER "PLCSYSADM"."PLCSYSLOG_TIMESTAMP"
BEFORE
INSERT
OR UPDATE ON "PLCSYSADM"."PLCSYSLOG"
FOR EACH ROW BEGIN
:new.sys_nc_rowinfo$ := xmltype('<datestamp>' || SYSDATE || '</datestamp>');
END;
Does anyone have an example that works ?
Thanks in advance
Niels Montananahttp://developer.apple.com/referencelibrary/HardwareDrivers/idxUSB-date.html
-
Hi,
We have a scenario, in which we need to insert or update the data in the SAP r/3 based on the availability of the primary field in the SAP r/3.
For ex, if i have the employee details in SAP r/3 where in for a particular existing employee the salary details might be updated based upon the salary hike or if he is a new employee the details have to be inserted.
For this we have the primary field as the emp no.
How to proceed with this scenario.
Regards,
KishoreHi,
U can do with the server proxy create an proxy. Inside the method write ur code in ABAP
1) First check the employee no which u got from file with the employee no which is maintained in the abap table if it exits then update the information if it is not then insert the data in table.
refer the server proxy scenario for ur reference.
first:
ABAP Proxy configuration:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
second:
Server Proxy -
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
File to Inbound Proxy:
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
Debugging Inbound Proxy:
/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
chirag -
How to use group function in insert or update
Hai All
How can we use group function in insert or update statement
I am generating an attendance so i have different set of timing for example
0800,1200,1230, 1700 and i need to insert into these data into table with min value to intime and max value to
outtime and othere to inertval time in or out
Pls tell me with some example
For example
For INSERT
insert into T2 (barcode,empcode,intime,attend_date)
values(r2.cardn,r2.enpno,MIN(r2.ptime),r2.pdate);
For UPDATE
update dail_att set outtime= MAX(r2.ptime) where empcode=r2.enpno and barcode=r2.cardn and
attend_date=r2.pdate;
Here instead of where i need to use having so pls tell how to use
Thanks & Regards
Srikkanth.MHai Man
R2 is not a table name its a record
Let me explain clearly
I have to generate daily attendance for lot of employees So i have two table t1 and t2
T1 consist of three column empno,date,time
T2 consist of empno,name,date,intime,outtime,intrin,introut
So now i need to give the T1 Min value Of time to T2 Intime and T1 Max value of Time to T2 Outtime fields so there so many records while i am using
max(time) it gives the max value of all so i seperated by group function so now i have an error in subquery ie it is an single row subquery so i need to use multiple row subquery how i can use multiple row subquery in update statement
Thanks In Advance
Srikkanth.M -
Insert or Update data in SAP with Business Objects?
Hi all,
I am new to Business Objects world with my little expertise in Crystal Reports and Xclesius.
Could you please clarify me that is there any solution or technology or Product of Business Objects which not only make impressive dashboards and analyze the data but also can communicate with back end SAP R/3 to save or update data.
We are actually analyzing our Client requirements in which there is a need of Dashboards as well as some custom configurations that needs to be saved somewhere in the SAP system in order to make decisions in future.
Our back end system is SAP BW. One possibility is to use Adobe Flex as a base architecture with BSP and BW but we are more concerned with what BOBJ provides.
Looking forward for your suggestions.
Kind Regards
Umer FarooqGR81 wrote:
I would like to know how I can insert or update data in a Google Spreadsheet from an Oracle Database please?
Thanks,you can't since Oracle knows nothing about spreadsheets; Google or otherwise. -
INSERT or UPDATE with multiple rows
Hi there!
I want to ask what I should do in the following case: I have to handle mutliple rows of data to insert OR to update into the database.
The first question is about how to decide whether I should take INSERT or UPDATE. I read here in the forum that I could take a SELECT-statement before, and, if it isn't null, I could update the resultset..if it is null I can make an INSERT-statement.
But now I a have multiple rows to update or to insert which I want to handle as a transaction (with a batch), so I don't want to check each row the way I described above. Does anyone has a hint ?
Thanks a lot in advance.This is not a problem with java but rather a problem
with databases in general. The solution generally
depends on the data that is being operated on.
If there is a primary key involved, and most records
were expected to NOT be in the database, then you
could just insert them in blocks (transaction/batch).
Each block would fail when a primary key duplicate.
Then you can process each block as individual
l statements. The ones that fail are done as
inserts.
The reverse of the above is used if you expect most
records to be in the database. Do updates and the
break out the blocks with failures to locate the
inserts.
Keep in mind that queries for keys probably will be
faster, but that requires that your keys are ordered.
If you keys are ordered then you can get a range from
the initial data. Use that to query the database for
keys between that range (only return the keys.)
Using the returned keys you can decide whether each
h record needs to be an update or insert (presort the
data into each group and batch each group for more
speed.)
If the data is really mixed and the database supports
it then you can write a stored proc (MySQL does not)
which decides whether an insert/update is needed.
Finally if you have large amounts of data, bulk
operations especially inserts are better done with
tools supplied by the database vendor. Instead of
using JDBC to do the insert/updates you write the
output to a file and pass the file to the tool. You
might use JDBC (again with the ordered key query) to
decide which operation to do. Although faster for
large sets this is problematic due to the error
handling that you have to add.
Thanks for this, jschell. I look for your answers, because they're on the money and written well. I learn a lot from them. - MOD
Maybe you are looking for
-
How much POWER does iMac use in sleep?
I need to know this to get the right UPS. I cannot find it on the Apple Spt site. Thanks.
-
Issue after Lion upgrade - recognising older OS iPad
I have the older OS on one family iPad and now it doesn't show Lion upgrade - Any ideas
-
The Time Capsule light continues flashing yellow.
The machine seems to be working fine with the wifi and backup systems. I reset the wifi and the light stopped flashing and was green for a couple of hours, but then started again. Tried a second time with the same outcome. Any ideas?
-
Hi All, i'm creating a Asymmetric planning form in system 11.1.1.3. But if i'll enable the hide any dimension option in the Column it will not be open and the planning is going to be hang.So if you have any experience regarding this problem please sh
-
MacPro (2014) does not see Nikon Coolscan
Last week I got my new MacPro and connected all stuff and copied from old MacPro. My Nikon scanner (FireWire 400) came as last one and was connectes using a FW 4400-800 cable in the Apple FW adapter. The new Mac does not recognize the scanner. I trie