Insert statement not working when Interface is run through PI ..

Hi Every one,
There is an interface(Server proxy) which updates a ztable in the program. Updates are happening when we are running this interface manually(putting Payload manually) but in case there are already entries in ztable and we are trying to update these records, even after handling exception z table is not getting updated when run through PI and happening manually.
Please suggest me for the same.
Vivek

Tobias from this forum had the answer!
http://powershell.com/cs/forums/p/5438/8786.aspx#8786
His fix:
Whenyou putput text from powershell, the console width is assumed. Since task scheduler runs its own hidden console, the width of that console is used to truncate the text.
You can work by this issue by setting the width yourself. Try using a combination of Format-Table -auto / Format-List -auto and Out-File -width like this:
get-process | Format-Table -Auto | Out-File c:\test.txt -Width 10000
The format-cmdlet with -Auto makes sure the file uses only as much width as is truly needed. The -Width parameter sets the maximum width available.
If you must redirect the output to something else, replace Out-File with Out-String -Stream -Width 10000 and then redirect the result to whereever you want.
Note that multiline strings will still be truncated after the first line.
My code looks like this:
#Export Dataset Table to a text file       
$DataSet.Tables[0] | Format-Table -Auto | Out-File $rcvrFileName -Width 10000
This worked like a charm.
Thanks!

