Create Save to folder if it does not exist

I have a script that will save a file to a folder up one level.  In other words if the original file was in client/jpg I wanted it saved in client/digipics.  The client folder will always have a different name.
I want to add code that will create the "digipics" folder if it does not exist.  Here is what I have so far that works as long as I have the "digipics" folder already created:
#target photoshop
var AD = app.activeDocument;
var imgName = AD.name;
var CurrentFolder = activeDocument.path;
var parentFolder = decodeURI(activeDocument.path.parent);
// Write file up one level into "digipics"
saveFile = new File(parentFolder + '/' + "digipics" + "/" + imgName)
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 8;
AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
What code can I add as an IF statemnt incase I forget to create the folder first.  It would create the folder then save to it.

#target photoshop
var AD = app.activeDocument;
var imgName = AD.name;
var CurrentFolder = activeDocument.path;
var parentFolder = decodeURI(activeDocument.path.parent);
var digiFolder = new Folder(parentFolder + '/' + "digipics");
if (digiFolder.exists == false) digiFolder.create();
// Write file up one level into "digipics"
saveFile = new File(digiFolder + "/" + imgName)
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 8;
AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
Should do the job…

Similar Messages

  • Endpoint Protection error: The source folder for content does not exist.

    I have a single SCCM 2012 SP1 CU4 server running on Windows Server 2012.
    I have been using this for a little more than a month for Endpoint Protection and Windows Updates.
    I just recently started seeing that my Endpoint Deployment Package has Failed.  I click on "Content Status" and select the Endpoint package (which again shows Failed).  I click on "View Status" and I get this
    message in the "Error" tab:
    The source folder for content does not exist.
    The Asset Details point to the exact location  that does not exist:
    The source directory "\\<server>\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68" for package "<package>" does not exist. 
    I didn't change anything related to this, and that directory path (\\server\updates\endpoint) is
    shared and is populated with a lot of other folders. 
    Is this possibly just a bad update file?  Should I manually create that sub-folder that it says is missing?
    Any help would be great!  Thanks!

    Thanks for the quick reply, Torsten.  (I often forget which logs to check for certain things).
    There are six lines (3 errors -- in italics below) in the log around the same time frame.  They read:
    The source directory \\sccm-corp\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68 doesn't exist or the SMS service cannot access it, Win32 last error = 2    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM  
     5920 (0x1720)
    STATMSG: ID=2306 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM-Corp.pdcarea.lcl SITE=PDC PID=6008 TID=5920 GMTDATE=Tue May 27 16:54:46.962 2014 ISTR0="\\sccm-corp\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68" ISTR1="PDC00063"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PDC00063"    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    Failed to take snapshot of one or more contents in package PDC00063    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    CDistributionSrcSQL::UpdateAvailableVersion PackageID=PDC00063, Version=10, Status=2302    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    STATMSG: ID=2302 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM-Corp.pdcarea.lcl SITE=PDC PID=6008 TID=5920 GMTDATE=Tue May 27 16:54:46.990 2014 ISTR0="Endpoint Protection Definition Updates" ISTR1="PDC00063" ISTR2="" ISTR3=""
    ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PDC00063"    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    Failed to process package PDC00063 after 33 retries, will retry 67 more times    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:47 AM    5920 (0x1720)

  • Error while creating connection pool "FATAL: database "null" does not exist

    Hi,
    Iam trying to create a XA connection pool using postgres driver (postgresql-8.3-603.jdbc3.jar) on Weblogic 8.1.6.0 from the Admin Console.
    I have provided the following info in the JDBC config
    Driver Class Name: org.postgresql.xa.PGXADataSource.
    JDBC URL: jdbc:postgresql://192.168.192.112:5432/sample1
    UserName: postgres
    Password: Postgres
    When i click Test Driver Configuration. Iam getting the following error
    "FATAL: database "null" does not exist"
    if i change the Driver Class Name to "org.postgresql.Driver", it is working fine. But as iam trying to create XA datasource i need to use the XA Driver class name.
    Can someone tell me how to resolve this issue ?
    The postgres version iam using is 8.3.1

    Hi Joe,
    The driver is in the classpath.
    Please find the stack trace.
    org.postgresql.util.PSQLException: FATAL: database "null" does not exist
    at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
    ectionFactoryImpl.java:444)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
    ctionFactoryImpl.java:99)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
    y.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Conn
    ection.java:124)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Conn
    ection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:386)
    at org.postgresql.Driver.connect(Driver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.
    java:83)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    47)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    32)
    at weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:114)
    at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:182)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:86)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Move file to new folder if it does not exist already

    I have tried what feels like a million ways to do this and none of them are working like I want.
    A file will be placed in folder 1 with a unique case number as the file name. IE 12345675.txt
    If the data in the file is changed a new file with the same file name will be placed out again that contains the updated info (for now I don't care about the update.)
    I want powershell to look for all the .txt files in folder 1 and compare them to the .txt files in folder 2 to see if that file name already exist.
    If it does not exist, I want to send a email with the content of the file and then move the file from folder 1 to folder 2.
    If it does exist then only move the file to folder 2 and overwrite the file that is already there.
    Sample:
    $folder1="C:\inetpub\cgi-bin" # Where Application will place incident file
    $folder2="C:\incidents"       # Once file is processed it is moved here
    $folder1Files=dir $folder1\*.txt    # Find all txt files in folder1
    $folder2Files=dir $folder2\*.txt    # Find all txt files in folder2
    $files = Get-ChildItem $folder1\*.txt   # Get all file that end with .txt
    foreach ($file in $files){
        $testfile="$folder2\$file"    #I know there is something wrong here but can think of how to fix.
        if (!(Test-Path $testfile)){
                                    Write-Host "NEW - Sending Page"
                                    $to = "email address 1"
                                    $from = "email address 2"
                                    $subject = "Pre Alert"
                                    $body = Get-Content -Path C:\inetpub\cgi-bin\*.txt
                                    $smtpServer = "mail.domain2.com"
                                    $smtpClient = New-Object Net.Mail.SmtpClient($smtpServer, 587)
                                    $smtpClient.EnableSsl = $false
                                    $smtpClient.Credentials = New-Object System.Net.NetworkCredential("Username",
    "Password")
                                    $smtpClient.Send($from, $to, $subject, $body)
                                    Write-Host "Moving File"        
                                    Move-Item -Path 'C:\inetpub\cgi-bin\$file' -Destination 'C:\incidents'
    -verbose
                            else{
                                    Remove-Item $file -include "*.txt"

    $testfile="$folder2\$file"
    What you're asking PowerShell to do there is to make a string which will start with the value of $folder2 (which you set earlier as a string) and then the value of $file, which is a document on the file system.
    PowerShell is pretty good at changing a value from one form to another (in technical terms, 'casting') but it's always best to help it along where possible.
    Why don't you try adding a 'Write-Host' line to say which file you're processing, and another line to say what file you're checking for. That should show you if you're building that string correctly or if you need to modify it.
    For now comment out the email section and just try to get it to tell you if the file already exists or not. Once you've got that done then try to build out the email bit. The trick is always to build small steps in Scripts and only move on once you've tested
    a section.
    $folder1="C:\inetpub\cgi-bin" # Where Application will place incident file
    $folder2="C:\incidents" # Once file is processed it is moved here
    $folder1Files=dir $folder1\*.txt # Find all txt files in folder1
    $folder2Files=dir $folder2\*.txt # Find all txt files in folder2
    $files = Get-ChildItem $folder1\*.txt # Get all file that end with .txt
    foreach ($file in $files){
    $testfile="$folder2\$file" #I know there is something wrong here but can think of how to fix.
    Write-Host "Checking for file at $testFile"
    if (!(Test-Path $testfile)){
    #Slightly modified
    Write-Host "NEW - Sending Page " $file.Name
    # $to = "email address 1"
    # $from = "email address 2"
    # $subject = "Pre Alert"
    # $body = Get-Content -Path C:\inetpub\cgi-bin\*.txt
    # $smtpServer = "mail.domain2.com"
    # $smtpClient = New-Object Net.Mail.SmtpClient($smtpServer, 587)
    # $smtpClient.EnableSsl = $false
    # $smtpClient.Credentials = New-Object System.Net.NetworkCredential("Username", "Password")
    # $smtpClient.Send($from, $to, $subject, $body)
    Write-Host "Moving File"
    Move-Item -Path 'C:\inetpub\cgi-bin\$file' -Destination 'C:\incidents' -verbose
    else{ Write-Host "File found, skipping and deleting new file"
    Remove-Item $file -include "*.txt"

  • Accounting document created but the reference billing doc does not exist

    Hi All,
    We run a custom to program that generate a list accounting docs for clearing.
    Now our problem is that the reference billing doc of the accounting docs does not exist.
    It wasn't also archived.
    The accountings docs are very recent so it is really impossible that it was deleted from the system.
    We suspect that the accounting doc was created into the database while the billing doc wasn't.
    Plus the issue is intermittent.
    Please advise how we could fix this issue.
    Any suggestion will really be appreciated.
    Tnx.

    Hi Prashant,
    It sounds strange that same inspection lot has been made UD twice. Possibly he might have done for different Inspection Lots. While checking tables if you are querying by Inspection lot, do not do that.
    Another thing to understand is when UD made successfully for 105 Qty, why this is not appearing in UnRestricted stock. Some communication gap is there.
    As a last resort, you may need to cancel the UD by using program RQEVAC50  through SE38. And cancel the documents through MBST
    Jogeswara Rao K

  • MDS Configuration Manager Create Web Application = Unexpected Error, Keyset does not exist (HRESULT: 0x80090016)

    we are having Problems installing MDS on new sever.
    Server: Windows 2008 R2
    SQL Server 2012 SP1 (Developer Edition)
    In the Master Data Services Configuration Manager Wizard ...
    - DB Creation (Database Configuration) was succesfull
    - But we are stucked in the "Web Configuration", "Create Application" failes in both cases (Choose "Create new Website" or choose existing site like "Default Web Site")
    Error Message is alwasy:
    Unexpected Error - An unexpected error occurred: Keyset does not exist (Exception from HRESULT: 0x80090016)
    Any ideas? Are there any Extended logs created by Wizard activity? Windows Application Eventlog Shows nothing!

    Hi,
    Just a gut feel. The issue may lie within IIS. I base this upon the fact that your database was created. The second part, the web configuration  is related to IIS. SQL Server 2012 should be set up with IIS7 or better still IIS8.
    This said..
    Is IIS installed correctly? You can always de-install it and re-install it via the programs / windows features option off of the control panel.
    Out of curiosity, did you by any chance have a previous 'bad install' of MDS. If so this may be a registry issue. When one starts talking 'Keyset', the registry comes to mind. A orphan keyset which is being called.
    Also remember that in setting up the web application, that the installation will ask you for a User ID and password. If you are like us, our passwords change each 6 weeks and this create problems with bringing up the Master Data Manager AFTER a password
    change. In fact I have often resorted to creating a 'new web site' with each password change BEFORE I decided to opt for using a Process ID, with an non expiring password to do your web configuration.
    I do not know if I have answered your question, just a gut feel. Please do let us know if the steps that I mentioned resolve your issue.
    Sincerest regards
    Steve Simon SQL Server MVP

  • I can create a New Folder, but it does not appear under my 'Inbox'.

    I have made sure that under 'View', that my bullet is next to show 'All' folders. I make the new folder to show up as a subfolder of my inbox, but it does not appear. I try to do it again and it states that one already exists????????????????????????
    I cannot figure out what is Wrong!!!!!!!
    Jackie

    OMG - thank you for your help!!!!!!!!!!!! I did not realize that the inbox folder was collapsed and not expanded. The new folders I made are there!
    THANK YOU!!!!!!!!!!!!!!!!

  • CREATE MATERIALIZED VIEW - TABLE OR VIEW DOES NOT EXIST

    Anybody can help me? Why could this happen?
    SQL> CREATE MATERIALIZED VIEW LESTARI.YIELD_BI_ACTUAL_PLAN_BLOK_MVU
    2 TABLESPACE MVU
    3 NOCACHE
    4 NOPARALLEL
    5 REFRESH FORCE
    6 START WITH TO_DATE('19-APR-2005 18:00:00','DD-MON-YYYY HH24:MI:SS')
    7 WITH PRIMARY KEY
    8 USING DEFAULT LOCAL ROLLBACK SEGMENT
    9 DISABLE QUERY REWRITE AS
    10 SELECT PT,
    11 TO_CHAR(TANGGAL,'MMYYYY')PERIODE,
    12 AFDELING,
    13 BLOK,
    14 TH_TANAM,
    15 SUM(TON_TERIMA) TON_TERIMA,
    16 SUM(JJG_TERIMA) JJG_TERIMA,
    17 SUM(JJG_PANEN) JJG_PANEN,
    18 SUM(HK) HK, (LS_TANAM),
    19 DECODE(LS_TANAM,0,0,ROUND((SUM(TON_TERIMA)/(LS_TANAM)),2)) YIELD,
    20 HITUNG_STANDARD_YIELD (PT, TH_TANAM,TO_CHAR(TANGGAL,'MMYYYY')) YIELD_STD,
    21 DECODE(SUM(JJG_TERIMA),0,0,ROUND(SUM(TON_TERIMA)*1000/SUM(JJG_TERIMA),2)) BJR,
    22 HITUNG_STANDARD_BJR_TH_TANAM(PT,TH_TANAM) BJR_STD,
    23 DECODE(SUM(HK),0,0,ROUND((SUM(TON_TERIMA)*1000/SUM(HK)),2)) OP,
    24 DECODE(SUM(JJG_TERIMA),0,0,HITUNG_STANDARD_OUTPUT_PEMANEN(ROUND(SUM(TON_TERIMA)*1000/SUM(JJG_
    TERIMA),2))) OP_STD,
    25 MAX(POTENSI) POTENSI,
    26 MAX(DIS_POT) DIS_POT,
    27 DECODE(LS_TANAM,0,0,ROUND(MAX(POTENSI)*MAX(DIS_POT)/100/LS_TANAM,2)) YIELD_POTENSI,
    28 MAX(RAPIM) RAPIM,
    29 MAX(DIS_RAPIM) DIS_RAPIM,
    30 DECODE(LS_TANAM,0,0,ROUND(MAX(RAPIM)*MAX(DIS_RAPIM)/100/LS_TANAM,2)) YIELD_RAPIM
    31 FROM (SELECT B.*, A.LS_TANAM, A.TH_TANAM, POTENSI, DIS_POT, RAPIM, DIS_RAPIM
    32 FROM ASSET_BLOK_VU A, T_TANAMAN B, T_PLAN_TANAMAN C, T_DISTRIBUSI_PLAN_TANAMAN D
    33 WHERE A.PT = B.PT
    34 AND B.PT = C.PT
    35 AND C.PT = D.PT
    36 AND A.KD_AFD = B.AFDELING
    37 AND B.AFDELING = C.AFDELING
    38 AND A.KD_BLOK = B.BLOK
    39 AND B.BLOK = C.BLOK
    40 AND A.TAHUN = TO_CHAR(TANGGAL,'RRRR')
    41 AND TO_CHAR(TANGGAL,'MM')=D.BULAN
    42 AND A.TAHUN = D.TAHUN
    43 AND A.TAHUN = C.TAHUN
    44 AND A.LS_TANAM > 0) A
    45 GROUP BY PT, TO_CHAR(TANGGAL,'MMYYYY'), AFDELING, BLOK, LS_TANAM, TH_TANAM
    46 /
    CREATE MATERIALIZED VIEW LESTARI.YIELD_BI_ACTUAL_PLAN_BLOK_MVU
    ERROR AT LINE 1:
    ORA-00942: TABLE OR VIEW DOES NOT EXIST

    32 FROM ASSET_BLOK_VU A, T_TANAMAN B, T_PLAN_TANAMAN C, T_DISTRIBUSI_PLAN_TANAMAN D
    Either of these tables/views do not exist. Check the spelling of the table/view names

  • Can't upload to FTP Host - 'Folder on server does not exist'

    I haven't tried updating my site for about a month now. I went onto Muse last night and while uploading to the FTP Host, it kept freezing at about 66% while handling the image files.
    This was odd because I'd never had this problem before, but I noticed there was an update, so I decided to get Muse 2014.2, as maybe this could fix my problem.
    I made the same changes to my site and went to upload to FTP Host. After convincing Muse my details were correct (kept being told I had been timed out and my username or password was wrong) I was finally connected to the FTP server. However, my 'Folder on Server' (httpdocs) doesn't seem to exist according to Muse.
    I spoke to GoDaddy's support team for over an hour as we tried variations on the httpdocs folder and we had no idea why Muse wasn't accepting this (they also checked the file exists). They tried Filezilla and that was fine, so it's obviously a problem with Muse. I asked if I should just click on the option to create the httpdocs folder, but GoDaddy advised against it.
    I tried contacting the Adobe Customer Care chat thing, but I don't even know what's happening with that ("chat is unavailable . . . we'll be with you shortly" . . . eh?)
    If anyone has a solution to either my problem on the old Muse or this new problem with Muse 2014.2 (ideally this one) then that would be great.
    Also, I'm only using Muse because it cuts out all the complex stuff, so go easy on me when explaining anything that isn't "you just need to click this"

    UPDATE: I uninstalled both versions of Muse and re-installed the 2014.2 version to see if that would work, but it still doesn't think the httpdocs file exists.
    (As a result of uninstalling the old Muse, my problem regarding the freezing at 66% is now irrelevant. Just need help with Muse not accepting the httpdocs folder)

  • User created with FOR LOGIN and login does not exist?

    I hope my question is clear.  For testing I made a group in Active Directory named MyDatabaseReadOnly with one user as a member.  I
    do not have a login in SQL Server by the same name.  I created a database user with the following script.
    USE [MyDatabase]
    GO
    CREATE USER [MyDatabaseExec] FOR LOGIN [MyDomain\MyDatabaseReadOnly]
    GO
    The script created the user MyDatabaseExec in MyDatabase.  I gave the user MyDatabaseExec permission to execute one stored procedure.  I then logged in as the lone member of the MyDatabaseReadOnly group and was able to execute the stored procedure
    in SSMS.
    How does this work since there is no login MyDomain\MyDatabaseReadOnly? I understand (I think) that you can create database users
    without a login but I don't understand how I'm able to run the proc.
    Kevin

    The reason is you can have user in the database without a login in the master database and in such case, the user authentication is done through windows group.
    read this article and you can understand  https://msdn.microsoft.com/en-us/library/ms173463.aspx?f=255&MSPPError=-2147217396
    Users based on Windows principals that connect through Windows group logins
    Hope it Helps!!

  • Backups arent completing with error cant find folder or it does not exist

    Hello, 
    Lenovo X1 Carbon, windows 7 pro 64bit. Core i5, 8GB RAM, 256 GB SSD. No DVD player. 500 GB External USB 3.0 Hard drive. 
    My backups aren't completing while using Windows Backup and Restore (WBaR). It says it can't find a folder that doesn't exist on a drive that doesn't exist(e.g. 'D:\X1\Desktop\folder_name')  I have a ultrabook from Lenovo, there is no D: drive. there
    is the C: Drive and the Lenovo Recovery drive (Q:). However, the folder name matches a folder that WAS on my desktop ('C:\[USER]\Desktop\folder_name')the first time that I used WBaR. 
    At first, I thought it was that folder, so I moved it to the Recycle bin. Then I tried moving it to a documents folder. Same error. So, then I thought it had to do with Carbonite and Dropbox. So I turned both of them off. No joy. 
    I tried searching for a folder named X1 using the command line. No luck. 
    I found this support article at http://support.microsoft.com/kb/979281, but none of these scenarios match mine. I have exhaustively searched for someone who had a problem with a Drive letter being assigned to Windows backup that doesn't exist on their
    computer. But no joy. 
    Can anyone help me? I don't think this is serious, but it is annoying, since WBaR doesn't list when my last backup was because of the problem. Plus, I'm worried about whether it will work when I need to recover files. 
    Original title
    "Windows Backup skipped D:\X1\Desktop\[folder] because it cannot be found on drive D:\." Drive D doesn't exist

    Hi,
    Please turn off backup and turn on to relocate the backup place as your USB drive.
    As I known, it's impossible to backup the files on the same partition, so C drive is system drive and impossible for your backup.
    Post back your event log related to this issue here for our research.
    Kate Li
    TechNet Community Support

  • While creating Update rules -"Error Info source does not exist"

    While creating an update rule I am getting an error that Info source doesnot exist though the inf source is active.
    here is error:
    No communication structure exists in version  abc...   A
    Message no. RSAU251
    Diagnosis
    In order to be able to maintain the update rules an active communication structure must be available.
    Procedure
    This error message can have two causes.
    No active communication structure exists.
    Activate the communication structure in the Data Warehousing Workbench.
    No communication structure exists for the InfoSource.
    Create a communication structure in the Data Warehousing Workbench for the InfoSource.
    <<text removed>>
    Thanks,
    Vasu
    Edited by: Matt on Apr 26, 2010 9:31 AM

    Hi Vasu,
    as it clearly shows below message
    No communication structure exists for the InfoSource.
    Create a communication structure in the Data Warehousing Workbench for the InfoSource.
    Create an info source first and assign it to your datasource and map the fileds in transfer rules and activate it.
    Then try to create the update rules between your target and info source.
    Hope this helps.
    Regards,
    Reddy

  • PO/ Invoice created for supplier does not exist for particular company code

    Hi Gurus,
    We have a case where PO created w.r.t supplier X does not exist for any company code A. Also Invoice is generated.
    As per my analysis:
    1. Purchasing organization is assigned to the particular plant and Plant does assigned to company code. This purchasing organization does not assigned to any company code and kind of centrally allowed to any company code based on above link.
    2. Supplier X does exist for the purchasing organization. And in Partner function-For PI (Invoice presented) partner function, it is defined for another supplier Y. This Y supplier does exist for company code A and might be the reason, it is allowing creating PO and Invoice.
    Please correct me, if I am wrong or If there will be any other reason for the same. Just for your information, there is no Info record exist for this PO as it is created for service without any material number.
    Thanks for your response.
    Best regards,
    Karun Kumar

    You can create vendor only with reference to purchase organization and withoout company code.
    for this vendor, you can create PO and MIGO and system will allow but when you try to post the invoice system will prompt you to enter different invoice party. if you dont enter different invoice party, system will throw an error message "vendor is not defined in XXXX.
    So in your case, your analysis is correct.

  • The file /_controltemplates/15/ does not exist

    Hi Everyone.
    We are planning to migrate from share point 2010 to SharePoint 2013.So we have created one POC environment to test the customizations(master pages,Page layouts,web parts,site definition,Site templates) in SharePoint 2013.We have installed Visual Studio 2012
    to convert VS2010 solution.We have done with the converstion from VS2010 solutions to VS2012.
    We have followed all the below steps to test the same functionality.
    1.Install Visual Studio 2012 and reopen solution in VS 2012
    2.Change .NET Framework version to  v4.5
    3.Update existing reference of Microsoft.SharePoint.dll to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI". (may need to other dlls reference as well)
    4.Add a property ‘SharePointVersion =”15.0"’ in <Solution> element in the manifest file. (otherwise it gets installed into SharePoint 14 location)
    5.Update "_layouts" folder with "_layouts/15" reference.
    6.Update "CONTROLTEMPLATES" with "CONTROLTEMPLATES/15"
    6.Build your solution, deploy and Test.
    After successful deployment we are not able to add the web part to the page.We are getting an error like the following.
    The file '/_controltemplates/15/{Project folder}/{web part Folder}/{Web PartUserControl}' does not exist.
    Any one can help me on this issue.
    Thanks in advance
    Regards,
    Anil

    Hi Everyone.
    We are planning to migrate from share point 2010 to SharePoint 2013.So we have created one POC environment to test the customizations(master pages,Page layouts,web parts,site definition,Site templates) in SharePoint 2013.We have installed Visual Studio 2012
    to convert VS2010 solution.We have done with the converstion from VS2010 solutions to VS2012.
    We have followed all the below steps to test the same functionality.
    1.Install Visual Studio 2012 and reopen solution in VS 2012
    2.Change .NET Framework version to  v4.5
    3.Update existing reference of Microsoft.SharePoint.dll to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI". (may need to other dlls reference as well)
    4.Add a property ‘SharePointVersion =”15.0"’ in <Solution> element in the manifest file. (otherwise it gets installed into SharePoint 14 location)
    5.Update "_layouts" folder with "_layouts/15" reference.
    6.Update "CONTROLTEMPLATES" with "CONTROLTEMPLATES/15"
    6.Build your solution, deploy and Test.
    After successful deployment we are not able to add the web part to the page.We are getting an error like the following.
    The file '/_controltemplates/15/{Project folder}/{web part Folder}/{Web PartUserControl}' does not exist.
    Any one can help me on this issue.
    Thanks in advance
    Regards,
    Anil

  • Reading Characteristics of a DMS Document if the one does not exist yet

    Hi,
    Whenever a document is created with classification from transaction CV01N, an entries is being made into the tables of DB for the entered classification of the document. In this case I can get the characteristic values of document classification from within the BAdI method (for example DOCUMENT_MAIN01~BEFORE_SAVE) by selecting from DB table.
    Is there any way for read the document classification from within method DOCUMENT_MAIN01~BEFORE_SAVE before the actual save of document (corresponding entries does not exist in DB table)?

    Nemesis wrote:
    The original table t_data contains data which is normally deleted after 45 days, but it also stores data which is used for demonstration purposes by consultants, and which should not be deleted with the rest.
    Truncating would delete all the data in the table t_data, but the problem is that a subset of the data must be retained in the table. This means that either I adapt the purge code on this table not to delete the required data, or I displace the data that must be saved until the purge is done and then reinsert it into t_data...Choice 1:
    Use partitioned tables. Store the "temporary" data in partitions that can be deleted and the consultants demo data in another partition that doesn't get truncated.
    Choice 2:
    Have two similarly structured tables that store the two types of data so that one table can be truncated as required and the other maintains the data. Use a view on top of the tables to union the data to appear as one "table" for use in the application.
    As already mentioned by others, creating tables at run time is just wrong. It's poor design, it's not scalable and it leads to dynamically generated queries which can inherently have bugs that will not be apparent until run-time and sometimes only under certain conditions, thus leaving your code very liable to break and very difficult to debug.
    Global Temporary tables are what are generally used for temporary storage of data within a transaction or a session if they suit, but it sounds as if you need the data retention across sessions with truncate option available as required on partial data. That is one of the purposes of partitions on tables... or of course go for the two table and view option if you haven't paid for partitioning in your licence.
    Edited by: BluShadow on Dec 22, 2009 8:33 AM
    LOL! Billy posted whilst I was typing. p.s. Glad to see you got your Ace badge Billy. Well deserved.

Maybe you are looking for

  • GR IR clearance document report

    is there any t code, which show only GR clearane document list

  • How do I get from a menu at login to CLI on a SG300-28 Switch?

    I have a SG300-28 and would like to configure through CLI not menu. How do I get to Cli from Menu?   I am running Boot version 1.0.0.4 and SW version 1.0.0.27, Do I need to upgrade both boot and SW or Just SW?

  • Unable to edit validated field in table maintance

    Hi all, my requirement is to show an warning message on non key field if validation is not correct and edit on the same screen. solution: I have created an event new-entry in table maintance and tried to validate that field field (email) form new_ent

  • PCMCIA firewire adapter not working ....

    with my LACie 40GB USB/Firewire mobile hard drive.. I previously posted that my TiBook 550 firewire port & the Lacie firewire port are fried. I was hinted that the Tibook firewire port may have been the culprit but not certain. I bought a 3rd party P

  • PL/SQL parser version

    It seems to me that the Parser for PL/SQL offers API that calls the Parser for Java. Is that true? If true, Is it the Parser for Java v1 or v2? null