Do INSERT if value do not exist
Hi.
I am trying to create sql that does the following:
if db1..names.cpr not in db1..people.cpr then:
INSERT INTO db1..People(cpr,type) VALUES (db1..names.cpr,1)
* type should have the default value 1
Can anybody give me an idear on how to do that.
BR
Soren
Don't know how this relates to JDBC but anyway.
This should work - but I haven't tested it!
INSERT INTO db1.people(cpr,type)
SELECT cpr, 1
FROM db1..names
WHERE NOT EXISTS (SELECT 1 FROM db1.people p WHERE p.cpr = db1..names.cpr AND p.type = 1)
Similar Messages
-
VMM 2012R2 UR4 - Version 3.2.7768.0
Not sure when this started happening since I haven't had to update or create a new RunAs account in VMM in some time, but every time I do, either through the console or through PowerShell it throws an error about The specified directory service attribute
or value does not exist. The VMM Service account is the same as it always has been, and other than this issue everything with VMM is working fine. The full text of the error message is below.
I am hoping someone has some ideas because I don't have any more at this point.
------------------- Error Report -------------------
Error report created 12/22/2014 9:43:33 AM
CLR is not terminating
--------------- Bucketing Parameters ---------------
EventType=VMM20
P1(appName)=vmmservice.exe
P2(appVersion)=3.2.7768.0
P3(assemblyName)=Microsoft.Cryptography.DKM.dll
P4(assemblyVer)=3.2.7510.0
P5(methodName)=Microsoft.Incubation.Crypto.GroupKeys.ADRepository.EnumerateKeys
P6(exceptionType)=System.Runtime.InteropServices.COMException
P7(callstackHash)=d0d2
SCVMM Version=3.2.7768.0
SCVMM flavor=C-buddy-RTL-AMD64
Default Assembly Version=3.2.7768.0
Executable Name=vmmservice.exe
Executable Version=3.2.7768.0
Base Exception Target Site=140712994535888
Base Exception Assembly name=System.DirectoryServices.dll
Base Exception Method Name=System.DirectoryServices.DirectoryEntry.Bind
Exception Message=The specified directory service attribute or value does not exist.
EIP=0x00007ffa67d15bf8
Build bit-size=64
------------ exceptionObject.ToString() ------------
System.Runtime.InteropServices.COMException (0x8007200A): The specified directory service attribute or value does not exist.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)
at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.EnumerateKeys()
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.FindNewestKey()
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.GetCurrentKeyAndUpdate(KeyPolicy& keyPolicy)
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Protect(MemoryStream plaintext)
at Microsoft.VirtualManager.Engine.DKMUtil.Protect(Byte[] data)
at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(Char[] data)
at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(SecureString data)
at Microsoft.VirtualManager.DB.RunAs.RunAsDBAccess.UpsertRunAsAccount(RunAsAccountData data, SqlContext context, Boolean isAdd, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.AddOrUpdateObjectInDB(SqlContext context, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.UpdateDB(SqlContext ctx, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.Update(SqlContext ctx, Boolean setCredential)
at Microsoft.VirtualManager.Engine.AuthorizationManager.SetRunAsAccountTask.RunSubtask()
at Microsoft.VirtualManager.Engine.TaskRepository.SubtaskBase.Run()
at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)
--------------- exception.StackTrace ---------------
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)
at Microsoft.Incubation.Crypto.GroupKeys.ADRepository.EnumerateKeys()
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.FindNewestKey()
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.GetCurrentKeyAndUpdate(KeyPolicy& keyPolicy)
at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Protect(MemoryStream plaintext)
at Microsoft.VirtualManager.Engine.DKMUtil.Protect(Byte[] data)
at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(Char[] data)
at Microsoft.VirtualManager.Engine.CryptoHelper.Protect(SecureString data)
at Microsoft.VirtualManager.DB.RunAs.RunAsDBAccess.UpsertRunAsAccount(RunAsAccountData data, SqlContext context, Boolean isAdd, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.AddOrUpdateObjectInDB(SqlContext context, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.UpdateDB(SqlContext ctx, Boolean setCredential)
at Microsoft.VirtualManager.Engine.RunAs.RunAsAccount.Update(SqlContext ctx, Boolean setCredential)
at Microsoft.VirtualManager.Engine.AuthorizationManager.SetRunAsAccountTask.RunSubtask()
at Microsoft.VirtualManager.Engine.TaskRepository.SubtaskBase.Run()
at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)
------------- StackTrace from handler --------------
This is the call stack from where the exception was caught, not where it was thrown.
at Microsoft.VirtualManager.Utils.Diagnostics.WatsonReport.WriteReportTextFile(TextWriter reportFile)
at Microsoft.VirtualManager.Utils.Diagnostics.WatsonReport.Send()
at Microsoft.VirtualManager.Utils.Diagnostics.WatsonExceptionReport.Send()
at Microsoft.VirtualManager.Utils.Diagnostics.WatsonCenter.ReportException(Exception e, WERReportOptions options, String& localReportPath)
at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
-------------------- Assemblies --------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
Module=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
Version=4.0.30319.34014
BuildType=retail
Product=Microsoft® .NET Framework
VMMService, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\vmmservice.exe
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\vmmservice.exe
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
Version=4.0.30319.34003
BuildType=retail
Product=Microsoft® .NET Framework
TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\TraceWrapper.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\TraceWrapper.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Utils, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Utils.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Utils.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
NativeMethods, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\NativeMethods.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\NativeMethods.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Common.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Common.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.IndigoAccessLayer, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.IndigoAccessLayer.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.IndigoAccessLayer.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
Skuhelper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Skuhelper.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Skuhelper.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Errors, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Errors.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Errors.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Remoting, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Remoting.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Remoting.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
Version=4.0.30319.34230
BuildType=retail
Product=Microsoft® .NET Framework
System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
Version=4.0.30319.33440
Product=Microsoft® .NET Framework
System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System.DirectoryServices.AccountManagement, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.AccountManagement\v4.0_4.0.0.0__b77a5c561934e089\System.DirectoryServices.AccountManagement.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.AccountManagement\v4.0_4.0.0.0__b77a5c561934e089\System.DirectoryServices.AccountManagement.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
Version=4.0.30319.34230
BuildType=retail
Product=Microsoft® .NET Framework
Engine.Adhc.Operations, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Adhc.Operations.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Adhc.Operations.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.TaskRepository, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.TaskRepository.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.TaskRepository.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
ImgLibEngine, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\ImgLibEngine.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\ImgLibEngine.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
VmmHelperHost, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmHelperHost.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmHelperHost.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
VirtualizationInterfaces, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VirtualizationInterfaces.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VirtualizationInterfaces.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
NetworkServiceInterfaces, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\NetworkServiceInterfaces.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\NetworkServiceInterfaces.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
ClusterUtil, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\ClusterUtil.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\ClusterUtil.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
VMWareImplementation, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VMWareImplementation.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VMWareImplementation.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.AuthorizationManager, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.AuthorizationManager.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.AuthorizationManager.dll
Version=3.2.7672.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.AuthorizationManagerTasks, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.AuthorizationManagerTasks.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.AuthorizationManagerTasks.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Backup, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Backup.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Backup.dll
Version=3.2.7672.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.BitBos, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.BitBos.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.BitBos.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
Version=6.3.9600.17090
BuildType=retail
Product=Microsoft (R) Windows (R) Operating System
WsManWrappers, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WsManWrappers.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WsManWrappers.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
SqmWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\SqmWrapper.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\SqmWrapper.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Deployment, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Deployment.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Deployment.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Placement.ResourceModel, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Placement.ResourceModel.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Placement.ResourceModel.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.ImgLibOperation, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ImgLibOperation.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ImgLibOperation.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
Version=4.0.30319.34230
BuildType=retail
Product=Microsoft® .NET Framework
Engine.CustomProperties, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CustomProperties.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CustomProperties.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.VmOperations, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.VmOperations.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.VmOperations.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.MomDal, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.MomDal.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.MomDal.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
Engine.PxeServer, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.PxeServer.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.PxeServer.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Placement, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Placement.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Placement.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.P2VCommon, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.P2VCommon.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.P2VCommon.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
PatchExtractor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\PatchExtractor.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\PatchExtractor.dll
Engine.ConfigurationProviders, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ConfigurationProviders.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ConfigurationProviders.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
GatewayInterfaces, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\GatewayInterfaces.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\GatewayInterfaces.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Management.Infrastructure.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Management.Infrastructure.dll
Version=6.3.9600.16384
BuildType=retail
Product=Microsoft (R) Windows (R) Operating System
Microsoft.CapacityManager.Modeling.Store.ModelLibrary, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Microsoft.CapacityManager.Modeling.Store.ModelLibrary.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Microsoft.CapacityManager.Modeling.Store.ModelLibrary.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.CustomPropertyTasks, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CustomPropertyTasks.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CustomPropertyTasks.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.UMOperation, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.UMOperation.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.UMOperation.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Scheduler, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Scheduler.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Scheduler.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.Tasks, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Tasks.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.Tasks.dll
Version=3.2.7672.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.ServiceOperations, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ServiceOperations.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.ServiceOperations.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
GoalState, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\GoalState.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\GoalState.dll
Version=3.2.7768.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
Engine.CloudService, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CloudService.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\Engine.CloudService.dll
Version=3.2.7672.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
WSManAutomation, Version=3.2.7768.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WSManAutomation.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WSManAutomation.dll
wmiWrappers, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Location=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WMIWrappers.dll
Module=D:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\WMIWrappers.dll
Version=3.2.7510.0
BuildType=retail
Product=System Center Virtual Machine Manager 2012 R2
System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
Version=4.0.30319.33440
Product=Microsoft® .NET Framework
System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll
Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll
Version=4.0.30319.33440
BuildType=retail
Product=Microsoft® .NET Framework
--------- Extra Data for Watson Report -------------
Error Reporting Enabled=True
*** Extra Data ***
Process ID = 4356 (0x1104)
Managed Thread ID = 18
Native Thread ID = 5520 (0x1590)
MCITP | VCP4 | VCP5Hi,
You want userPrincipalName, not userPrincipleName.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680857%28v=vs.85%29.aspx
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
FTXP-error-Domain MWART fixed value does not exist- Message no. F4341
Hi,
I am trying to created a new record for a tax code, and i get this error
Domain MWART fixed value does not exist
Message no. F4341
I looked up OB40, and not sure how to fix this. Do you know how to check the tax codes? How to validate OB40?
Thanks.Hello,
Please follow this procedure for the input tax codes which experience
the error F4341:
1) Go to SE16 and enter table T007A
2) Hit enter and in the next screen choose the following parameters
and enter values that represent the tax code for input tax which are
encountering the problem.
KALSM (tax procedure)
MWSKZ (tax code)
3) Click on the "execute" button.
4) Take special attention to column MWART which represents tax type.
This should only have a value "V" to represent input tax (or "A" if
output tax).
5) The cause of the error F4 341 is when this column does not contain
any value or is blank. Which means that there is no defined tax type
"A" or "V" maintained in customizing.
6) To correct this you should maintain the value again via FTXP for the
corresponding tax codes and complete all the customizing settings
relating to tax on sales and purchases thereunder. Afterwhich you
should no longer experience the error message.
Regards,
REnan -
Error "Valid Value - Value do not Exist" for payment terms
Hi,
I am trying to change the payment terms in a Sales Order using UIAPI.
Although the value i am using to update is a valid value, i get the following error:
Valid Value - Value do not Exist
My code is as folows:
Dim sNewValue as String
sNewValue = "2"
oFrm.Items("47").Specific.Select sNewValue, psk_ByValue
What am i doing wrong?
Thanks
SatishHi Satish,
Have you tried defining the new value as an integer instead of a string? The GroupNum data type in the OCTG is Int, not character.
Hope helps,
Ibai Peñ -
Select from 1 table only if a value does not exist
Hello all,
I'm having problems devising a single select statement to accomplish a single return value. I have tried variations of DECODE and COALESCE, but it's escaping me.
I have two tables that are as follows:
NAME
ID, FULLNAME
1, Senior
2, Junior
3, Mister
4, Senor
5, Miss
ABBREVIATION
ID, ABBREV
1, Sr
2, Jr
3, Mr
5, Ms
What I would like to do is select from the NAME table only if the value does not exist in the ABBREVIATION table.
Ideally if I were to do something such as:
SELECT * FROM .... WHERE (ID=1 or ID=2 or ID=4) ....
I would receive the following output:
1, Sr
2, Jr
4, Senor
Thanks for reading!You want an outer join.
SELECT decode(a.abbrev, NULL, n.fullname, a.abbrev)
FROM name n,
abbreviation a
WHERE n.ID = a.ID(+)
AND ....Something like that.
Full example:
with n as (
select 1 as ID, 'Senior' as FULLNAME from dual UNION ALL
select 2 as ID, 'Junior' as FULLNAME from dual UNION ALL
select 3 as ID, 'Mister' as FULLNAME from dual UNION ALL
select 4 as ID, 'Senor' as FULLNAME from dual UNION ALL
select 5 as ID, 'Miss' as FULLNAME from dual),
a as (
select 1 as ID, 'Sr' as ABBREV from dual UNION ALL
select 2 as ID, 'Jr' as ABBREV from dual UNION ALL
select 3 as ID, 'Mr' as ABBREV from dual UNION ALL
select 5 as ID, 'Ms' as ABBREV from dual)
select decode(a.abbrev, NULL, n.fullname, a.abbrev)
from a, n
where n.id = a.id(+)
order by n.id;
ID DECODE(A.ABBREV,NULL,N.FULLNAME,A.ABBREV)
1 Sr
2 Jr
3 Mr
4 Senor
5 Ms
5 rows selectedEdited by: tk-7381344 on Nov 17, 2008 1:31 PM -
Value does not exist for "..." in connection...
Hello,
I have following issue using Design Studio 1.3.
I was changed my source of dashboard from universe to Bex Query.
When it was done I have received following Script Problem related to CheckBox
Description
Location
Event Script
Component
Application
Type
Value "Sourcable" does not exist for "GP_XSRCB" in connection "cuid:AdpcHfZ9h0VKrXD0XhomzOs"
Line 3
On Click
CHECKBOX_1
[rkams1157] S2P_PROTOTYPE_MDM_001-002 - dev
Design Studio Script Problem
Below please find the Script syntax:
if(CHECKBOX_1.isChecked())
DS_2.setFilter("GP_XSRCB", "Sourcable");
else
DS_2.clearFilter("GP_XSRCB");
I would like to note that this script on CheckBox works fine based on universe as a source.
Please advice.Dear All,
I am also facing same problem, while doing PGI (Post Goods Issue)
Can any one help in this please.
And the error message was
Characteristic value SEL F1P ADD 82947 does not exist for characteristic PAPH4 (ProdHier01-4)
Message no. KE0C133
Diagnosis
The characteristic "PAPH4" ("ProdHier01-4") should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value (" SEL F1P ADD 82947") is not valid in CO-PA.
System Response
The data is not consistent and therefore cannot be transferred to CO-PA.
Procedure
With the function Maintain Characteristic Values, you can add characteristic values to those that are valid.
1. When, I check contents of table MARA-PRDHA, it contains 17 character Alphanumeric input "SEL F1P ADD 82947"
2. When, I check character PAPH4 in KEA5-->Data type was CHAR and length was 17.
3. Characterstick PAPH4 cannot be maintained using KES1.
Thanks & Regards
Sahas -
KE0C133 : Characteristic value does not exist for charact KMVTNR
Hi Gurus,
In my system i have the field CO-PA KMVTNR, assigned to KNVP - LIFNR.
When i try to create a shipment cost, i get the error: "The characteristic KMVTNR (Sales employe) should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value is not valid in CO-PA."
I have debbug, and the problem is that in report RK2FVPKE, check that my value is not a valid PERNR. And it is not, because i am assigning a lifnr number not a pernr number.
I not allways get this error, when i create the same shipment cost in other case. What make that the system check that the value is a valid pernr or not?
thanksHi Luis
To me, it seems logical that if the pernr is not there, the system gives you an error
In the cases where it did not, can you check if valid pernr exists?? If you create a wwxxx char "without own value maint", it should not check for the valid pernr. But with kmvtnr, I am sure it will check
Br. Ajay M -
Environment:
Oracle ADI version: version Oracle ADI 7.2.12.04.25 and patch number 9493800
Microsoft Office version: 2003
How to recreate incident:
1. Create a budget worksheet for a company
2. View the budget information
3. Upload budget information to the Interface Table
Actual Result:
Account error: Value <value> for the flexfield COMPANY does not exist in the value set BB_COMPANY. I have noticed the same error is displayed regardless of whether I select options from the combo boxes or enter random numbers in the journal i.e. 0000 for each field.
Expected Result:
Budget information to be uploaded successful especially when the data has not been amended
Questions:
1. What is happening to cause this problem?
2. What is the solution?The issue is resolved, no need to answer, the dbconnection class was calling the wrong db :(
-
Value does not exist in VIQMEL table due to ILOA-ILOAN field
Hello All,
I am trying to check a PCR/OCR Notification but it seems Notification does not exist.
The notification number is not there in VIQMEL table.
VIQMEL takes reference of 3 tables - QMEL, QMIH and ILOA.
I checked QMIH table for this notification and found a field ILOAN. The ILOAN number given in table QMIH is not there in ILOA table.
Can you explain what could be the possible reason of empty ILOAN field?
Also if you could explain the significance of field ILOAN and how this number is generated?
Thanks & Regards
DevrajThere was an issue of value range of notification..
-
I need to update (post) a table with summarized totals from another table. It is possible that the matching rows do not exist so I want to insert them before posting (UPDATE) to them. There is a table named BillingDetail that is summarized to insert into
another table named BillingHistory when rows do not match on 4 different columns. Below is my first shot at doing this but am not sure if the NOT IN clause is correct or maybe there is another (better) way.
INSERT INTO [dbo].[BillingHistory]
([entity]
,[plincd]
,[pgrpcd]
,[pitmcd]
,[hstyr]
,[corpnbr]
SELECT @entity
,plincd
,pgrpcd
,pitmcd
,@hstyr
,corpnbr
FROM (SELECT plincd
,pgrpcd
,pitmcd
,corpnbr
,SUM(qty) AS TotalQty
,SUM(extprc) AS TotalExtPrice
FROM dbo.BillingDetail
GROUP BY corpnbr, plincd, pgrpcd, pitmcd) AS DT
WHERE pitmcd NOT IN(SELECT pitmcd FROM dbo.BillingHistory WHERE plincd = DT.plincd AND pgrpcd = DT.pgrpcd AND pitmcd = DT.pitmcd AND corpnbr = DT.corpnbr);Not knowing the keys of BillingHistory, it is difficult to say whether your INSERT is correct, but it does look funny. My guess is that all six columns constitute the key, in which case this would be better:
INSERT INTO [dbo].[BillingHistory]
([entity]
,[plincd]
,[pgrpcd]
,[pitmcd]
,[hstyr]
,[corpnbr]
SELECT @entity
,plincd
,pgrpcd
,pitmcd
,@hstyr
,corpnbr
FROM (SELECT plincd
,pgrpcd
,pitmcd
,corpnbr
,SUM(qty) AS TotalQty
,SUM(extprc) AS TotalExtPrice
FROM dbo.BillingDetail
GROUP BY corpnbr, plincd, pgrpcd, pitmcd) AS DT
WHERE NOT EXISTS (SELECT *
FROM dbo.BillingHistory BH
WHERE BH.entity = @entity
AND BH.plincd = DT.plincd
AND BH.pgrpcd = DT.prgpcd
AND BH.pitcmd = DT.pitcmd
AND BH.hstyr = @hstyr
AND BH.corpnbr = DT.corpnbr)
And even better may be to use MERGE as Ronen suggested, but I want to see the CREATE TABLE statements (including keys) for the table before I try that.
Erland Sommarskog, SQL Server MVP, [email protected] -
How to handle missing data when a limit value does not exist
Hi guys
I am quite new to all this OLAP stuff and I don't know how to detect the following situation:
What happens when CREDITT.MYSERIES2 does not exist? the query then returns V1 and V2 populated with the data from CREDIT.MYSERIES1 and CREDIT.MYSERIES3 respectively (and V3 being all NULLs). I have no way of knowing that the limit has not worked on Series2.
Is there any way to detect this? (perhaps assigning V2 to be all NULLs?)
Thanks in advance
Adam
SELECT
TRUNC(IND-TO_DATE('01011900','ddmmyyyy')+2),V1,V2,V3
FROM (
SELECT *
FROM TABLE(
OLAP_TABLE( 'OLAPFAME.MAG_CRD DURATION SESSION',
'DIMENSION IND AS DATE FROM DAY
MEASURE V1 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 1))
MEASURE V2 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 2))
MEASURE V3 AS NUMBER FROM AW_EXPR DAILY.DATA(SERIES STATVAL(SERIES, 3))
ROW2CELL R2C1' ))
MODEL
DIMENSION BY(IND)
MEASURES(V1,V2,V3,R2C1)
RULES UPDATE SEQUENTIAL ORDER())
WHERE OLAP_CONDITION( R2C1,
'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
''CREDITT.MYSERIES2'',
''CREDIT.MYSERIES3'';
LMT DAY TO ''21DEC2009'' TO ''31DEC2009'';
LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1',
1 )=1I am not sure what your issue is entirely because what you posted is not your working code.
WHERE OLAP_CONDITION( R2C1,
'LIMIT SERIES TO ''CREDIT.MYSERIES1'',
''CREDITT.MYSERIES2'', <-- this seems incorrect
''CREDIT.MYSERIES3''; <-- semicolon indicates end of statement
LMT DAY TO ''21DEC2009'' TO ''31DEC2009''; <-- what is this?
LMT DAY REMOVE DAYOF(DAY) EQ 7 OR DAYOF(DAY) EQ 1', <-- what is this?
1 )=1Could you please repost the correct code? -
Hai ,
I am having doubt regarding NOT EXISTS sql query,
I want to select rows from table1 where column2 < column3 and column1 value should not exists in another two tables.
When i tried with NOT IN clause i got the answer but i didnt get when i tried with NOT EXISTS.....can anyone give me the answer....
select * from TABLE1 where mark2< mark3 AND
name NOT IN (select name from TABLE2 UNION
select name from TABLE3);Your query can be re-written in the following way by using not exists clause:
SELECT *
FROM table1 t1
WHERE mark2 < mark3
AND NOT EXISTS (
SELECT 1
FROM table2
WHERE name = t1.name)
AND NOT EXISTS (
SELECT 1
FROM table3
WHERE name = t1.name)Go through http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:442029737684
on when to use NOT IN and NOT EXISTS.
Hope this is helpful.
- RK -
Trying to insert a single row in a table based on NOT EXIST
Hi,
I have a procedure where i am doing an insert into the table say
create table ABC(PK number, valu varchar2(10));
insert into ABC values(1,'hi');
Now my problem is that this procedure may be run several times so if a PK already exists, it should not try to insert again. so I came up with the solution..
insert into ABC select (1,'hi') from ABC where not exists (select 1 from ABC where PK=1);
but the problem with this is that if Pk=1 does not exist and if the table already has 5 rows, 5 insertions of PK=1 are being done..
can anyone plz help me.
thanksWhy dont you let Oracle handle the uniqueness of the records and you make your code robust to handle that exception?
DUP_VAL_ON_INDEX exception can be caught in your procedure and no action needs to be taken on that in this case. -
Key value does not currently exist in the primary key table error
Im testing out a form and creating a new insert once all the fields are filled in it wont allow me to move on and comes up with this error message;
key value does not currently exist in the primary key table
Is this becuase the form contains foriegn keys which reference different tables which fields are not dispalyed on this form?
If so how to I link the other forms together so that when i create a new record in this form it will automaticaly create the primary key entry in the other form to allow the insert of the referenced foreign key in this form?
does this make sense?It seems that it has the table in which you'r inserting is a foreign key table.
Take the emp& dept table example in the schema scott/tiger.
Say we have deptno 10, 20, 30, 40 in the dept table.
We make a form for emp table and insert into this form.
Now, we'r bound to insert deptno 10, 20, 30, 40 into this emp form. This form will not allow us to insert deptno 50 as it doesn't exist in the primary key column in dept table.
Obviously if a department doesn't exist in the company, it doesn't make sense to assign the employees to that department.
So for this purpose, we need to add a department in the dept table then we can insert values in the emp table for that department.
For this purpose, I suggest to make a button on the mp form and invoke the dept form and add a new department to it and then insert into emp table.
The same scenario can be applied in your case. -
Row Insert Failed - Column name or number of supplied values does not match
Hi ,
I am trying add a new field to an existing table in MSSQL and access it in portlets,
I added the new field in the table, and making necessary updations to the accessing java code seems to look fine. but when i insert the new rwo, fails with exception listed below.
My code tidbits is as follows.
System.out.println("Column Location of outsidePhysician"+ aResultSet.findColumn("outsidePhysician")); // works and returns 24
if (anIntake.getOutsidePhysician() != null && !(anIntake.getOutsidePhysician().equals("")))
System.out.println("Now Alternate Physician will be added to resultset");
aResultSet.updateString(24, anIntake.getOutsidePhysician());
aResultSet.updateString("outsidePhysician",anIntake.getOutsidePhysician());
System.out.println("Now Alternate Physician already added to resultset"); // also printed
}else{
aResultSet.updateString(24, "new Physician");
aResultSet.updateString("outsidePhysician","new Physician");
//NOT NULL
aResultSet.insertRow(); // fails here
System.out.println("Inserted");
The table has the right field name too, which is proved when i retrieve the fieldno, based on field name. I tried to delete the field and removing these changes work ok..
Any ideas would be of help
Thanks in Advance
Usha
[Microsoft][SQLServer 2000 Driver for JDBC]Row insert failed. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.executeStatement(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.insertRow(Unknown Source) at com.microsoft.jdbc.base.BaseResultSet.insertRow(Unknown Source) at com.microsoft.jdbcx.base.BaseResultSetWrapper.insertRow(Unknown Source) at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.insertRow(WSJdbcResultSet.java:2181) ... 14 more Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Insert Error: Column name or number of supplied values does not match table definition. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceI haven't ever used that method of inserting rows, but from the example in the API documentation it looks to me like you have to callaResultSet.moveToInsertRow();before you callaResultSet.insertRow();Or are you just "inserting" the physician's name into existing rows of the database? If that's what you are doing then you need to callaResultSet.updateRow();Message was edited by:
DrClap
Maybe you are looking for
-
PI Java Mapping NullPointerException
Hi Gurus, I'm having some troubles doing the mapping through java mapping in PI. I've done the java class in the SAP NWDS and imported it on PI through the ESR. Now i'm trying to test through the SOAP and i've found the following error in the "Commun
-
Problems setting up dual monitors
I am having problems setting up dual monitors on a band new HP envy 700 using windows 8. I just bought this computer and bought DVI to via adapters to use. Everything is hooked up but nothing is happening on the 2nd monitor. Help!
-
I once accidentally replaced my itunes library (when my hard drive was not connected). I managed to both re-import all my tracks from the files while at the same time finding the old library... or whatever. In any case, now I have 1000s of duplicate
-
Hello, My podcasts aren't updating. I checked the settings under "preferences" and it read that next check would be 12/28/06, and well today is 1/6/06. What is going on? I've got it set to check for updates everyday, yet it's not doing it. Please adv
-
Blue screen of death on PC when using home sharing with Apple TV
I've just bought ATV2 and trying to connect to my iTunes library on Win7 PC via home sharing. I can connect fine to the library, but when I play a song on ATV, I get blue screen of death on my PC. Any ideas? I'm running latest version of iTunes on my