To cast or not to cast?
In SQL, when one refers to another table to display a value (e.g. a field: (select something from a_table) column_alias) the engine gives to the column an unlimited range of the datatype.
For example when I 'm getting a varchar2 value it will show up as varchar2(4000).
So, most of the time if I know the limit of the values I get, I use the following:
cast ( (select something from a_table) as varchar2(100) ) column_alias
To me, this has the benefit of not having to limit the datatype when using application development tools (Forms and Reports in my case).
The question is: Does it really matter (is it beneficial) when it comes to database memory issues to use this manner?
Thanks in advance.
MichaelTsilikidis wrote:
In SQL, when one refers to another table to display a value (e.g. a field: (select something from a_table) column_alias) the engine gives to the column an unlimited range of the datatype.
For example when I 'm getting a varchar2 value it will show up as varchar2(4000).
Are you sure about that? Can you demonstrate your claim with an example? Below is an example which says otherwise.
SQL> desc emp;
Name Null? Type
EMPNO NOT NULL NUMBER
ENAME VARCHAR2(6)
JOB VARCHAR2(9)
MGR NUMBER
HIREDATE DATE
SAL NUMBER
COM NUMBER
DEPTNO NUMBER
ID NUMBER(10)
SQL> create table t
2 as
3 select (select ename from emp where mgr is null) ename
4 from dual;
Table created.
SQL> desc t;
Name Null? Type
ENAME VARCHAR2(6)
SQL>
Similar Messages
-
I am using TABLE(CAST()) operation in PL/SQL and it is returning me no data.
Here is what I have done:
1. Created Record type
CREATE OR REPLACE TYPE target_rec AS OBJECT
target__id NUMBER(10),
target_entity_id NUMBER(10),
dd CHAR(3),
fd CHAR(3),
code NUMBER(10),
target_pct NUMBER,
template_nm VARCHAR2(50),
p_symbol VARCHAR2(10),
pm_init VARCHAR2(3),
target_name VARCHAR2(20),
targe_type VARCHAR2(30),
target_caption VARCHAR2(30),
sort_order NUMBER (4)
2. Created Table type
CREATE OR REPLACE TYPE target_arr AS TABLE OF target_rec
3. Created Stored procedure which accepts parameter of type target_arr and runs the Table(Cast()) function on it.
Following is the simplified form of my procedure.
PROCEDURE get_target_weights
p_in_template_target IN target_arr,
p_out_count OUT NUMBER,
IS
BEGIN
SELECT count(*) into p_out_count
FROM TABLE(CAST(p_in_template_target AS target_arr)) arr;
END;
I am calling get_target_weights from my java code and passing p_in_template_target with 10140 records.
Scenario 1: If target_pct in the last record is 0, p_out_count returned from the procedure is 0.
Scenario 2: If target_pct in the last record is any other value(say 0.01), p_out_count returned from the procedure is 10140.
Please help me understand why the Table(Cast()) is not returning the correct results in Scenario 1. Also adding or deleting any record from the test data returns the correct results (i.e. if keep target_pct in the last record as 0 but add or delete any record).
Let me know how can I attach the test data I am using to help you debugging as I don’t see any Attach file button on Post Message screen on the forum.I am not able to reproduce this problem with a small data set. I can only reproduce with the data having 10140 records.
I am not sure if this is the memory issue as adding a new record also solves the problem.
This should not be the error because of wrong way of filling the records in java as for testing purpose I just saved the records which I am sending from java in a table. I updated the stored procedure as well to read the data from the table and then perform TABLE(CAST()) operation. I am still getting 0 as the output for scenario 1 mentioned in my last mail.
Here is what I have updated:
1. Created the table target_table
CREATE Table target_table
target_id NUMBER(10),
target_entity_id NUMBER(10),
dd CHAR(3),
fd CHAR(3),
code NUMBER(10),
target_pct NUMBER,
template_nm VARCHAR2(50),
p_symbol VARCHAR2(10),
pm_init VARCHAR2(3),
target_name VARCHAR2(20),
target_type VARCHAR2(30),
target_caption VARCHAR2(30),
sort_order NUMBER (4)
2. Inserted data into the table : The script has around 10140 rows. Pls let me know how can I send it to you
3. Updated procedure to read data from table and stored into variable of type target_arr. Run Table(cast()) operation on target_arr and get the count
PROCEDURE test_target_weights
IS
v_target_rec target_table%ROWTYPE;
CURSOR wt_cursor IS
Select * from target_table;
v_count NUMBER := 1;
v_target_arr cws_target_arr:= target_arr ();
v_target_arr_rec target_rec;
v_rec_count NUMBER;
BEGIN
OPEN wt_cursor;
loop
fetch wt_cursor into v_target_rec; -- fetch data from table into local record.
exit when wt_cursor%notfound;
--move data into target_arr
v_target_arr_rec := cws_curr_pair_entity_wt_rec(v_target_rec target_id,v_target_rec. target_entity_id,
v_target_rec.dd,v_target_rec.fd,v_target_rec.code,v_target_rec.target_pct,
v_target_rec.template_nm,v_target_rec.p_symbol,v_target_rec.pm_init,v_target_rec.template_name,
v_target_rec.template_type,v_target_rec.template_caption,v_target_rec.sort_order);
v_target_arr.extend();
v_target_arr(v_count) := v_target_arr_rec;
v_count := v_count + 1;
end loop;
close wt_cursor;
-- run table cast on target_arr
SELECT count(*) into v_rec_count
FROM TABLE(CAST(v_target_arr AS target_arr)) arr;
DBMS_OUTPUT.enable;
DBMS_OUTPUT.PUT_LINE('p_out_count ' || v_rec_count);
DBMS_OUTPUT.PUT_LINE('v_count ' || v_count);
END;
Output is
p_out_count 0
v_count 10140
Expected output
p_out_count 10140
v_count 10140 -
Bom Dia
Nesta solução NF-e do B2B Outbound Attachment +Body eu tive um problema ao testar o Module Gui gerei o pacote .ear fiz o deploy do mesmo no J2ee e
acontece um erro quando testo o envio do e-mail
Message processing failed. Cause: java.lang.ClassCastException: class com.sap.sdn.nfe.SetAttachmentNameLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome
1 - já tirei os .jar de referencia do ".ear"(Extrai usando o WinZip) mais não funcionou...
.jar extraido do .EAR antes do deploy..!
aii_af_cci.jar
aii_af_ms_api.jar
aii_af_trace.jar
aii_af_cpa.jar
aii_af_ms_spi.jar
aii_af_mp.jar
aii_af_svc.jar
Alguém teria alguma dica doque poderia estar ocorrendo..?
Agradeço desde já
RONALDO DE MORAESRoberti ...,
Eliminando as classes geradas e ajustando para as classes standard...!!
Existiam alguns erros.....com.sap.sdn.nfe.SetAttachmentNameLocalhome quando na verdade deveria ser isso com.sap.aii.af.mp.module.ModuleLocalHome
esse erro só notei quando olhei a doc postada pelo Roberti ...
http://wiki.sdn.sap.com/wiki/pages/editpage.action?pageId=233474286
Obrigado ...pela força Robert e Henrique -
Getting errors in MSMQ intermittent Specified cast is not valid on Sending
I keep getting this error when I try and Send a message on a windows server 2008 R2 box. It works about 95% of the time but ever so often I get the following:
Log Entry : 4:29:44 AM Friday, April 17, 2015
:Transaction Failed [Specified cast is not valid.]
Log Entry : 4:29:44 AM Friday, April 17, 2015
:Stack Trace [ at System.Messaging.Interop.MessagePropertyVariants.Lock()
at System.Messaging.MessageQueue.SendInternal(Object obj, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)
at ProdUwsCallbackService.ProdUwsCallbackService.SmsCallback(SmsCallbackRequest SmsCallbackRequest) in C:\NH Applications\VerizonNewProdGateway\WebProdUwsCallback\API\ProdUwsCallbackService.asmx.cs:line 318]
This happens about 7 or 8 times a night and it processes about 500 to 1000 messages before this happens. At about 4:30 in the morning I receive a large spike or volume of messages and it seems to happen around that time.
Here is the code snippet that is sending the MSMQ:
RxUwsCallbackVerizonProdMQ.Formatter = new XmlMessageFormatter(new Type[] { typeof(UwsRxMessage) });
//MessageQueueTransaction RxUwsCallbacVerizonProdTran = new MessageQueueTransaction();
try
//RxUwsCallbacVerizonProdTran.Begin();
//RxUwsCallbackVerizonProdMQ.Send(Message, Label, RxUwsCallbacVerizonProdTran);
NHUtils.WriteLog(VerizonUwsLogFile, "Putting SMS Message into Message Queue: [" + Label + "]");
lock (RxUwsCallbackVerizonProdMQ)
RxUwsCallbackVerizonProdMQ.Send(Message, MessageQueueTransactionType.Single);
//RxUwsCallbacVerizonProdTran.Commit();
catch (Exception ex)
//RxUwsCallbacVerizonProdTran.Abort();
NHUtils.WriteLog(VerizonUwsLogFile, "Transaction Failed [" + ex.Message + "]");
NHUtils.WriteLog(VerizonUwsLogFile, "Stack Trace [" + ex.StackTrace + "]");
The bold line is where the error is happening.
This is running as a application under IIS7 on a Windows 2008 R2 box.
Any help would greatly be appriciated on how to deal with this error or correct it. Thanks.Hi Reggie,
MSMQ forum is better, I help you to move it here.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Web controls 2.1 Fail with Specified Cast is not valid
1) I loaded the 2.1 Beta .NET Webcontrols ..2) I removed the reference to the old Plumtree.WCFilter.dll from my project3) I added the new reference in its place4) I checked the GAC to see that WCLoader was the proper version5) Also noticed the reliance on J# redist 1.1 so I downloaded and installed this as well6) Any thoughts on why I am gettig invalid cast exception? When I access portlet in the portal it simply displays error, when I try to access portlet outside of portal I get cast exception.
[InvalidCastException: Specified cast is not valid.] Com.Plumtree.Remote.Transformer.Config.WCConfig.Load(TextReader reader) Com.Plumtree.Remote.Transformer.Config.WCConfig.LoadAll(String confPath) Com.Plumtree.Remote.Transformer.PTTransformer.get_Config() Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e) System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Phil Orion | [email protected] | www.orionsmith.comI am still unable to get the 2.1 Webcontrols to work, can anyone provide some insight to overcoem the cast exception?.-There seem to be some additional configuration items in this release - Can anyone explain their purpose? -The installation also placed the image server files in the wrong location - I had to move them from the ptimages folder to the ptimages/RemoteGadgets
-
Async service keep stopping with Specified cast is not valid
Hi there,
Our organization currently is experiencing some failure on CRM 4.0 Async service.
The error message is :
failed while monitoring asynchronous operations queue. Exception: System.InvalidCastException: Specified cast is not valid.
at Microsoft.Crm.Asynchronous.ServerOrganizationConfiguration.GetSdkBaseUrl()
at Microsoft.Crm.Asynchronous.ServerOrganizationConfiguration.get_WebServiceEndpoint()
at Microsoft.Crm.Asynchronous.CrmServiceFactory.CreateCrmService(Guid organizationId, Nullable`1 userId, CorrelationToken correlationToken)
at Microsoft.Crm.Asynchronous.SdkPluginDescriptionProvider.GetPluginTypeDescription(Guid pluginTypeId, IOrganizationContext context)
at Microsoft.Crm.Caching.PluginTypeCacheLoader.LoadCacheData(Guid key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.PluginTypeCache.LookupEntry(Guid pluginTypeId, IOrganizationContext context)
at Microsoft.Crm.Asynchronous.AsyncOperationCommand.GetPluginType(Guid pluginTypeId)
at Microsoft.Crm.Asynchronous.EventOperation.InternalExecute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncOperationCommand.Execute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.ProcessAsyncEvent(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.InvokeHandlerInPool(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
It looks the GetSdkBaseUrl() function failed. Has anyone experienced it before?
CheersI don't know about your specific error, but the CRM 4.0 Async service was notoriously unstable. That's why they added a monitoring service in later versions to keep it up. However, for 4.0, I recommend going to the Service itself in the Windows
Service area, and then tell the "behavior after failure" section to "Restart" every time it fails. While not perfect, it will keep your Async service up and running even when it crashes.
The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions. -
Hello, I have the following code:
if (dataTable.Columns.Count > 1)
strXML = ChartFileNameandPath(chartType) + @"?dataXML=<graph caption='Report ; Summary' subcaption='" + ReportName(reportType) + "' xAxisName='Line Number' yAxisName='Pounds made' rotatelabels='1' slantlabels='1' showNames='1' showvalues='0' numberPrefix='$' exportenabled='1' exportAtClient='1' exportHandler='fcExporter1' exportFormats='PNG=Save as PNG' >";
//Getting the Subtotal of PoundsMade based on the Line Number column
//C# linq query
if (reportType == ReportEnums.Clientsdata) {
var query = from row in dataTable.AsEnumerable()
group row by row.Field<string>("ClientName") into grp
orderby grp.Key
select new {
Clientname = grp.Key,
TotalAmountSpent = grp.Sum(r => r.Field<int>("TotalAmountSpent")) //error here, specified cast is not valid
foreach (var grp in query) {
strXML = strXML + "<set name='" + grp.Clientname.ToString() + "' value='" + grp.TotalAmountSpent.ToString() + "'/>";
I get a error "Specified cast is not valid"
Part of my store procedure where I'm grabbing it from is:
SELECT ClientName,
Mem_Name,
Mem_Address,
Mem_city,
Mem_state,
Sum(mv.AmountSpent) as TotalAmountSpent,
(Sum(mv.AmountSpent)/ (CAST(s.TotalBusinessSales as decimal)) * 100) as PercentAmountSpent
My question is: Am I getting an error because of TotalAmountSpent is an alias?
Thanks,
NALTER PROCEDURE usp_Clienttransaction (@FromDate Varchar (30), @ToDate Varchar (30), @Active int)
AS
SELECT ClientName,
Mem_Name,
Mem_Address,
Mem_city,
Mem_state,
Sum(mv.AmountSpent) as TotalAmountSpent,
(Sum(mv.AmountSpent)/ (CAST(s.TotalBusinessSales as decimal)) * 100) as PercentAmountSpent
FROM UnitedDiningClub.dbo.UDC_Member
JOIN UnitedDiningClub.dbo.UDC_MemberVisits mv
ON UDC_Member.Mem_ID = mv.MemberId
JOIN UnitedDiningClub.dbo.UDClub_Client c
ON c.ClientId = mv.RestaurantId
INNER JOIN
( SELECT RestaurantId, sum(AmountSpent) as TotalBusinessSales
FROM UnitedDiningClub.dbo.UDC_MemberVisits
GROUP BY RestaurantId) s
ON s.RestaurantId = c.ClientId
GROUP by ClientName, Mem_Name, Mem_Address , Mem_city , Mem_state, s.TotalBusinessSales
ORDER BY ClientName
Thats the full procedure.
Its coming from a sub query. Would an alias effect the results in c#? -
Specified cast is not valid exception
I have the following C# code (cut down for the post) that causes an exception (Specified cast is not valid) when I attemp the GetInt32 method call. FILE_HDR is a BLOB and I can read it just fine with GetBytes. This also happens on something like TO_NUMBER(FILE_ID, 'XXXXXXXX'). It seems like things do not work well when you define a column as a function. I can do this same thing with the MySQLDataReader without any problem.
Can anyone tell me what I am doing wrong here?
Thanks
string SelectStatement = "select FILE_ID, DBMS_LOB.Getlength FILE_HDR)...."
Cmd.CommandText = SelectStatement;
Reader = Cmd.ExecuteReader();
if (!Reader.HasRows)
throw new Exception("Unit File List Query returned no rows");
else
totalBytes = 0;
int HeaderLengthColumnOrdinal = Reader.GetOrdinal("DBMS_LOB.Getlength(FILE_HDR)");
// Get the number of rows
while (Reader.Read())
RowCount++;
totalBytes += (Int64)Reader.GetInt32(HeaderLengthColumnOrdinal); <- EXCEPTION
}Hi,
I was kind of thinking I could do something like this:
CAST(DBMS_LOB.GetLength(BLOB_COLUMN) AS NUMBER(9))That should work OK as well. In fact, here is a small test:
Database:
SQL> create table test
2 (
3 clob_id number,
4 clob_data clob
5 );
Table created.
SQL> declare
2 l_text varchar2(8192);
3 begin
4 for i in 1..8192 loop
5 l_text := l_text || 'A';
6 end loop;
7 insert into test values (1, l_text);
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.C#:
using System;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace NumberTest
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
int tempValue = 0;
string constr = "User Id=xxx; Password=xxx; Data Source=oramag; Enlist=False; Pooling=False";
// create connection to db
OracleConnection con = new OracleConnection(constr);
con.Open();
// create a command object
OracleCommand cmd = con.CreateCommand();
// set command object properties
cmd.CommandText = "select cast(dbms_lob.getlength(clob_data) as number(9)) from test where clob_id=1";
// get a data reader
OracleDataReader dr = cmd.ExecuteReader();
if (dr.Read())
try
tempValue = dr.GetInt32(0);
catch (Exception ex)
Console.WriteLine(ex.Message);
Console.WriteLine("Value: {0}", tempValue.ToString());
Console.WriteLine("Press ENTER to continue...");
Console.ReadLine();
// clean up objects
dr.Dispose();
cmd.Dispose();
con.Dispose();
}Output:
Value: 8192
Press ENTER to continue...Note that I am using Oracle Database 10g 10.2.0.2.0 and ODP.NET beta 2.102.2.10 (the beta for VS2005).
Hope that helps a bit...
- Mark -
Specified cast is not valid errors
Hi all
Sometimes, but not always, I'm finding that the Layer.Add, Cell.GlueTo and Window.Select methods throw errors similar to:
Specified cast is not valid at System.StubHelpers.InterfaceMarshaler.ConvertToNative(Object objSrc, IntPtr itfMT, IntPtr classMT,
Int32 flags) at Microsoft.Office.Interop.Visio.IVLayer.Add(Shape SheetObject, Int16 fPresMems)
I'm using VB2010, Visio 2007 and currently testing on Windows XP 32 bit. The program is a stand-alone .exe program using Visio via .NET interop. The same program, with the same data can run several times without problem and then once this error
has been thrown, the same error will be thrown every time until the Visio file is closed and re-opened.
This VB2010 code was derived from a VB6 program which has been working fine for 2,000+ users over a period of about 15 years.
Unfortunately I've not been able to replicate these problems in a small test program which is making the debugging process rather tedious and it's another aspect of this problem which is worrying and confusing me.
The program is adding a 100 or so shapes from a stencil and gluing lines between them. I've tried playing with the settings of such properties as DeferRecalc, EventsEnabled, InhibitSelectChange, LiveDynamics, ShowChanges and UndoEnabled as I thought
Visio might be having a problem updating the screen or allocating memory to the undo manager or something. I've also tried Application.DoEvents.
I've re-written some of my code to avoid using Window.Select which I was using to select shapes to create groups. I guess I could also re-write the code to avoid using GlueTo, but I don't think I can always avoid using Layer.Add.
Any thoughts or comments would be much appreciated.
Best regards
Roger BillsdonHi Paul
Many thanks for your reply and I hope all is well with you.
I spent quite a lot of time trying to replicate the problem in a small test program created from scratch. All the offending methods (Window.Select, Layer.Add and Cell.GlueTo) worked fine in the test program, as indeed they often do in my main program.
I carefully compared all the project references and everything else I could think of in both the test and my main program. I added loops in the test program so that it added many shapes, etc in an attempt to create some stress on the Visio UI, Undo manager,
etc. Not being able to replicate the problem in a small test program is one aspect of this problem that is worrying and confusing me.
The main program is quite large (I guess about 60,000 lines of code) and contains code for many other functions. An alternative approach would be for me to take a copy of the main program and try chopping chunks out to degenerate
it into a small test program. However, at present I have a looming project deadline so I'm now putting my effort into recoding to eliminate the Window.Select, Cell.GlueTo and, where possible, Layer.Add method calls. Fortunately Visio provides alternatives
which seem to be working. For example, rather than Cell.GlueTo I'm setting the relevant cell formulae and instead of Window.Select to form group, I'm creating a shape, converting it into a group and then dropping the other shapes into this group.
Back in my VB6 programs I had some problems with select and group so I think this conversion is worthwhile, but I don't recall having had any problems with Cell.GlueTo or Layer.Add. Because I don't understand what's causing the problem I'm concerned that this
re-coding work is just fixing the symptoms without actually getting at the root cause.
In general I am finding rather more problems and performance issues with VB.NET Visio programs than I did over all the years I used VB3 and VB6 to program Visio.
Best regards
Roger -
I have Sql management studio 2014 SP1 and im working with my Azure SQL Databases.
Previously all my databases and servers were on Sql Server 11.0 and thing were working fine, until a couple of days ago; 1 database on a server started throwing the specified cast is not valid error when you try to use management studio to Script table as.....
and today all (3) of my databases on (different) servers are throwing that error
Earlier today I upgraded 1 of the servers to the latest azure sql database 12.0.2000.8 (it took a while since it can take up to 24 hours); and can verify that the same script table as... or any management studio function that will generate scripts, like
Generate Scripts task does not throw this error.
The issue with v11 started happening a few days ago and is now on all my v11 databases; management studio will not generate scripts., wanted to submit this as a bug., but there is no easier way to do so.
screenshots below.
error dump:
===================================
Specified cast is not valid. (Microsoft.SqlServer.Smo)
Program Location:
at Microsoft.SqlServer.Management.Smo.Table.Microsoft.SqlServer.Management.Smo.IPropertyDataDispatch.SetPropertyValue(Int32 index, Object value)
at Microsoft.SqlServer.Management.Smo.PropertyDispatcher.SetValue(Int32 index, Object value)
at Microsoft.SqlServer.Management.Smo.PropertyCollection.SetValue(Int32 index, Object value)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.AddObjectPropsFromDataReader(IDataReader reader, Boolean skipIfDirty, Int32 startColIdx, Int32 endColIdx)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.ImplInitialize(String[] fields, OrderBy[] orderby)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.OnPropertyMissing(String propname, Boolean useDefaultValue)
at Microsoft.SqlServer.Management.Smo.PropertyCollection.RetrieveProperty(Int32 index, Boolean useDefaultOnMissingValue)
at Microsoft.SqlServer.Management.Smo.PropertyCollection.GetPropertyObject(Int32 index)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropertyOptional(String propName)
at Microsoft.SqlServer.Management.Smo.Column.EmbedDefaultConstraints()
at Microsoft.SqlServer.Management.Smo.Column.GetPropagateInfo(PropagateAction action)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropagateInfoForDiscovery(PropagateAction action)
at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.GetScriptableChildren(List`1 propInfoList, PropagateAction propagateAction)
at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.SfcChildrenDiscovery(HashSet`1 discoveredUrns)
at Microsoft.SqlServer.Management.Smo.SmoDependencyDiscoverer.Discover(IEnumerable`1 urns)
at Microsoft.SqlServer.Management.Smo.ScriptMaker.Discover(IEnumerable`1 urns)
at Microsoft.SqlServer.Management.Smo.ScriptMaker.DiscoverOrderScript(IEnumerable`1 urns)
at Microsoft.SqlServer.Management.Smo.ScriptMaker.ScriptWorker(List`1 urns, ISmoScriptWriter writer)
at Microsoft.SqlServer.Management.Smo.ScriptMaker.Script(Urn[] urns, ISmoScriptWriter writer)
at Microsoft.SqlServer.Management.Smo.ScriptMaker.Script(Urn[] urns)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptGenerator.ScriptCreate(SqlTextWriter sqlwriter, Server server, Urn[] urns, SqlScriptOptions options)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptNodeActionContext.Script(SqlTextWriter writer)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SqlScriptMenu.OnScriptItemClick(Object sender, EventArgs e)I'm also running into this exact issue with V11 and SQL Server Management Studio -- table "Generate Create Script" fails with "Specified
cast is not valid. (Microsoft.SqlServer.Smo)". This just started happening recently with V11 and doesn't manifest with V12. I'm running SSMS with latest hotifxes (CU6 I believe). I don't have the option of an immediate move to V12.
Microsoft SQL Server Management Studio 12.0.2480.0
Microsoft Analysis Services Client Tools 12.0.2480.0
Microsoft Data Access Components (MDAC) 6.3.9600.16384
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.9600.17728
Microsoft .NET Framework 4.0.30319.34014
Operating System 6.3.9600 -
Cast was not declared in scope
Set::View setResults = theCache->entrySet(EqualsFilter::create(vPsngSmryExtractor, psng_smry_id));
for (Iterator::Handle iter = setResults->iterator(); iter->hasNext(); )
std::cout << "here" << std::endl;
Map::Entry::View vEntry = cast<Map::Entry::View>(iter->next());
//std::cout << vEntry->getKey() << " " << vEntry->getValue() << std::endl;
coherence.cpp:86: error: 'cast' was not declared in this scope
coherence.cpp:86: error: expected primary-expression before '>' token
is something wrong in the code..?
solved:: we need to use coherence::castYour first step should be to try without yaourt (or any other AUR helper). Those may be convenient but they are not recommended for troubleshooting. See if you can reproduce it with makepkg.
EDIT: Post on the AUR page. xxdiff doesn't compile here either.
Last edited by cfr (2013-08-26 02:14:00) -
?My music and pod casts will not play. I have followed the instructions many times. I would like to toss this equipment. help please.
What happens when you try?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Unsync all media and resync
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Can anyone tell me why the %^$& I get a "script cast
member not found"
error?
I've been working in Director for 17 years and I get this
from time to time.
I generally just copy the code from the behavior, paste it
into a new
behavior, name the new one the same as the old on, then copy
the new cast
member over the old one and it solves it. But it happened
rarely enough
that I didn't bother questioning why. I know it's not a
syntax error
because the code runs fine after the above process. But it
does only
happens when I've made a change to the code in that behavior.
Now I'm working with a simple movie with one parent script
and a
prepareMovie handler that instantiates one child object and
I'm getting this
darn error all the time. My above solution isn't working
anymore. The
error points to the first line of a particular handler. That
first line was
a comment. So I got rid of the comment and the new first line
of the
handler is code and the error points to it. If you see where
I'm headding,
no matter how many lines of "errored" code I get rid of the
error alert will
always point to the first line of that handler.
I'm sure many have seen this because it's happened in almost
every version
of Director I've owned. And by the way, I'm in MX on a PC.
Craig Wollman
Lingo Specialist
Word of Mouth Productions
212-928-9581
www.wordofmouthpros.comDean, I might do that. No, this has been going on long enough
that I sure
it's not any definable user error.
But, I did, after all of these years, discover something last
night. In one
case, I did get a legitimate script error that I fixed. When
I ran the
project again, I received the same script error, even though
it was a simple
fix and I was sure I corrected it. I recompiled several times
and ran it
again and received the error again. Then it dawned on me that
since parent
scripts remain in memory until disposed of, Director must
have been, for
some reason, referring to the old parent script. I had
already set the
object's global variable to 0 in my stopMovie handler and
even though that
handler might not always run when errors occur, I ran it from
the message
window to insure that the object's global was 0. But that
still didn't
solve the problem. Then I used clearGlobals in the message
window and
voila, the issue went away. Dare I say that this is a
shortcoming of
Lingo's design to allow variables to persist/linger after an
error?
But what still baffles me is that most of the time when I get
that
particular error,, even though I seemed to have found a
workaround, it is
not an actual issue with any code.
When it happens again, I'll send you the code. Obviously, if
I'm correct
about the scripts lingering in memory, then you won't receive
the error when
you run the movie.
I just find it interesting that there haven't been a bunch of
"Yeah, I get
that darn thing too" here.
Craig
Craig Wollman
Lingo Specialist
Word of Mouth Productions
212-928-9581
www.wordofmouthpros.com
"Dean Utian" <[email protected]> wrote in message
news:[email protected]...
> Hi Craig,
>
> Could it be a simple mistake of the script type not
being properly defined
> (movie/parent/behavior)?
>
> If you have a very baic movie where this error occurs
repeatedly, you
> could
> email me ([email protected]) and I'll take a fresh
perspective look at
> it.
>
> regards
> Dean
>
> Director Lecturer / Consultant
>
http://www.fbe.unsw.edu.au/learning/director
>
http://www.multimediacreative.com.au
>
>
>
> -
HP Client Security Manager 8.3.3.1786 - Specified cast is not valid
I've recently installed HP Client Security and find usefull accessing the PC using my finger: it works.But I got a problem accessing all USB Drivers. I got the solution reading questions in this forum: I should modify a setting in HP Client Security Manager.But my HP Client Security Manager fails after authentication giving: Specified cast is not validMy PC windows software is updated according to Microsoft Update, even HP tool says it's all updatedI've bought the PC a little more than a year ago so HP assistence says they can't answer me (but they wrote a note) Error details: at DPClientConsole.FirstBooleanToIntConverter.Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture)
at System.Windows.Data.MultiBindingExpression.TransferValue()
at System.Windows.Data.MultiBindingExpression.Transfer()
at System.Windows.Data.MultiBindingExpression.UpdateTarget(Boolean includeInnerBindings)
at System.Windows.Data.MultiBindingExpression.AttachToContext(Boolean lastChance)
at System.Windows.Data.MultiBindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)@ssheaf
Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
If you are unfamiliar with the Forum's private messaging please click here to learn more.
Thank you,
Omar
I Work for HP -
I download Good Morning America video cast from the Zen Cast Organizer?and then I try to play it on the Zen Cast Organizer, but I get a connection error. I cannot download the video cast to my Creacti've Zen player either. I have tried all the solutions from Creative Tech Support to no avail. I try calling them on the phone but none of these tech people?have the knowledge to walk me threw the problem all they do is send me email?with solutions that don't work. I am really frustrated at this point.
@coachop94: It is your badly-implemented signature line.
Convention states a signature line should be easily recognizable as distinct from the body of your reply. That convention dates back to the days of DARPA net. I would like to humbly suggest you follow the convention of prefixing your signature with an explicit separator or add it using a unique font style so it stands apart. Doing so will prevent misunderstandings and limit the cases it looks like you are falsely admonishing a person for failure to include "necessary" information that my be irrelevant to, or already present in, their posting.
Example (HTML):
...and that is why the Zen is <position statement> than the alternati'ves.
You will get a better and more timely responses if you include your player model, OS platform (including service pack) and other information with your questions.
Example (contemporary):
...and that is why the Zen is <position statement> than the alternati'ves.
You will get a better and more timely responses if you include your player model, OS platform (including service pack) and other information with your questions.
Example (old-school):
...and that is why the Zen is <position statement> than the alternati'ves.
You will get a better and more timely responses if you include your player model, OS platform (including service pack) and other information with your questions.
Message Edited by daemonvi on 09-28-2008 02:58 PMMessage Edited by daemonvi on 09-28-2008 03:07 PM
Maybe you are looking for
-
Memory upgrade on an All in One LX830
I may have to upgrade the supplied 4Gb to comply with a program's requirements. Does additional memory need to be installed in pairs? The existing 4Gb occupies one slot, can I fit 8Gb in the other slot or will this be incompatible?
-
I want to set up an iPod for my dad... (Multiple Libraries Question)
My dad has a early Shuffle (back when HP made 'em), and has grown tired of no screen and all. Being technologically deficient as he is, I was going to give him my old iPod Video for Father's Day (since I'm getting the iPhone, hopefully), and have it
-
Ora -3113 while Java Deployment
I am getting the following errors while deploying the java class $ loadjava -oci8 -resolve -user javaupdate/javaupdate jtest.class Error while creating class jtest/jtest ORA-03113: end-of-file on communication channel Error while resolving class jtes
-
MD03 / MD04 creation of separate planned orders per requirement
Hello, I hope you can help me. Situation: - MD04: separate sales orders - MD03: Run MRP > based on requirements for sales orders >1 PR is created Material master: Lot size: EX / Availability check: 02 / Individual/coll.: 1 How do I set the system in
-
How do I restore data from an external hard drive back to a restored mac?
how do I restore data from an external hard drive back to a restored mac?