Similar Messages

  • I have Cisco TelePresence SX10 and content sharing is not working when I am dialing through the bridge

    I have Cisco TelePresence SX10 and content sharing is not working when I am dialing through the bridge, I can share the content if I drag and drop from RMX, but if schedule the call in Resource manager or manually dial in from device the content is not going to other hand, I have tried to turn off encryption as well but still same issue. can you please help me out with this. I am from Lion co and purchased sx 10 recently.
    regards
    Hemang

    Can you please provide us with a little more information on your systems and configuration / topology, such as, what call control are you using (Cisco VCS, CUCM, other?). what type of "Bridge" are you using (is this a Cisco MCU, or Cisco TelePresence Server, or other device?), what versions of the software are on each of the devices, etc.  The more information we have about your environment will help us assist you better.  But saying that, if all your core equipment isn't Cisco, you may have more luck in the forums for the manufacturer of such equipment (ie Polycom's Support Community).
    Wayne
    Please remember to rate responses and to mark your question as answered if appropriate.

  • Simple Insert Statement Not Working

    This problem is just driving me crazy. I dont know what I m
    doing wrong here. The code works fine on my localhost but giving
    problem on the live site. It is a simple insert statement like
    this:
    insert into tblSubImages(productid, title, subdescription,
    image, place)
    values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#',
    #form.place#)
    The error I m getting looks like this:
    Syntax error in INSERT INTO statement.
    The error occurred in
    D:\Hosting\davedhillon\superprinters\admin\addaditional.cfm: line
    11
    9 : <cfset uploadedImage = cffile.serverfile>
    10 : <cfquery name="insertadditional"
    datasource="#super.dsn#">
    11 : insert into tblSubImages(productid, title,
    subdescription, image)
    values(#form.productid#,'#form.title#','#form.subdescription#','#uploadedimage#')
    12 : </cfquery>
    13 :
    SQL insert into tblSubImages(productid, title,
    subdescription, image)
    values(1,'ewr','werw','FamilyRoomBedroom.jpg')
    DATASOURCE davedhillon_accesscf_super
    VENDORERRORCODE 3092
    You can see it is the simple insert statement which I have
    worked with so many times. Why has it started giving problem all of
    a sudden?
    Thank you

    Try copying and pasting the SQL statement produced in the
    error into your DB's query analyzer and try running it, as it might
    produce a more useful error message so you can see where the
    problem exists in the SQL statement. Also, I think I've seen that
    3092 code before and it means there is a reserved word violation so
    cf_dev2 solution will probably solve it.
    CoolJJ

  • Rollover states not working when published online. Suggestions?

    I have created rollover states for image navigation. Works great in preview. Works great when published to desktop. I have uploaded to FTP site. Some of the rollovers work, others do not.? I have replaced and re-uploaded, still not working. The normal and active states all work, but the rollover state vanishes. The images are in the image folder. The css pages do have the code to swap the images. Same issue in Chrome, Safari, Firefox, and on ipad.
    What am I missing? Thank you for your help!

    What's the URL?

  • The volume in the car does not work when i play music through me iphone but the volume works fine for the cd or radio

    When I use my iphone to play music in the car it does not work but the volume suing the cd or radio is fine

    Hello Vdayal,
    Thank you for the details of the issue you are experiencing with the microphone on your iPhone after upgrading to iOS 7.  I recommend following the steps in the article below for an issue like this.  Step 4 suggests restarting your iPhone, but if you click on the link, it offers the steps to reset your iPhone as well. 
    iPhone: Microphone issues
    http://support.apple.com/kb/ts5183
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Some of the keys on my keyboard do not work.  I've run through the trouble shooting tips and still no solution.

    Wireless keyboard - Not all Keys work.  For example: the top F1 through F12 and the right side shift key do not work. 
    Any thoughts?
    Thank you in advance. 

    Fast answers:
    1. Try resetting NVRAM/PRAM and SMC. Doesn't usually 'cure' keyboard problems you report, but it costs nothing and only takes a few minutes.
    https://discussions.apple.com/thread/3819550?start=0&tstart=0
    2. Try plugging in a USB keyboard. Doesn't absolutely have to be a Mac keyboard. A PC keyboard will work for a test. If the typing problem does not occur with the USB keyboard, you have a temporary solution until you can arrange to visit a repair facility.
    3. If your MacBook is older and has a user-removable battery, shut down the computer, remove the battery, and examine it for signs of 'bulging' or swelling. Then connect the computer to the Magsafe power supply, without reinstalling the battery, and turn it back on. If the keyboard problem has gone away, it was likely caused by a swelling battery.

  • Insert statement not work for Excel file

    Hi,
    In my JDBC application, I have a "INSERT ..." statement to add a new recode to a Excel file. When I run this application, the statement is executed successfully(no Exception), however the excel file doesnot change at all.
    I am still able to run "SELECT ..." from the excel file, I am really confused.
    Anybody could help me on this?
    Thanks.

    How do you see that the Excel file hasn't changed?
    Do a select on the new record?
    Open / Reopen with Excel?
    Look at the file size?
    What if you close your connection? Is a change apparent then?

  • Flash builder + Zend amf | Insertion function not working when called second time

    I'm using standart createOrders function which is autogenerated by Flash Builder 4.6. It works brilliantly when used once. Here is code:
    protected function okButton_clickHandler():void
                    var orders2:Orders = new Orders();
                    //setting values
                    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
    When same button is clicked second time and consequently okButton_clickHandler launched, data is not inserted to database. I added result handler with trace("saved"); and what I saw was that "saved" was written on first click, but not second.
    Also I used Charles to see whether request is being sent second time. And no it is not.
    Just tried to generate auto generate form. Only had to add commit(); because else request is not sent. And here is save problem — request is sent only on first button click.
    So all in all problem is in fact that ordersService.createOrders(orders2); works only once. Because if i try
    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
                    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
    OR
                createOrdersResult.token = ordersService.createOrders(orders2);
                createOrdersResult.token = ordersService.createOrders(orders2);
                ordersService.commit();
    there is only one row added to database. Any ideas?

    Think you can find the problem in your php / whatever -backend. Generated code does'nt much know about autoincrement table ids.
    So for the example tabel orders:
    orderID int(10) auto_increment
    orderName varchar(255)
    ...generated php for createOrders looks like:
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (orderID, orderName) VALUES (?, ?)");
    mysqli_stmt_bind_param($stmt, 'is', $item->orderID, $item->orderName);
    So if you dont give the right orderID, the second insert will fail.
    Delete the autoincrement parts and code will work:
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (orderID, orderName) VALUES (?, ?)");
    mysqli_stmt_bind_param($stmt, 'is', $item->orderID, $item->orderName);

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

  • UPDATE statement not working when updating Z table

    Hi
    I have declared Ztable with fields MANDT, VKORG, VBELN, IDENTCODE and POSNR as key fields, other fields are FKDAT,KUNNR, NETWR, WAERK, SKFBP
    First I got the data from presentation server and moved into internal table 'A' and after that declared internal table with structure same as Z table and moving the data from presentation server internal table 'A' into this.
    After Endloop I am using statement
          UPDATE ZVS_INV FROM TABLE IT_INV.
         commit work.
    But  table is not getting updated and sy-subrc is returning to 4.
    What could be the reason...your help appreciated.

    howcan it make difference if the primary key is defined as per my business requirement
    Just because the business requirement 'says so', doesn't mean that's it's right.  You appear to be maintaining a Z-table with a subset of billing fields and appear to have 'over-specified' the primary key.
    As far as the help files, if you did look at them, I don't think you took the time to understand before just posting your problem here.  An UPDATE operation is a very simple operation.  You gave the answer to why it didn't work in your comments as Keshav already pointed out...

  • WIFI not working when WEB is running and using NMA...

    hello,
    If you load up a web page with the N95 8GB and then hold the menu button to switch to standby then goto Nokia Maps, the Nokia Maps can not make an Internet connection even though there is one available via the Web.
    Anyone else can confirm this bug?
    Does N95 8GB support shared WLAN access between apps or has Symbian screwed up here and only allow 1 application at a time (WHICH IS EXTREMELY STUPID IMHO).
    If the latter is true, how dumb is that?
    Have they thought of this scenario?
    I want to use my Internet Phone via WLAN while I am using Nokia Maps to guide myself around town. With the current software, I can not do this.
    N-95 8GB, Wish Nokia made a 3G World Phone.
    Release a 3G HSPDA 850/900/1800/1900/2100 and Quad Band GSM phone instead!

    The Phone, depending on the application, CAN share the WILAN connection, but sometimes some apps refuses to share it. This is why Nokia should be fixing this issue by ensuring that everyone goes to the same Network procedure and to ensure that no only application can lock that access.
    N-95 8GB, Wish Nokia made a 3G World Phone.
    Release a 3G HSPDA 850/900/1800/1900/2100 and Quad Band GSM phone instead!

  • Flash Player does not work with Standard User, but will work when browser is "Run as Administrator"

    I don't understand why this is happening, but Flash Player will not work when a Standard User is using the browser. It will only work when the browser is run as an administrator. Any way to fix this? I've tried to uninstall, and reinstall the player, and it still wouldn't work.
    The user is on Windows 7, 64-bit. Using IE 10.
    Flash not working for Standard User - YouTube

    Any update to provide at all here guys?  Again, in my situation, it's very much rights-related as a standard user doesn't even report that the flash player exists when testing it on the Adobe Flash Version Detection website (despite it showing up in Control Panel and under Add/Remove Programs).  I've already tried giving the C:\Windows\System32\Macromed and files/subfolders appropriate permissions for the standard user and still nothing.  If I either give the user in question full local admin rights or logon as the domain admin, then the Adobe Flash Version Detection website says Flash is installed and Flash works fine.
    Thoughts???

  • The Horizontal & vertical scroll is not visible or not working when i run the form in Forms 6i.

    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    In this form , there are 5 canvas namely
    CANVAS2 - Stacked Canvas
    PASS - Content Canvas
    MAT_RATES - Content Canvas
    DATE - Content Canvas
    PREVIOUS - Content Canvas
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.

    Vijetha wrote:
    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.
    hello vijetha,
    window and canvas show scroll bar when it need.
    You should show block property
    and set block scroll bar
    hope this helps..
    Hamid

  • How do I move aiff files from the viewer to the timeline-it is not working when I try to drag and click or clicking on overwrite or insert in Final Cut Pro 7. Thanks

    How do I move aiff files from the viewer to the timeline-it is not working when I click and drag or when I try to move the files to the overwrite or insert buttons-Thanks.

    hi
    You cannot move audio from the viewer
    Mark your in and out points then in the browser grab hold of the audio tracks icon and drag that to the time line
    PJ

  • Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.

    Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.
    Photoshop General Discussion

    The RAM needs specs as shown below.
    Maximum Memory
    16 GB (Actual) 8 GB (Apple)
    Memory Slots
    2 - 204-pin PC-10600 (1333 MHz) DDR3 SO-DIMM

Maybe you are looking for