Execute process task argument is not working for sph file and ogr2ogr.exe

Hi All,
I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
This is how the process tab looks like .
Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
Success value : 1 (I am not sure why I need to change this value from 0 to 1.
For above settings, package runs fine. However the spatial table is not created always. It is created once in a while after switching Success value from 1 to 0 and 0 to 1 again. (After the spatial table is created, it is dropped using a execute sql statement). 
I am running this in VS 2012.I saw in an article that we need to convert shp file to csv before we load it into sql server.I even tried to convert shp to csv using execute sql task and ogr2ogr.exe. Still the package runs successfully after changing Success
value from 0 to 1 but no csv file is created. If the success value is 0, it throws the following error.
[Execute Process Task] Error: In Executing "C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe" " -f CSV \\xxxxxxxxr.rdn\files\shares\xxx_Data\ImportData\www.xxxxxxx.hapepage.htm\xxxxxx\Watches\Warnings\myfile\CSV \\xxxxxxxxr.rdn\files\shares\xxx_Data\ImportData\www.xxxxxxx.hapepage.htm\xxxxxx\Watches\Warnings\myfiles\www.shp"
at "", The process exit code was "1" while the expected was "0".
Could long file name be a problem too?
Thanks for your help in advance..
shamen

Hello shamen,
Seems to me you are missing a step to check if the shape is there and purge it before loading if so.
Arthur My Blog

Similar Messages

  • 8dot3 filenames not created for Program Files and Program Files (x86)

    Interesting issue we are realizing on Servers deployed from SCCM 2012. 8dot3names are not created for Program Files and Program Files (x86). they are created for other files/folders at the root of C and below Program Files and Program Files (x86). This is
    causing issues when programs are installed and the path is then created with 8dot3 filenames for program files and program files (x86)

    Arg. we just got bitten by this "feature", and it's affecting our security software stack (name starts with M and ends with ee), and some ancient crud too.
    And found this, which suggests a logical reason for 8dot3name to not be present on servers, but, on clients, I think it's a rather gross assumption...
    http://blogs.technet.com/b/josebda/archive/2012/11/13/windows-server-2012-file-server-tip-disable-8-3-naming-and-strip-those-short-names-too.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows

    Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?

    Same problem here...

  • Encode Video Files not working for avi files

    Hi,
    I've been trying to convert some .avi files to apple format using Lion's native 'Encode video files' function however keep getting a 'avconvert: source file not found for source file://fileparthhere avconvert: failed to create an export session. Check setup
    I can't work out why as this has worked before in Lion and works fine for other video formats. The only thing I've done is remove Final Cut Express HD and can't add it again as I don't own it anymore
    Suggestions? Is there a encoder to make this work or should it work anyway?
    Thanks

    If you click Yes the project file will be updated when you save it. That has nothing to do with the media.
    Are the Lesson and Media folders still in the Book Files folder (or whatever it's called)?
    Select one of the clips in the browser and use Edit>Item Properties. One of the first lines is Source. That gives you the file path for where your media is supposed to be located. What does it say? If nothing is there, use the File>Reconnect function and point the application to where the media is located.

  • Oracle text search not working for  WSDL files

    I have a table (resources) with blob data type column (xml_data) and I've created context type index on that column. I've XSD and WSDL files stored in that blob column.
    I can search XSD and XML files with a query with contains operator. But any search on the words from wsdl file returns zero results.I am not able to perform search on wsdl file.
    Please advise me whether oracle text can work for WSDL files also ?
    Query details
    ===========
    create index myIndex on resources (xml_data) indextype is ctxsys.context;
    select * from resources where contains(xml_data, 'searchword') > 0
    Thanks a lot,
    Santhi

    Even though it isn't listed specifically, I can't see why it wouldn't work. The WSDL file should be a simple XML file, so in theory it shouldn't be any different to Oracle Text than the XML file that you loaded and searched successfully. Did you get any errors during indexing, and what do your tokens look like in the DR$MYINDEX$I.TOKEN_TEXT column?
    Do you have a mini test case that didn't work for you? Perhaps we could play with it a bit.
    Long term you might want to consider using section groups so that you can search "within" tags.
    -Ron

  • File.execute() not working for bat file

    Dear all,
    The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog of the application EndNote. I’m not certain whether the FM clipboard (supported by the copy/cut/paste methods for Doc) really fills into the Windows Clipboard also.
    In the PhotoShop script forum I found the idea how to do this.
    #target framemaker
    // note the blank in the path
    copyToWinClipboard ("E:\\_DDDprojects\\FM+EN escript\\FM-11-testfiles\\BibFM-collected.rtf");
    function copyToWinClipboard (text) {
      var theCmd, clipFile = new File(Folder.temp + "\\ClipBoardW.bat");
      clipFile.open('w');
    //  theCmd = "echo \"" + text + "\" | clip"; // this doesn’t help either
      theCmd = "echo " + text + " | clip";
      clipFile.writeln (theCmd);
      clipFile.close ();
      clipFile.execute ();
    Running this script provides a short flicker (the command prompt), but the clipboard does not contain the expected string. However, when double clicking on the generated I:\!_temp\ClipBoardW.bat the clipboard is filled correctly.
    IMHO the execute method does not work correctly for bat files. In another area of my project-script i run an exe file with this method correctly.

    Hi Klaus,
    sorry for my late response.
    execute definitely works witch batch-files
    Here's a "batch" - example you can test.
    There are two methods to prevent window from closing:
    "|more" - kind of pagebreak
    "pause"
    var oTemp = app.UserSettingsDir + "\\tmp";
        var MyDosCommand = "ipconfig.exe /a|more";
        var MyPath = new Folder (oTemp);
        if (!oTemp.exists)
            var MyPath = new Folder (oTemp);
            var lFehler = MyPath.create();
        oTemp = oTemp + "\\" +"nw.bat";
        var MyFile = new File (oTemp);
             MyFile.open ('w');
               if (MyFile.error > "")
                    alert("ERROR");
            MyFile.writeln(MyDosCommand);
            MyFile.writeln("pause");
            MyFile.close();
            MyFile.execute();

  • Preview is not working for MEdia files

    Suddenly whenever I would like to have a quick look for any video file via (Space bottom) its not working, keep giving that "Loading preview" but never show the video.
    i am using quick time X.
    any help
    mohammad

    There are quite a few different settings that you can choose from when converting a RAW file to a DNG. Without knowing what settings you set up in LightRoom there's no way to tell why your images aren't importing properly.
    Roughly speaking, a linear DNG is one where the first part of the RAW conversion process (called debayerising or demosaicing) has already been done by Adobe.
    Ian

  • DSL Not Working for 7 Days and Tickets Closed without Resolution - Worst Customer Service

    My DSL light has been blinking for 7 days.  A technician came out Monday and checked inside my house and outside.  He said the problem is outside, that there is an issue with the wires on the street.  He said that the "Home Office" needs to internally switch the wires.  The technician went to the "Home Office" which is right down the street but the technician was not at her desk so he put in a request for the wire to be switched.  In the meantime, he manually switched the wires to get the internet working but said the internet would go down for 5-10 minutes when the "Home Office" did the official switch.  When I got home from work, my internet was not working and my DSL light was blinking again.  I immediately called Verizon and was told that my ticket had been closed and that a technician would need to come out again.  Since the technician had already been in my house that morning and confirmed the issue was with the wires on the street and not my house, I told them no one would be home because I could not take another day off from work.  It was understood that the technician could reach me by cell phone if he needed to talk to me but he was coming to look at the wires on the street.  A visit was scheduled for the next day, Tuesday.  I received a voice mail from the technician that he would be at my house in 20 minutes and would call me when he arrived.  I never heard back from him and when I got home, my internet was still down.  I immediately called Verizon to check on the status of the ticket.  At first, the agent couldn't even locate my ticket but then informed me it was closed.  I questioned the closure of the ticket since the problem had not been resolved.  I then proceeded to be on hold for an HOUR while the agent tried to find out why the ticket had been closed.  After an hour, the response was he didn't know and that I would have to open another ticket for an agent to come out AGAIN.  The agent then insisted I needed to be home because the technician needed to check inside the house despite being told by me that the technician had already been in my house the day before and confirmed the problem was on the street.  The agent then told me I needed to be home so the technician could update me.  I told the agent the technician could call me on my cell phone since he clearly has the phone number since he called me on Monday AND Tuesday.  The agent agreed and I gave my cell phone number again for the technician to call me.  There are no appointments available until Thursday which will be 8 days since the internet went down.  At this point, after 3 tickets opened, two that were closed without the problem being solved and two site visits with a third scheduled and 60 minutes on the phone,I am doubtful the issue will be resolved Thursday.  I've reached the point where if the problem isn't fixed on Thursday, I am canceling my service with Verizon after six years.  I shouldn't be paying for service that Verizon can't even provide because their own technician can't fix an issue with the wires outside my house.
    This experience has been frustrating and the worst customer service I've ever experienced. 

    Your issue has been escalated to a Verizon agent. Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases".  You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information.  This should be checked on a frequent basis  as the agent may be waiting for information from you before they can proceed with any actions. Please keep all correspondence regarding your issue in the private support portal.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Validation is not working for F-28 and F-53

    Hi,
    I wrote a validation for Transaction Code F-28 and F-53 and F-44 and F-54. But it is not working. Kindly help me where i went wrong. please do the needful.
    Pre-Requisite : Company Code and Transaction Code
    Check : Business Area 4000
    Requirement is - In the above transaction if i give the other business area like 3000, system should throw error. System should only accept the Business Area 4000
    But i am not able to succeed to full fill the requirement.. Kindly Help me
    Thanks
    Sunil

    Hi,
    Please pass some transactions using mentioned t-codes in testing server. After passing transactions please check the accounting document header for checking T-code for the same.
    Use that t-code for validations . also check whether Validation - call p point is activated or not in t-code OB28
    Rgds,
    Saurabh

  • Why time-dependent not work for cost center and profit center hierarchy

    Has anybody been able to successfully turn on time-dependent for cost center hierarchy? Looks like the R/3 datasource 0COSTCENTER_0101_HIER is defaulted to be NOT time-dependent, and I don’t know how to change the R/3 configuration to enable time-dependent for this datasource.
    Here is what I found. If you go to RSA2 in R/3 and enter datasource 0COSTCENTER_0101_HIER, and then select "Hierarchy Info", you will see that all the time-dependent properties are unchecked by default. By comparison, Cons Unit datasource 0CS_UNIT_CSCU_HIER has “Version Dependent Hierarchy” as selected, and we are able to load Cons Unit hierarchy as time-dependent, but have no luck so far with the Cost Center hierarchy.
    Can any BI guru tell me how I can make time-dependent work for the cost center hierarchy?
    Thanks a bunch!

    Check SETLEAF and SETNODE.
    Basically CO Master data groups dont have seperate tables. They will be available in above tables. Choose proper Set class to filter the results

  • "Open With"  CS3 not working for JPEG file

    Operating system is XP. I am trying to get CS3 to automatically open all JPEG files when I double click on them in windows explorer.
    I open windows explorer, right click on the image that I want to open, then click "open with" ....
    ...at this point CS3 is not one of the choices on the "open with" menu so I already smell a problem ....
    ..... so I click "choose program" and navigate to the adobe photoshop cs3 folder and point to photoshop.exe, then click the "always use the selected program" box, click open, and bada-boom, bada-bing, the image opens in photoshop CS3, right? WRONG.
    The image opens in the Quicktime Picture Viewer program and NOT IN PHOTOSHOP CS3.
    I feel that I have entered the Twilight Zone, otherwise known as The Adobe Messed Up Someting In The Registry Upon CS3 Install Zone. Does anyone have any hints on how to get PS CS3 working as the default program for JPEGs when I double click them from explorer on my XP computer?
    Thanks,
    Mark

    After a long search I found the answer:
    To associate all jpeg files with Photoshop CS3 so that they will open into CS3 when double clicked:
    Click Start, Run and type in: Control Folders.
    Click the file Types Tab.
    Wait for the list of file types to populate.
    Single click on the jpeg file type.
    Click the Advanced button.
    Highlight open and click the edit button.
    Browse to the location of photoshop.exe in the CS3 folder.
    A few OK's and you are done.
    AND ANOTHER THING .........
    After the change above was made, jpg files would open directly to photoshop cs3 when doubleclicked, but the maintained the same goofy quicktime pictureviewer icon when viewed in windows explorer. To change the icon for jpeg files displayed in all folders to the photoshop icon, do this:
    Start / My Computer
    Click Tools at the top of the screen.
    Click folder options .... then the file types tab
    Click on jpeg in the list and click the advanced button
    Click change icon and browse to the photoshop.exe for CS3
    A list of ocon choices will appear .... I chose the second row first icon
    A couple of OKs and you are done

  • "Automatically Write Changes Into XMP" Not Working for DNG Files

    Hello,
    I am needing to update DNG/JPG file pairs with keywords that I add  in lightroom.  The following is the problem that I am encountering. 
    When the image consists of only a JPEG file (ie. I had my DSLR only snap a jpeg and not an associated DNG), and I add one or more keywords to the file in Lightroom, these are written / saved immediately in Lightroom and are visible immediately in the 'tags' column for that image in windows explorer.  Very useful and important functionality for my workflow.
    However, when the image consists of both a JPEG and a sister DNG (i.e.,snapped simultaneously by my DSLR), and I try to add keywords to these (treated at this point as a single image by lightroom) then Lightroom does not record the keywords into either of the two files and consequently no tags are visible in windows explorer.  I have confirmed this apparent problem with a seperate image metadata utility software, and am hoping that it's just something simple that I am missing.
    Also "Automatically Write Changes Into XMP" is selected and I have also  tried manually both: "right click," "metadata," "write metadata to file;"  and  "right click" "update DNG preview and metadata" and the problem  persists.
    Hopefully someone has encountered something similar and can point me in the right direction.
    Thanks in advance.

    @Eric: hitting cntrl+s works but can be tedeous on large galleries. I've been doing this but it can be a pain.
    @Jeannine: different topic than this thread but to answer anyways... Lightroom automatically saves all changes into your catalogue. You never need to dave your changes (here's the kicker though) as long as you do not move the original file. If you
    move the file than lightroom won't know that it's the same image as the one you've edited. Once you are done editing your image you will need to "export" the image to a new file (you don't wan to overwrite the original). If you don't export than only lightroom will have your edits. Lightroom is "non-destructive" Which means that it doesn't touch your original photo. Lightroom keeps a text file containing the instructions on what you did to make the edited version. Since your changes are just text inatryxtions you have to "export" the image to get your final image in a version you can put online, print, etc. But to answer your original question, I think you prob moves the original image. If not, could you give us more info?

  • I cannot get my thunderbird box to work since upgrade. addons not working for larger files

    When I try to use box for larger attachments ,it is not working and just keeps trying to load . I have checked my box account and spoken to there tech and he said it is not on their end ?

    I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
    Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
    Use the AirPort Utility to configure the Time Capsule.
    One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router.

  • Preview not working for .jfx files anymore

    Hi, I used to be able to look at jfx (efax) files using preview on my mac. Now I click open, preview starts but does nothing. I can still open images and pdf's.
    This is for more than 1 file, all jfx files I get cannot be opened (even ones I could earlier read). If I click on the file and right click get info, its associated with preview, and the preview pane of it shows the actual fax. It just will not open in preview.
    If I rename the file to .tif then it works fine.
    Is there an error log file for preview or any other way to debug this?
    thanks Joel

    I tested this on another 10.5.8 computer and same problem, more I thinking its a problem with Preview and not my computer...

  • Wait_for_file() not working for certain file names

    Data Services Version: 12.1.1.3
    OS: Windows Server 2003.
    Hello,
    I'm using wait_for_file to poll for files in a certain directory. I've used this in the past for other projects and never had an issue until now.
    What seems to be happening is with certain file names, wait_for_file is returning a 1 (meaning at least one file found), however the file list is coming back as blank.
    For example:
    If I put a file name called cs.p.P110113CN.b.110114 in the directory, I get a blank return file list.
    If I then rename this to 110114, it works fine.
    Here's the code I'm using:
    wait_for_file($GV_InputDirectory || '*',0,0,1,$GV_InputFileName);
    $GV_InputDirectory varchar(1000)
    $GV_InputFileName varchar(100)
    Any ideas why this might be happening? Renaming the file isn't really an option as it's a standard format that we've used for years.
    Edited by: Craig Cartmell on Mar 7, 2011 11:16 AM

    Hi,
    Thanks for the reply.
    $GV_InputDirectory is set to
    wcs-dev-boweb2\c$\DebtManager\Dev\Interfaces\Bulk Payments\Agency\credit-security\Input\.
    I'm wondering if it's something to do with the length of the directory/filename combined?
    If I place a file called "110114" in there, wait_for_file() works perfectly. If I change it to "cs.p.P110113CN.b.110114", I have problems.

Maybe you are looking for