Get-Item: Cannot find path ' ' because it does not exist. While running Powershell script.

I am trying to run a PowerShell script to upload files into a SharePoint site in an Azure environment...the script works fine on my local machine, but every time I run it in Azure (remotely), I get errors. Here is what my simple script looks like...
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
Write-Host "Loading Sharepoint Module "
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
Add-PSSnapin -Name Microsoft.SharePoint.PowerShell
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell) -eq $null )
Write-Host "Failed to load sharepoint snap-in. Could not proceed further, Aborting ..."
Exit
#Script settings
$webUrl = "http://sampleWebUrl"
$docLibraryName = "My Documents"
$docLibraryUrlName = "My%20Documents"
$localFolderPath = get-childitem "C:\Upload\Test Upload\My Documents\" -recurse
$contentType = "ContenttType1"
#Open web and library
$web = Get-SPWeb $webUrl
write-host "Web:" $web
$docLibrary = $web.Lists[$docLibraryName]
write-host "docLibrary:" $docLibrary
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
write-host "files:" $files
If ($contentType = "ContenttType1")
#Open file
$fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
# Gather the file name
$FileName = $File.Name
#remove file extension
$NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
#split the file name by the "-" character
$FileNameArray = $NewName.split("_")
$check = $FileNameArray.Length
#Add file
$folder = $web.getfolder($docLibrary.rootFolder.URL)
write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
$spItem = $spFile.Item
write-host "Success"
write-host "SP File:" $spFile
write-host "SP Item" $spItem
#populate columns
$spItem["Column1"] = $FileNameArray[0]
$spItem["Column2"] = $FileNameArray[1]
$spItem.Update()
$fileStream.Close();
Again, I can run this on my local machine and it works just fine, but when I attempt to run it on the Azure environment I get this error...
Get-Item : Cannot find path 'C:\powershellscripts\12653_B7045.PDF' because it does not exist.
At C:\PowerShellScripts\Upload-FilesIntoSharePointTester.ps1:32 char:42
+     $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\powershellscripts\12653_B7045.PDF:String) [Get-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
What strikes me first is the fact that the file its looking for is in the "C:\Upload\Test Upload\My Documents\" directory, but the error keeps saying "C:\powershellscripts\" which is where my script resides and not the files I want to
upload into SharePoint. When I step through the code, all the variables are holding the correct values. The $localFolderPath shows the name of files that I am attempting to upload, so it recognizes them. But once I step through this particular line of code,
the error occurs...
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
Is this an error caused because I am remoting into the Azure environment? Has anyone dealt with this issue before? I would really appreciate the help. Thanks
Update: quick thing I noticed is that these two lines of code are returning null values. Again, is this handled differently in Azure or remotely? I ask cause this is the way I know how to do this, locally.
$docLibrary = $web.Lists[$docLibraryName]
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()

"...square brackets are wildcard characters in Windows PowerShell..."
When you use cd without a parameter it uses the -Path parameter. In this case you'll have to escape the square brackets so they are not considered wildcards. Each of the commands in the first example does the exact same thing.
cd 'Learn PowerShell `[Do Whatever`]'
cd -Path 'Learn PowerShell `[Do Whatever`]'
cd (or Set-Location) also has a literal path parameter (-LiteralPath) that does not require using an escape character (`) before each of the brackets. Hope this helps.
cd -LiteralPath 'Learn PowerShell [Do Whatever]'

Similar Messages

  • HT5312 how do i delete WRONG cloud ID from my ipod touch?  it was typed WRONG and I cannot delete it because it does NOT exist and I don't know password for email accoutn that does not exist

    how do i delete WRONG cloud ID from my ipod touch?  it was typed WRONG and I cannot delete it because it does NOT exist and I don't know password for email accoutn that does not exist

    someone please help, I can't even delete content because it prompts me for a password for an account that I mistyped - wth?????

  • User Executes Stored Procedure That Executes sp_send_dbmail; receives email but also gets error Cannot alter the queue 'ExternalMailQueue', because it does not exist or you do not have permission.

    Using SQL Server 2012 SP1
    I have a user that is submitting a procedure that uses sp_send_dbmail.  I have also noticed that they have the following code in their procedure
    DECLARE @rc INT
    IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
    WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
    EXEC @rc = msdb.dbo.sysmail_start_sp
    The user submits the procedure and she gets the email but she also gets the following error message:
    Msg 15151, Level 16, State 1, Procedure sysmail_start_sp, Line 8
    Cannot alter the queue 'ExternalMailQueue', because it does not exist or you do not have permission.
    Mail (Id: 2402) queued.
    (1 row(s) affected)
    I have granted execute to sp_send_dbmail and sysmail_start_sp.  I have also granted select to service_queues.
    Does anyone have any solutions for the above error message?
    lcerni

    The contents of sysmail_start_sp is this:
    CREATE PROCEDURE sysmail_start_sp
    AS
        SET NOCOUNT ON
        DECLARE @rc INT
       DECLARE @localmessage nvarchar(255)
        ALTER QUEUE ExternalMailQueue WITH STATUS = ON
        SELECT @rc = @@ERROR
        IF(@rc = 0)
        BEGIN
          ALTER QUEUE ExternalMailQueue WITH ACTIVATION (STATUS = ON);
           SET @localmessage = FORMATMESSAGE(14639, SUSER_SNAME())
           exec msdb.dbo.sysmail_logmailevent_sp @event_type=1, @description=@localmessage
        END
    RETURN @rc
    The user get the error, because she does not have any permission on the queue in question. To be able to alter the queue, the following applies according to Books Online:
    Permission for altering a queue defaults to the owner of the queue, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.
    Note that is would be db_ddladmin or db_owner in msdb. Now, supposedly the queue is already active, and in that case I think that it is sufficient that the user has VIEW DEFINITION on the view. This would permit her to see the row in sys.service_queues,
    why there would be no need to call sysmail_start_sp.
    Altertanively, change the check to:
    DECLARE @isenabled bit
    SELECT @isenabled = (SELECT is_receive_enabled FROM msdb.sys.service_queues
                   WHERE name = N'ExternalMailQueue')
    IF @isenabled = 0
       EXEC @rc = msdb.dbo.sysmail_start_sp
    The idea here is that, if the user has no permission to read the information in the DMV, @isenabled will be NULL, and you just pray and hope that the queue is up and running.
    I suspect that the reason this worked for you on SQL 2005 is that on that instance someone at some point in made all the required configurations for it to work, but all that is forgotten now. That happens to me too.
    If you really want the user to be able to start the queue, I have some better ideas than adding her to a role, but I skip the details for now.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Cannot drop the table because it does not exist in the system catalog. Transaction context in use by another session

    Hi Every one,
    An error has occurred during report processing. (rsProcessingAborted)
    Get Online Help
    Query execution failed for data set 'NonFinTran'. (rsErrorExecutingCommand)
    Get Online Help
    Cannot drop the table '#NonFinTran', because it does not exist in the system catalog. Cannot drop the table '#MultipleNonFinTran',
    because it does not exist in the system catalog. Transaction context in use by another session.
    NOTE: NonFinTran &
    MultipleNonFinTran are
    the Temp table in my storedPoc.
    Please any help me to solve this issue. 
    Thanks & Regards,
    Anil Kumar
    Anil Kumar

    Hi Harsh,
     Below is my Stored Proc
    SELECT @ServerName=datasource from master.dbo.sysservers WHERE catalog='Voyager'    
     SELECT @ServerName3=datasource from master.dbo.sysservers WHERE catalog='AuditLog'    
     SELECT @ServerName2=datasource from master.dbo.sysservers WHERE catalog='Portal'    
     IF @ServerName IS NOT NULL SET @ServerName='[' + @ServerName + '].' ELSE SET @ServerName=''    
     IF @ServerName3 IS NOT NULL SET @ServerName3='[' + @ServerName3 + '].' ELSE SET @ServerName3=''    
     IF @ServerName2 IS NOT NULL SET @ServerName2='[' + @ServerName2 + '].' ELSE SET @ServerName2=''    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')     
      DROP TABLE #NonFinTran    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')     
      DROP TABLE #MultipleNonFinTran    
     CREATE TABLE #NonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),    
       Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,     
       BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))    
     CREATE TABLE #MultipleNonFinTran (FirstName VARCHAR(40), TaxId VARCHAR(40), TrxID VARCHAR(40), Status VARCHAR(255), Field1 VARCHAR(255), Field2 VARCHAR(255),    
       Field3 VARCHAR(255), Field4 VARCHAR(255), Field5 VARCHAR(255), Field6 VARCHAR(255), DateTime DATETIME,     
       BranchID CHAR(3), BankID CHAR(1), FromAccountID VARCHAR(255), FromAccountType VARCHAR(255))     
    INSERT #NonFinTran    
     EXEC('SELECT FirstName, TaxID,     
      TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, DateTime, '''', '''', '''', ''''    
     FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser    
     WHERE CCUser.UserID = Audit.UserID     
      AND Audit.Succeeded = 1     
      AND Audit.TrxID IN (''ChangeBillPayDefaultAccountEdit'',''ChangeExpiryUserPassword'',''ChangePasswordEdit'',    
       ''ChangeUserPassword'',''ManageAddressMaint'',''ManageContactMaint'',''ManageSecretQuestionAnswerEdit'',    
       ''ManageTransLimitMaint'',''OtherBankAccountMaintAdd'',''OtherBankAccountMaintDelete'',''OtherBankAccountMaintEdit'',    
       ''WithinAmBankAccountMaintAdd'',''WithinAmBankAccountMaintDelete'',''WithinAmBankAccountMaintEdit'',    
       ''SetAccountMaskPreferenceAudit'',''ChangeLoginIdAudit'')     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')    
     INSERT #MultipleNonFinTran    
     EXEC('SELECT DISTINCT FirstName, TaxID,     
      TrxID, Status, TrxField1, TrxField2, TrxField3, TrxField4, TrxField5, TrxField6, Audit.DateTime as AuditDateTime,    
    (SELECT DISTINCT SUBSTRING(A.BranchCode,3,3)  FROM ' + @ServerName + 'AuditLog.dbo.CCAuditLogEntryView X INNER JOIN ' + @ServerName + 'Voyager.dbo.CCuser U
    ON X.UserId = U.UserId INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_CustomerProfile P ON P.EnrolId = U.TAXID 
    INNER JOIN ' + @ServerName + 'Voyager.dbo.AMHZ_AccountListing A ON A.CIFNO = P.CIFNO
    WHERE X.UserId = Audit.UserId AND A.AccountNo = SUBSTRING(Audit.TrxField1,11,16) AND P.CIFNO = A.CIFNO
    AND (SUBSTRING(A.BranchCode,3,3) <> NULL OR SUBSTRING(A.BranchCode,3,3) <> '''')
    AND CHARINDEX(''AccountID='', Audit.TrxField1, 1) > 0),
      SUBSTRING(TrxField1,14,1), CASE WHEN CHARINDEX(''AccountID='', TrxField1, 1) > 0 THEN     
      SUBSTRING(TrxField1,11,16) ELSE '''' END, CASE WHEN CHARINDEX(''AccountType='', TrxField2, 1) > 0 THEN SUBSTRING(TrxField2,13,3) ELSE '''' END    
     FROM ' + @ServerName3 + 'AuditLog.dbo.CCAuditLogEntryView AS Audit, ' + @ServerName + 'Voyager.dbo.CCUser AS CCUser    
     WHERE CCUser.UserID = Audit.UserID     
      AND Audit.Succeeded = 1     
      AND Audit.TrxID IN (''SetAccountAttributesAudit'',''SetAccountFriendlyNameAudit'',    
      ''AccountProfileMaintULDelete'',''AccountProfileMaintLHAAdd'',''AccountProfileMaintLSCAdd'')
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @StartDate + '''), 103), Audit.DateTime) >= 0     
      AND DATEDIFF(DAY, CONVERT(DATETIME, CONVERT(VARCHAR(10), ''' + @EndDate + '''), 103), Audit.DateTime) <= 0 ')  
      SET @stmt = '    
     SELECT * FROM    
     SELECT BranchName,
     CASE WHEN SUBSTRING(FromAccountID,1,6) IN (''519901'',''559409'')  THEN ''DC''  
    ELSE       
     CASE FromAccountType WHEN ''01'' THEN ''SA '' WHEN ''02'' THEN ''CA '' WHEN ''03'' THEN ''FD ''     
        WHEN ''SA'' THEN ''SA '' WHEN ''CA'' THEN ''CA '' WHEN ''FD'' THEN ''FD '' ELSE FromAccountType + '' ''    
     END 
     END +     
    case when Len(FromAccountID) =16 Then  
       CASE FromAccountType WHEN ''VC'' THEN   
       SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)      
    WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,4)  END  
         when Len(FromAccountID) =15 Then 
    CASE FromAccountType WHEN ''VC'' THEN   
       SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)      
    WHEN ''MC'' THEN SUBSTRING(FromAccountID,1,6)+''******''+SUBSTRING(FromAccountID,13,3)  END  
         ELSE FromAccountID   
    ENd  
     AS FromAcctNo,    
     CASE TrxId  
     WHEN ''AccountProfileMaintLHAAdd'' THEN ''Link Account/Card''    
     WHEN ''AccountProfileMaintLSCAdd'' THEN ''Link Account/Card''    
     WHEN ''APMFamilyFirstAdd'' THEN ''Link Family First Account''    
     WHEN ''AccountProfileMaintULDelete'' THEN ''Unlink Account/Card''    
     WHEN ''BalInqFD'' THEN CASE  WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE ''Fixed Deposit Balance Inquiry'' END  
     WHEN ''BalInqCASA'' THEN CASE  WHEN Field3 IN (''APMLink=SUCCESS'') THEN ''APMLink Success'' ELSE
         CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Balance Inquiry'' 
        ELSE ''Current Account Balance Inquiry'' 
       END 
      END    
     WHEN ''StopCheck'' THEN ''Stop Cheque Request''    
     WHEN ''CheckReorder'' THEN ''Order Your Cheque''    
     WHEN ''CheckInquiry'' THEN ''Cheque Inquiry''    
     WHEN ''TransHistFD'' THEN ''Fixed Deposit Transaction History''    
     WHEN ''TransHistCASA'' THEN    
      CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Transaction History'' ELSE ''Current Account Transaction History'' END    
     WHEN ''StmtInqCC'' THEN    
      CASE WHEN FromAccountType IN (''DR'',''03'') THEN ''Debit Card Statement Inquiry'' ELSE ''Credit Card Statement Inquiry'' END    
     WHEN ''StmtInqDA'' THEN    
      CASE WHEN FromAccountType IN (''SA'',''01'') THEN ''Savings Account Statement Inquiry'' ELSE ''Current Account Statement Inquiry'' END    
     WHEN ''StmtReq'' THEN ''Printed Statement Request''    
     WHEN ''StmtInqIAMSTAR'' THEN ''E-AMSTAR Statement Inquiry''    
     WHEN ''Repayment/Transfer Inquiry'' THEN ''Repayment/Transfer Inquiry''    
     WHEN ''Account Inquiry'' THEN ''Account Inquiry''    
     WHEN ''Payment Inquiry'' THEN ''Payment Inquiry''    
     END AS TransType,    
     FirstName AS CustomerName,    
     TaxId, CONVERT(VARCHAR, DateTime, 103) AS Date, CONVERT(VARCHAR, DateTime, 108) AS Time    
     FROM #NonFinTran, ' + @ServerName3 + 'Portal.dbo.TB_Branch AS TB_Branch    
     WHERE     
     BranchId = TB_Branch.BranchCode     
     AND (TB_Branch.InstCode IN (''00001'', ''00003'',''001'',''002''))    
     AND (FromAccountType IN (''SA'', ''CA'', ''FD'', ''01'', ''02'', ''03'')))'    
    EXEC (@stmt)
    IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#NonFinTran%')     
     DROP TABLE #NonFinTran    
     IF Exists(Select * From tempdb.dbo.SysObjects Where Name Like '#MultipleNonFinTran%')     
      DROP TABLE #MultipleNonFinTran    
    Anil Kumar

  • The item cannot be copied because there is not enough free space.

    At work I use my 17" macbook pro, A windows SBS is used to store and share files only. When I attempt to save a file (any file word,excel, pdf etc) I get this message "The item cannot be copied because there is not enough free space." Before I upgraded to Leopard it worked fine, but know I can pull and open files from this server but not save to... I have plenty of space.. Very annoying! can someone help?

    How much free space is there in the Storage display under About This Mac?

  • Getting error 'Item 00000 does not exist' while creating a salse order

    Hi All,
    We are facing an issue, we get an error message saying 'Item 00000 does not exist' while creating a sales order for a particular order type, we do not get this problem with all the materials, only a few of them and the materials which give a problem are part of the supersession chain. The problem is not even coming for all the superseded materials.
    This problem is occuring with none of the other order types but just one. We have compared the configuration for the order types for which this error is not coming and the order type which is giving the problem, and its exactly the same.
    When creating the sales order through VA01 even though the error message comes, but on hitting the enter button the processing goes further. But when creating the sales order through the background program the processing stops the moment the error message comes and the Sales Order does not get created.
    Your valuable suggestions for helping us resolving this issue will be highly appreciated.
    Regards,
    Geeta

    HI Geeta
    As per your post "Problem is when you are executing VA01 in background sales orders are not generating due to error message".
    Apart from configuration check alternative is "Take ABAPer's help and change this error message type to warning/information message type in the system". With warning/information message type you could be able to create sales orders in background also.
    try and revert

  • I'm trying to install OS 10.6 onto my Macbook, which currently has OS 10.5.8. I clicked install (on the DVD) and selected my Macintosh HD drive. I was given the message that that disk cannot be used because it does not have the GUID partition????

    I'm trying to install OS 10.6 onto my Macbook, which currently has OS 10.5.8. I clicked install (on the DVD) and selected my Macintosh HD drive. I was given the message that that disk cannot be used because it does not have the GUID partition. In order to have a GUID partition, it suggested I go to disk utility and make the change. I couldn't see the partition tabs in the disk utility application. So how do I accomplish the GUID partition?

    The problem is, reformatting the partition may require you erase the hard drive.   Normally Intel Macs are preformatted GUID.    The fact that yours is not, says someone who initially installed the system on your Mac did you a disservice.   Regardless, you should backup your data before you upgrade.  GUID formatted drives generally are not compatible with iBooks (pre-2006 consumer notebooks by Apple) Powerbooks, and PowerMacs, and iMac G5s.    So if you indeed have machine with the MacBook name on the screen frame, it was not properly formatted from the beginning.  

  • Preview error message doc "can not be saved because it does not exist"

    I have had a long standing problem with Preview. I know it is odd but around closing time every day, two of my computers both running 10.6.8 get error message when trying to save a new document. The document will be open on my screen and when I go to save it I get the error message that the file can not be saved because it does not exist. Some background that may be relevent:
    The documents that I create all day long (for at least 6 years) are output from a 4D database. I generate a report from the db and it opens in Preview as a PDF file. All day long I have no issues with creating and saving these docs. Then around 4-4:30 when many people are getting ready to leave two of our computers (one iMac 3.06GHz Intel Core i3 and an older macMini) have this problem. All you have to do to fix it is quit Preview and regen the doc. Unfortunately we often lose a lot of work because of it. I've tried anticipating when it will happen and restart Preview before creating the new doc but that only works occasionally.
    I suspect that it has something to do with people logging out (I am usually the last to leave) and perhaps some shared application is effected. Everyone does have their own copy of Preview and we all use separate 4D clients. I have searched the internet many times. I have found some similar problems that people have had with this error but not related to my own. Unfortunately both Preview and "the file can not be saved because it does not exist" are very general terms that bring up all kinds of unrelated things.
    I was going to try to delete the Preview Prefs file and start again but I can not find a plist for preview or any other file that is clearly the prefs. Searched the internet for that too but did not find it.
    Does anyone have any ideas on this odd problem?
    Thanks for reading!
    Susan

    To answer your questions:
    Are you loading them by using Preview>File>Open, double clicking, or dragging the file? None of the above. I am loading them through 4D. I generate a report on 4D and it opens in Preview.
    When this happens can you Open another PDF from the same location? Yes, see details below.
    Are you loading these PDFs from the Server or another Mac? From the server. The file is created by a 4D client that resides on my disk but the 4D server which it references is on another computer. I am still shared to that computer and my connection to 4D has not changed as far as I can tell.
    I found today (details written in response to another question) that when this happens I can save the file to my own desktop but not to the server. It makes me think there may actually be something happening with my connection. I wonder does a server do any realigning (for lack of a better word) of connections as some connections are lost? While I had the document open (the one that I could not save to the server) I went to the server and opened a document that existed there. I saved the file back to the server with a different name. No problem, it worked just fine. Now I am really confused....
    1) A PDF file generated by 4D that has not ever been saved to the server can not be saved to the server via Preview around the time that other people are disconnecting from the server and shutting down their computers for the day. Quitting Preview and regenning the document fixes the problem.
    2) The same PDF file that can not be saved to the server can be saved to my own disk.
    3) Other files that are already existing on the server can be saved with a different name to the server at the same time as a new document can not.
    I wish I felt like I was getting closer to the answer...
    Thanks for thinking about it.
    Susan

  • Database could not be opened. May be caused because database does not exist or lack of authentication to open the database.

    Hello,
    I've been running the DMV 'sys.event_log', and have noticed that I am getting a lot of errors about connection issues to some of my SQL Azure databases saying "Database could not be opened. May be caused because database does not exist or lack of authentication
    to open the database."
    The event type column says: 'connection_failed' and the event_subtype_desc column says: 'failed_to_open_db' both are associated with the above error message.
    I know that these databases are on-line as I have numerous people connected to them, all of whom are not experiencing any issues.  My question is, is there a query that you can run on SQL Azure to try and find out a bit more information about the connection
    attempts?
    If this was a hosted SQL solution it would be much easier.
    Marcus

    Hello,
    As for Windows Azure SQL Database, we can't access the error log file as On-premise SQL Server. Currently, it is only support troubleshooting the connection error with the following DMV. The SQL database connections events are collected and aggregated in
    two catalog views that reside in the logical master database: sys.database_connection_stats and sys.event_log. We can use sys.event_log view to display the details if there is error occurs.
    Just as  the connection failed describe, it may ocurrs when user didnot has login permission when connect to the SQL Database. If so, please verify the user has logon permission.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Item Conversion to GMD YIELD TYPE does not exist for  the item/items in this Recipe/Batch.

    Item Conversion to GMD YIELD TYPE does not exist for  the item/items in this Recipe/Batch. Cannot
    scale/create batch.
    While auto shipping the above error i am getting. Please somebody help on this.
    Thanks.

    Hi,
    Could you please let us know which Oracle Product was installed and it complete 5 digit version.
    Regards,
    Prakash.

  • Error: Path to object does not exist at Request

    Hi experts,
    i have a scenario asynchronous/syncrhonous: file to rfc and get back response rfc to other file. I have 3 communication channel: 1 sender file, 1 receiver file, 1 receiver RFC. The communication channel sender file show the follow error:
    Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at Request, the whole lookup name is localejbs/AF_Modules/Request/ResponseBean.
    I do not understand how modules(AF_Modules/Request/ResponseBean) in adapter works, the documents that I have found I am not much has clarified, could someone please explain and tell me something's error?
    very thanks,
    regards

    Hi,
    Check the receiver agreement, you might have configured the file receiver communication channel name instead of the RFC receiver communication channel name.
    Also check the module parameters in the sender file CC
    Processing sequence:
    Module name                                           Module type                               Module key
    AF_Modules/RequestResponseBean        Local Enterprise Bean                       1
    CallSapAdapter                                       Local Enterprise Bean                       2
    AF_Modules/ResponseOnewayBean         Local Enterprise Bean                       3
    Module configuration:
    Modulekey                              parameter name                         parametervalue
    1                                             passThrough                               true
    3                                            receiverChannel                            <File receiver  CC>
    3                                             receiverService                            <Receiver service name>
    Regards,
    Nithiyanandam

  • Cannot retrieve table metadata - Table does not exist: ODP source 0WRKCNT_CATG_TEXT does not exist

    Hi, when i able to import the 0WRKCNT_CATG_TEXT extractor into source system i am getting the above bug Cannot retrieve table metadata - Table does not exist: ODP source <0WRKCNT_CATG_TEXT> does not exist, i have been checked in RSA5 T code to check the object is active or not, its active and its available in ROOSATTR table with enabled mode,but still its showing the error, can anyone help on this ..

    Hi Airings,
    'ORA-00942: table or view does not exist'
    According to the error message, it seems that the migrating table or view does not exist in the database, or SSMA does not have access to it. To troubleshoot the issue, please check the following things.
     1. Verify that if the spelling of the table or view name is correct.
     2. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too. Resolve this by
    explicitly reference the table or view by specifying the schema name (schema_name.table_name).
    3. SSMA queries some additional catalog tables that you may not have permission to, please make sure that you grant the account permission to
     read sys.mlog$. For more details, please review this similar thread:
    Bug in SSMA For Oracle 6.0 for non-dba Oracle user.
    Reference:
    ORA-00942 Table or View Does Not Exist Oracle Error
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • I see a computer in Finder under "Shared" that does not exist

    I see a computer in Finder under "Shared" that does not exist.How do I get rid of it?

    Does anyone thing it's possible that installing the OS without the Airport card working has caused the system to completley ignore it even though it may now have a working card and cable, seems unlikely to me but really struggling to know where to look now.

  • Unable to lookup home: Path to object does not exist at : java:comp#

    Hallo,
    I do not understand why I am getting the exception:
    Unable to lookup home: Path to object does not exist at : java:comp#
    if i have defined in the ejb-j2ee-engine.xml the jndi name:
    <enterprise-beans>
         <enterprise-bean>
              <ejb-name>MyConverterBean</ejb-name>
              <jndi-name>MyConverterBean</jndi-name>
              <session-props/>
         </enterprise-bean>
    </enterprise-beans>
    and in the ejb-jar.xml :
    <enterprise-beans>
       <session>
          <description>the converter bean</description>
          <display-name>MyConverter</display-name>
          <ejb-name>MyConverterBean</ejb-name>
          <home>converter.MyConverterHome</home>
          <remote>converter.MyConverter</remote>
          <local-home>converter.MyConverterLocalHome</local-home>
          <local>converter.MyConverterLocal</local>
          <ejb-class>converter.MyConverterBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
        </session>
    </enterprise-beans>
    I am creating the EJB in this way:
    ic = new InitialContext();
    objRef = ic.lookup("java:comp/env/ejb/MyConverter");
    home = (MyConverterHome)PortableRemoteObject.narrow(objRef, MyConverterHome.class);
    converter = home.create();
    I checked in the Administrator tool under JDNI / ejbContext and I can see MyConverterBean in the list.
    Do you have any idea what I am doing wrong?
    thanks a lot for your help,
    SAPLernen

    Hi Vladimir,
    do you have some example or tutorial of how can i implement java proxies from a java stand alone application.
    i allready make everyting but i'm still having problem.
    this line give me a null
    queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
    this is my java class that invoke my ejb java proxy
    package com.gsk.xi.demo;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.sap.aii.proxy.xiruntime.core.MessageSpecifier;
    public class InvokeProxy {
         private Object objRef = null;
         private InitialContext ic = null;
         public String getRole(String name, String pwd){
              String role="0";
              UsersSyncMI_PortTypeLocalHome queryOutLocalHome=null;
              UsersSyncMI_PortTypeLocal queryOutLocal=null;
              try{
                   Context ctx = null;
                   Object ref = null;
                   Properties p = new Properties();
                   p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   p.put(Context.PROVIDER_URL, "buasapp012.gwamericas.corpnet1.com:50004");
                   p.put(Context.SECURITY_PRINCIPAL, "J2EE_ADMIN");
                   p.put(Context.SECURITY_CREDENTIALS, "was1234");
                   ctx = new InitialContext();
                   //objRef = ic.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   //queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)PortableRemoteObject.narrow(objRef, UsersSyncMI_PortTypeLocalHome.class);     
                   queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   queryOutLocal = queryOutLocalHome.create();
                   MessageSpecifier msg = queryOutLocal.$messageSpecifier();
                   msg.setSenderService("JAVA");
                   queryOutLocal.$messageSpecifier(msg);
                   UserDT_Type reqtype = new UserDT_Type();
                   reqtype.setUsername(name);
                   reqtype.setPassword(pwd);
                   UsersDBMTResponse_Type response = new UsersDBMTResponse_Type();
                   response = queryOutLocal.usersSyncMI(reqtype);
                   role = role + response.getStatementResponse().getRow().getRole();
              catch(Exception ex){
                   System.out.println(ex.getMessage());
              return role;
    } //end of class
    thanks for your time
    Lionel

  • RW Cronacle : JCS-02041: cannot wait on job that does not exist (yet)

    Hi all,
    We are facing a new problem when submitting our maintaining variants scripts.
    The script failed and returns the error
    JCS-02041: cannot wait on job that does not exist (yet)
    Have you ever met this kind of error ? What kind of issue could it be ?
    Thank you very much for you answers.
    Regards,
    Scheduling team

    Anton,
    Here are the informations (I hope that will help you) :
    JCS Object Database   7.0.3.43 
    Cronacle Repository
    JCS Redwood Reports Module     7.0.2 
    Cronacle Reports Module    
    JCS Redwood Mail Module     7.0.2 
    Cronacle Mail Module  
    JCS PM4W   7.0.2 
    Cronacle Process Manager for Web   
    JCS RSI   7.0.4   SP3 production
    Cronacle for SAP solutions
    JCS Modules      7.0.4       SP3 production
    Cronacle Module Installer    
    We didn't change many things in the varedit script, we have just deleted some parameters we don't maintain :
    create or replace script "RSI"."C4_SC_POA0_J_000_00_VE_FEN4A"
    ( "INSTANCE"        in varchar2(15)     not null
                        description         'SAP instance'
                        input format        'UPPERCASE'
                        default             expr('EP1'
    , "CLIENT"          in varchar2(3)      not null
                        description         'Client'
                        default             expr('900'
    , "ABAP_PROGRAM_NAME" in varchar2(32)     not null
                        description         'Abap program name'
                        input format        'UPPERCASE'
                        default             expr('abap_program_name'
    , "ABAP_VARIANT_NAME" in varchar2(14)     not null
                        description         'Abap variant name'
                        input format        'UPPERCASE'
                        default             expr('abap_program_variant'
    , "PAR_P_NAME"      in varchar2(128)    null
                        description         'P_NAME'
                        groupname           "Option"
    , "PAR_P_PATH"      in varchar2(128)    null
                        description         'P_PATH'
                        groupname           "Option"
                        default             expr('/tmp/'
    , constraint        "VARIANT_LIST"
                        prequery            0 rows
                        message             'Please choose a valid variant combination'
                        optional
                        check               (
                        select  apv.abap_variant_name
                        into    ABAP_VARIANT_NAME
                        from    rsi_program_variants_view apv
                        where   apv.instance          = :INSTANCE
                        and     apv.client            = :CLIENT
                        and     apv.abap_program_name = :ABAP_PROGRAM_NAME
    Edited by: Architecture Architecture on Dec 7, 2009 5:59 PM

Maybe you are looking for

  • Hyperlink to another bi publisher report in 10g

    I am using Bi Publisher 10g. I want to build a bi publisher report that makes a link to another bi publisher report. I created a Hyperlink in my template and it works fine, however the url that I am using is the full path to the xdo resource and thei

  • How to uninstall and deactivate PS elements 11 from a broken computer so I can download on a new one?

    I recently bought a new computer because my old one crashed. All that I have that is usable is the hard drive. Thank God. However, I cannot uninstall and deactivate my PS elements 11 from that computer to put in on my new one. I've call several numbe

  • Event Handler/Cr​eate User Event bug

    This is a problem I've run into a few times on my system (Win2k) so I finally went back and reproduced it step by step since it wasn't too hard. It causes LabVIEW to crash and exit without saving. - Create an Event Handler - Place 'Register Events',

  • Query works in Tera Term but not in Telnet Read.vi

    I am using Telnet Write.vi to execute a command such as GET_VERSION Then using Telnet Read.vi, I am expecting several lines to be returned. This works if I manually do this with Tera Term. But with LabVIEW, the Telnet Read.vi simply returns the comma

  • What is the transid in incoming payment tables for canceled entry

    The transid for document No. 1267 is 5555 in tables ORCT & OJDT. if canceled the document no. 1267 then reverse entry transid in ojdt table for this document is 5556. But where I have to find the reference 5556 in Incoming tables. I don't want to in